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

sporadic dockerfile build failure after chmod #87

Closed
djkapner opened this issue May 23, 2018 · 0 comments
Closed

sporadic dockerfile build failure after chmod #87

djkapner opened this issue May 23, 2018 · 0 comments

Comments

@djkapner
Copy link

this happens on one machine, but not on another... not sure why, but other docker users have reported the same sporadic problem as well: moby/moby#9547

/var/lib/jetty/webapps:
total 12
drwxrwxrwx  2 root  root  4096 May 22 21:34 .
drwxr-xr-x 12 jetty jetty 4096 May 23 00:04 ..
-rwxrwxr-x  1 root  root   431 May 22 21:34 root-context.xml
/bin/sh: ./configure_web_server.sh: Text file busy
The command '/bin/sh -c ls -al $JETTY_BASE/* &&     chmod 755 ./configure_web_server.sh &&     ./configure_web_server.sh' returned a non-zero code: 2

either of these 2 changes to the dockerfile fix the problem:

RUN ls -al $JETTY_BASE/* && \
    chmod 755 ./configure_web_server.sh && \
    sync && \
    ./configure_web_server.sh

or

RUN ls -al $JETTY_BASE/* && \
    chmod 755 ./configure_web_server.sh && \
    sleep 2 && \
    ./configure_web_server.sh
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

No branches or pull requests

1 participant