JetBrains / teamcity-docker-agent

TeamCity agent docker image sources
https://hub.docker.com/r/jetbrains/teamcity-agent/
Apache License 2.0
77 stars 64 forks source link

Issues trying to build ubuntu Docker Image #51

Closed eshantandon closed 5 years ago

eshantandon commented 5 years ago

Since the shell script referenced while building dockerfile is one level up we are having issues building the docker image. We should probably move run-docker.sh in the ubuntu folder.

kir commented 5 years ago

Hi, do you use -f ubuntu/Dockerfile for the docker build command?

eshantandon commented 5 years ago

Yes.

eshantandon commented 5 years ago

This is the error I get on the CI/CD: [17:57:11][Step 3/4] COPY failed: stat /var/lib/docker/tmp/docker-builder709805828/run-docker.sh: no such file or directory [17:57:11][Step 3/4] ---> 82978ec795db [17:57:11][Step 3/4] Step 10/11 : COPY run-docker.sh /services/run-docker.sh [17:57:11][Step 3/4] Process exited with code 1 [17:57:11][Step 3/4] Process exited with code 1 (Step: Docker Build (Docker)) [17:57:11][Step 3/4] Step Docker Build (Docker) failed

kir commented 5 years ago

What value do you use for "Context folder:" parameter?

eshantandon commented 5 years ago

Its empty, Probably should try ./ ?

eshantandon commented 5 years ago

image

kir commented 5 years ago

I believe . should work for this case.

eshantandon commented 5 years ago

Will try that.

eshantandon commented 5 years ago

That works. Thanks.