Skip to content

Instantly share code, notes, and snippets.

@baijum
Last active July 26, 2022 04:33
Show Gist options
  • Save baijum/597946969df658a198dba6dddf587dc3 to your computer and use it in GitHub Desktop.
Save baijum/597946969df658a198dba6dddf587dc3 to your computer and use it in GitHub Desktop.

Spring PetClinic Application with AWS RDS PostgreSQL

First I created a container image repository in quay.io.

$ git clone https://github.com/spring-projects/spring-petclinic.git
$ spring-petclinic
$ sudo apt-get install openjdk-11-jdk -y
$ export JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
$ ./mvnw spring-boot:build-image
$ docker images
REPOSITORY                                         TAG                   IMAGE ID       CREATED         SIZE
spring-petclinic                                   2.7.0-SNAPSHOT        73e160e426ea   42 years ago    266MB
$ docker tag spring-petclinic:2.7.0-SNAPSHOT quay.io/bmuthuka/spring-petclinic:2.7.0-SNAPSHOT
$ docker login quay.io # enter credentials when propmted
$ docker push quay.io/bmuthuka/spring-petclinic:2.7.0-SNAPSHOT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment