chibenwa commented on a change in pull request #396:
URL: https://github.com/apache/james-project/pull/396#discussion_r617431986



##########
File path: dockerfiles/run/guice/memory/Dockerfile
##########
@@ -22,7 +22,10 @@ RUN apt-get update && apt-get install -y unzip
 
 # Get data we need to run James : build results and configuration
 ADD destination/james-server-memory-guice.zip /root
-RUN unzip james-server-memory-guice.zip && cp -r 
/root/james-server-memory-guice/* /root
+RUN unzip james-server-memory-guice.zip && \
+  cp -r /root/james-server-memory-guice/* /root && \
+  rm james-server-memory-guice.zip && \
+  rm -r james-server-memory-guice

Review comment:
       Yes but it do not change the fact that everything is bundled in  a 
`james-server-memory-guice`
   
   I tried:
   
   ```
   RUN unzip james-server-memory-guice.zip -d /root && rm 
james-server-memory-guice.zip
   ```
   
   It deflates:
   
   ```
   Step 6/21 : RUN unzip james-server-memory-guice.zip -d /root && rm 
james-server-memory-guice.zip
    ---> Running in 4bfb050ef3e1
   Archive:  james-server-memory-guice.zip
      creating: /root/james-server-memory-guice/
      creating: /root/james-server-memory-guice/extensions-jars/
      creating: /root/james-server-memory-guice/conf/
      creating: /root/james-server-memory-guice/james-server-memory-guice.lib/
     inflating: /root/james-server-memory-guice/README.adoc  
     inflating: /root/james-server-memory-guice/conf/jmx.properties  
     inflating: /root/james-server-memory-guice/conf/listeners.xml  
     inflating: /root/james-server-memory-guice/conf/logback.xml  
   ```
   
   And I got the error:
   
   ```
   $ docker run -ti mem
   Error: Unable to access jarfile james-server-memory-guice.jar
   ```




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to