Hi,
I tried to build docker images.
I read README in docker folder but build failed.
I found the way but it is a little different from README.
my dev env : Ubuntu 18.04, docker 18.03.1-ce
# from conductor project home
$ docker build -t conductor:server -f docker/server/Dockerfile .
$ docker build -t conductor:ui -f docker/ui/Dockerfile .
as of docker-compose
$ cd docker
$ docker-compose build
Did others build docker similarly?
How about edit README?
What is the error message?
Hi, I attached my console logs.
[hados@hados-docker:/home/hados/work/conductor] docker build -t conductor:server ./server
unable to prepare context: unable to evaluate symlinks in Dockerfile path: lstat /home/hados/work/conductor/server/Dockerfile
: no such file or directory
[hados@hados-docker:/home/hados/work/conductor] cd docker
[hados@hados-docker:/home/hados/work/conductor/docker] docker build -t conductor:server ./server
Sending build context to Docker daemon 14.85kB
Step 1/16 : FROM openjdk:8-jdk AS builder
---> c14ba9d23b3a
Step 2/16 : MAINTAINER Netflix OSS <[email protected]>
---> Using cache
---> 26dc9114ea8b
Step 3/16 : COPY . /conductor
---> Using cache
---> cf3606873b47
Step 4/16 : WORKDIR /conductor
---> Using cache
---> 4a160b2925ff
Step 5/16 : RUN ./gradlew build -x test
---> Running in 720f5f420540
/bin/sh: 1: ./gradlew: not found
The command '/bin/sh -c ./gradlew build -x test' returned a non-zero code: 127
[hados@hados-docker:/home/hados/work/conductor/docker] uname -a
Linux hados-docker 4.15.0-38-generic #41-Ubuntu SMP Wed Oct 10 10:59:38 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux
[hados@hados-docker:/home/hados/work/conductor/docker] docker -v
Docker version 18.03.1-ce, build 9ee9f40
[hados@hados-docker:/home/hados/work/conductor/docker]
@hados99 I recommend using docker-compose build from the docker/ folder.
The command '/bin/sh -c ./gradlew build -x test' returned a non-zero code: 127
gradlew must be marked as executable. chmod +x gradlew.
I had this error on Windows 10 recently. GNU/Linux and Mac share permissions scheme but Windows needs to use a virtual FS so it copies files with default permissions.
In my case, this issue occurs due to the use of "core.autocrlf = true" from Git config.
You are better off leaving core.autocrlf to false. (Or re-install Git and choose the "Checkout as-is, commit as-is" as a option).
Closing this issue as there is no activity for a while. Please feel free to reopen if you still have questions or concerns.