Conductor: Docker-Compose fails: Can't copy

Created on 5 Sep 2017  路  4Comments  路  Source: Netflix/conductor

Hi,

I am trying to run cd docker && docker-compose up and it fails with the next error message:

Building conductor-server
Step 1/10 : FROM java:8-jre-alpine
 ---> fdc893b19a14
Step 2/10 : MAINTAINER Netflix OSS <[email protected]>
 ---> Using cache
 ---> 6d29fc75be25
Step 3/10 : RUN mkdir -p /app/config /app/logs /app/libs
 ---> Using cache
 ---> f66429ad9cda
Step 4/10 : COPY ./docker/server/bin /app
ERROR: Service 'conductor-server' failed to build: COPY failed: stat /var/lib/docker/tmp/docker-builder868234431/docker/server/bin: no such file or directory

https://netflix.github.io/conductor/intro/#or-start-all-the-services-using-docker-compose

Any ideas what is wrong here? am I doing something here wrong here? or the docker file?

Most helpful comment

Seems to be a docker version issue:

Try editing the UI and Server Docker files and remove the ./ on all the COPY commands ...

conductor/docker/server/Dockerfile

'# Copy the project directly onto the image
COPY ./docker/server/bin /app
COPY ./docker/server/config /app/config
COPY ./server/build/libs/conductor-server-*-all.jar /app/libs

to

'# Copy the project directly onto the image
COPY docker/server/bin /app
COPY docker/server/config /app/config
COPY server/build/libs/conductor-server-*-all.jar /app/libs

and

conductor/docker/ui/Dockerfile

'# Copy the ui files onto the image
COPY ./docker/ui/bin /app
COPY ./ui /app/ui

to

'# Copy the ui files onto the image
COPY docker/ui/bin /app
COPY ui /app/ui

Then before you bring up your compose file build the individual images...

docker build -f docker/server/Dockerfile.build -t conductor:server-build .
docker run -v $(pwd):/conductor conductor:server-build
docker build -f docker/server/Dockerfile -t conductor:server .
docker build -f docker/ui/Dockerfile -t conductor:ui .

All 4 comments

Seems to be a docker version issue:

Try editing the UI and Server Docker files and remove the ./ on all the COPY commands ...

conductor/docker/server/Dockerfile

'# Copy the project directly onto the image
COPY ./docker/server/bin /app
COPY ./docker/server/config /app/config
COPY ./server/build/libs/conductor-server-*-all.jar /app/libs

to

'# Copy the project directly onto the image
COPY docker/server/bin /app
COPY docker/server/config /app/config
COPY server/build/libs/conductor-server-*-all.jar /app/libs

and

conductor/docker/ui/Dockerfile

'# Copy the ui files onto the image
COPY ./docker/ui/bin /app
COPY ./ui /app/ui

to

'# Copy the ui files onto the image
COPY docker/ui/bin /app
COPY ui /app/ui

Then before you bring up your compose file build the individual images...

docker build -f docker/server/Dockerfile.build -t conductor:server-build .
docker run -v $(pwd):/conductor conductor:server-build
docker build -f docker/server/Dockerfile -t conductor:server .
docker build -f docker/ui/Dockerfile -t conductor:ui .

The solution provided by @unicurva solved it for me. Thanks!

@yosiat root cause for not copying file COPY ./server/build/libs/conductor-server-*-all.jar /app/libs because there is not .jar files created in /server/build/libs/conductor-server-*-all.jar location.

In order to create .Jar files Run in cd server :

  • ../gradlew build

Closing this issue, as there is no activity for a while. Please feel free to open another issue if you still have questions.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

andrea11 picture andrea11  路  4Comments

haigopi picture haigopi  路  5Comments

0532 picture 0532  路  3Comments

HardiChandra picture HardiChandra  路  3Comments

s50600822 picture s50600822  路  5Comments