Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

3.2.4 causing issues with custom docker builds? #374

Closed
billimek opened this issue Jan 16, 2018 · 4 comments · Fixed by #375
Closed

3.2.4 causing issues with custom docker builds? #374

billimek opened this issue Jan 16, 2018 · 4 comments · Fixed by #375

Comments

@billimek
Copy link
Contributor

No idea if this is related, but I have automated docker builds configured to trigger whenever there is a new gliderlabs/logspout docker image pushed to docker hub.

My image builds from https://github.com/gliderlabs/logspout/blob/master/custom/Dockerfile on docker hub via automated builds. It works on my local, but is failing on docker hub now:

Building in Docker Cloud's infrastructure...
Cloning into '.'...

KernelVersion: 4.4.0-93-generic
Arch: amd64
BuildTime: 2017-08-17T22:50:04.828747906+00:00
ApiVersion: 1.30
Version: 17.06.1-ce
MinAPIVersion: 1.12
GitCommit: 874a737
Os: linux
GoVersion: go1.8.3
Starting build of index.docker.io/billimek/logspout:gelf...
Step 1/2 : FROM gliderlabs/logspout:master

�[91m# Executing 3 build triggers...
�[0m
Step 1/1 : COPY ./build.sh /src/build.sh

Step 1/1 : COPY ./modules.go /src/modules.go

Step 1/1 : RUN cd /src && chmod +x ./build.sh && ./build.sh "$(cat VERSION)-custom"

 ---> Running in f395c450159e

�[91m/bin/sh: ./build.sh: Text file busy
�[0m
Removing intermediate container 75197530001b

Removing intermediate container f395c450159e

Removing intermediate container 0eda008907ff

The command '/bin/sh -c cd /src && chmod +x ./build.sh && ./build.sh "$(cat VERSION)-custom"' returned a non-zero code: 2

build log.

Given that the error is about ./build.sh: Text file busy I wonder if the change to chmod +x ./build.sh is somehow inexplicably causing this failure?

@michaelshobbs
Copy link
Member

hrm we build a custom image from the custom/ dir in CI. definitely open to accepting a PR to fix this

@billimek
Copy link
Contributor Author

I found this which suggests it's a docker hub issue: moby/moby#13594

Investigating a workaround and will PR if necessary or close this issue. Look for a followup from me soon!

@billimek
Copy link
Contributor Author

#375 created to fix this. The sync alone didn't seem to do the trick, so used a combination of a sleep 1 & sync.

@tf42src
Copy link

tf42src commented Feb 26, 2018

Same issue over here. Merge pls.

tf42src added a commit to RedMarkerTech/logspout that referenced this issue Feb 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants