From f22287e2cc1ce6dfadf6474aaacfb6b28e7f5cf9 Mon Sep 17 00:00:00 2001 From: Luismcplopes Date: Thu, 21 Sep 2017 22:36:31 +0100 Subject: [PATCH] Update Dockerfile Hi there When I tried to build the container I had some some issue " Step 20/28 : RUN ./grailsw refresh-dependencies ---> Running in 5ae6a4f06921 /bin/sh: 1: ./grailsw: Permission denied The command '/bin/sh -c ./grailsw refresh-dependencies' returned a non-zero code: 126 ERROR: Job failed: exit code 126 " And the second one " Removing intermediate container de14c8e8f16f [WARNING]: Empty continuation line found in: RUN chmod +x grailsw && ./grailsw test-app unit: -echoOut && ./grailsw war ROOT.war && cp application.properties $CATALINA_BASE/ && cp ROOT.war $CATALINA_BASE/webapps/ && rm -rf /usr/local/app && rm -rf /root/.grails && rm -rf /root/.m2 [WARNING]: Empty continuation lines will become errors in a future release. Successfully built a60844b80c13 " Please keep up the good work. For me this is best docker registry Thank you and goodbye --- Dockerfile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index c647697..d593fab 100644 --- a/Dockerfile +++ b/Dockerfile @@ -34,7 +34,8 @@ WORKDIR /usr/local/app COPY grailsw application.properties ./ COPY wrapper ./wrapper COPY grails-app/conf/BuildConfig.groovy ./grails-app/conf/ -RUN ./grailsw refresh-dependencies +RUN chmod +x grailsw && \ + ./grailsw refresh-dependencies # Building app @@ -44,11 +45,11 @@ RUN if [ -f .git/refs/heads/master ]; then cat .git/refs/heads/master; else cat # adding commit hash RUN cat version >> application.properties -RUN ./grailsw test-app unit: -echoOut && \ +RUN chmod +x grailsw && \ + ./grailsw test-app unit: -echoOut && \ ./grailsw war ROOT.war && \ cp application.properties $CATALINA_BASE/ && \ cp ROOT.war $CATALINA_BASE/webapps/ && \ -# clean up rm -rf /usr/local/app && \ rm -rf /root/.grails && \ rm -rf /root/.m2