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?
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 buildClosing this issue, as there is no activity for a while. Please feel free to open another issue if you still have questions.
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 .