-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
31 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
FROM maven:3.3-jdk-8 | ||
|
||
COPY entrypoint.sh /usr/local/bin/entrypoint.sh | ||
RUN chmod +x /usr/local/bin/entrypoint.sh | ||
|
||
#Start application | ||
WORKDIR /usr/src/mymaven | ||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
CMD ["bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
version: "3.5" | ||
services: | ||
intekenontvanger-generiek: | ||
image: intekenontvanger-generiek | ||
container_name: intekenontvanger-generiek | ||
build: | ||
context: . | ||
ports: | ||
- "8092:8092" | ||
volumes: | ||
- .:/usr/src/mymaven | ||
healthcheck: | ||
# yamllint disable-line rule:line-length | ||
test: wget --no-verbose --tries=1 http://localhost:8092/internal/health -O - || exit 1 | ||
interval: 60s | ||
timeout: 10s | ||
retries: 2 | ||
start_period: 10s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/bin/sh | ||
# You can set here anything you need before starting the spring boot application | ||
mvn spring-boot:run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters