Ryan Baxter

@ryanjbaxter

Joined on Jan 16, 2020

  • Spring on Kubernetes! Workshop Materials: https://hackmd.io/@ryanjbaxter/spring-on-k8s-workshop Ryan Baxter, Spring Cloud Engineer, VMware Dave Syer, Spring Engineer, VMware What You Will Do Create a basic Spring Boot app Build a Docker image for the app Push the app to a Docker repo
     Like 12 Bookmark
  • Creating A Dockerfile Used to describe how to build a container for your app Since Spring Boot just requires Java all you need is a JDK and your jar Create a file in the root of your app called Dockerfile with the below content FROM openjdk:8-jdk-alpine VOLUME /tmp COPY target/k8s-demo-app-0.0.1-SNAPSHOT.jar app.jar ENTRYPOINT ["java","-jar","/app.jar"]
     Like  Bookmark