Skip to content

Commit 3b7153a

Browse files
author
Swapan Pramanick
committed
BAEL-4546: sample app to show-case docker compose with the latest image
1 parent 3e985d0 commit 3b7153a

12 files changed

Lines changed: 601 additions & 0 deletions

File tree

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM openjdk:11
2+
COPY target/docker-sample-app-0.0.1.jar app.jar
3+
ENTRYPOINT ["java","-jar","/app.jar"]

docker/docker-sample-app/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
### Relevant Articles:
2+
3+
- How to Get Docker-Compose to Always Use the Latest Image
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
version: '2.4'
2+
services:
3+
db:
4+
image: postgres
5+
my_app:
6+
build: .
7+
ports:
8+
- "8080:8080"
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
version: '2.4'
2+
services:
3+
db:
4+
image: postgres
5+
my_app:
6+
image: "eugen/test-app:latest"
7+
ports:
8+
- "8080:8080"
9+

docker/docker-sample-app/mvnw

Lines changed: 310 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)