OpenCue icon indicating copy to clipboard operation
OpenCue copied to clipboard

error on docker bulid

Open mrkataei opened this issue 5 years ago • 6 comments

hi , i run this command for build gradle [root@localhost opencue]# docker build -t ./cuebot -f cuebot/Dockerfile . and run successfully run until step 8 and show this error STEP 8: COPY --chown=gradle:gradle VERSION.in VERSIO[N] ./ Error: error dry-running "COPY --chown=gradle:gradle VERSION.in VERSIO[N] ./": no files found matching "/root/opencue/VERSIO[N]": no such file or directory

mrkataei avatar Jan 31 '21 09:01 mrkataei

Hi @mrkataei

I just tried building the cuebot from master and was able to get past it successfully.

Step 8/29 : COPY --chown=gradle:gradle VERSION.in VERSIO[N] ./
 ---> 72a4e67f9416
Step 9/29 : RUN test -e VERSION || echo "$(cat VERSION.in)-custom" | tee VERSION
 ---> Running in c7218f3a0510
0.6-custom

What OS are you running your build on?

larsbijl avatar Jan 31 '21 11:01 larsbijl

hi @larsbijl my os is CentOS-8.3.2011

mrkataei avatar Jan 31 '21 12:01 mrkataei

I used docker build -f cuebot/Dockerfile . to build.

when I use docker build -t ./cuebot -f cuebot/Dockerfile . I get

invalid argument "./cuebot" for "-t, --tag" flag: invalid reference format
See 'docker build --help'.

larsbijl avatar Jan 31 '21 12:01 larsbijl

i use your command too docker build -f cuebot/Dockerfile . Screenshot from 2021-01-31 05-21-24 but show same error

mrkataei avatar Jan 31 '21 13:01 mrkataei

Not sure if this could be an issue with podman as I can't find any reference to dry-running in docker itself. which version of docker do you get with:

lars:~/OpenCue$ docker --version
Docker version 19.03.8, build afacb8b7f0

Also, I see you're using opencue as the same in your home directory. Maybe try renaming it to OpenCue so as not to confuse python with it possibly being a module. this could cause the issue you have seen with opencue missing api

larsbijl avatar Jan 31 '21 14:01 larsbijl

That Dockerfile line can be read as "always copy file VERSION.in, and copy file VERSION if it exists". In many cases VERSION won't exist in your local checkout, and that's fine (it's created and used by some of our automated workflows).

I agree it sounds like potentially a Docker version issue, where Docker isn't properly recognizing the admittedly weird VERSIO[N] syntax we use to get Docker to ignore that file if it doesn't exist.

bcipriano avatar Feb 01 '21 18:02 bcipriano