Advertisement
aironman

Dockerfile

Jul 30th, 2019
309
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. FROM adoptopenjdk/openjdk12:latest
  2. MAINTAINER Alonso Isidoro <alonsoir@gmail.com>
  3. ARG JAR_FILE
  4. ARG CRYPT_TYPE
  5. RUN mkdir /opt/app
  6. COPY target/demo-quartz-0.0.2-SNAPSHOT.jar /opt/app/demo-quartz.jar
  7. CMD ["java", "-jar", "/opt/app/demo-quartz.jar $CRYPT_TYPE"]
  8.  
  9. // 31 July 2019 new Dockerfile. I can run this container in isolated mode, without kafka,zookeeper and Eureka server.
  10. // I can pass arguments to Dockerfile doing
  11. // mvn clean package -DskipTests
  12. // docker build -t aironman/demo-quartz .
  13. // docker run -it aironman/demo-quartz:latest eth
  14. // where eth is the argument.
  15.  
  16. ~/D/demo-quartz> cat Dockerfile
  17. FROM adoptopenjdk/openjdk12:latest
  18. MAINTAINER Alonso Isidoro <alonsoir@gmail.com>
  19. ARG JAR_FILE
  20. ARG CRYPT_TYPE
  21. RUN mkdir /opt/app
  22. COPY target/demo-quartz-0.0.2-SNAPSHOT.jar /opt/app/demo-quartz.jar
  23. COPY entry-point.sh /
  24. RUN chmod +x entry-point.sh
  25. ENTRYPOINT ["/entry-point.sh"]
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement