error on docker bulid
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
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?
hi @larsbijl my os is CentOS-8.3.2011
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'.
i use your command too
docker build -f cuebot/Dockerfile .
but show same error
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
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.