Skip to content

Commit ef85cfe

Browse files
Merge pull request #79 from AnswerConsulting/BENCH-185
BENCH-185 REFACTORED DOCKER RELATED ITEMS
2 parents a92dcb1 + 459ff3c commit ef85cfe

File tree

4 files changed

+31
-3
lines changed

4 files changed

+31
-3
lines changed

Dockerfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
FROM openjdk:17-jdk-alpine
2-
1+
FROM amazoncorretto:17
32
COPY target/answer-king-rest-api-0.0.1.jar answerking-0.0.1.jar
43
ADD ./src/main/resources/application.yaml application.yaml
54
ENTRYPOINT ["java","-D--spring.config.location=classpath:file:/application-yaml","-jar","/answerking-0.0.1.jar"]

src/main/resources/banner.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
${AnsiColor.MAGENTA} █████╗ ███╗ ██╗███████╗██╗ ██╗███████╗██████╗ ██╗ ██╗██╗███╗ ██╗ ██████╗
3+
${AnsiColor.MAGENTA}██╔══██╗████╗ ██║██╔════╝██║ ██║██╔════╝██╔══██╗ ██║ ██╔╝██║████╗ ██║██╔════╝
4+
${AnsiColor.MAGENTA}███████║██╔██╗ ██║███████╗██║ █╗ ██║█████╗ ██████╔╝ █████╔╝ ██║██╔██╗ ██║██║ ███╗
5+
${AnsiColor.MAGENTA}██╔══██║██║╚██╗██║╚════██║██║███╗██║██╔══╝ ██╔══██╗ ██╔═██╗ ██║██║╚██╗██║██║ ██║
6+
${AnsiColor.MAGENTA}██║ ██║██║ ╚████║███████║╚███╔███╔╝███████╗██║ ██║ ██║ ██╗██║██║ ╚████║╚██████╔╝
7+
${AnsiColor.MAGENTA}╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚══╝╚══╝ ╚══════╝╚═╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚═╝ ╚═══╝ ╚═════╝
8+
9+
${Ansi.RED} :: Spring Boot${spring-boot.formatted-version} :: ${Ansi.DEFAULT}

start-answerking.bat

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
@echo off
2+
3+
:: If this script does not work for you please ensure you install
4+
:: Maven onto your machine, https://maven.apache.org/install.html
5+
6+
echo ================================================
7+
echo Beginning Docker Build on Windows
8+
echo ================================================
9+
10+
call mvn clean install
11+
call docker-compose down --remove-orphans
12+
call docker-compose build
13+
call docker-compose up

start-answerking.sh

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
#!/bin/bash
22

3-
docker-compose down --remove-orphans
3+
# If this script does not work for you please ensure you install
4+
# Maven onto your machine, https://maven.apache.org/install.html
5+
6+
echo "================================================"
7+
echo "Beginning Docker Build on Linux"
8+
echo "================================================"
9+
410
mvn clean install
11+
docker-compose down --remove-orphans
512
docker-compose build
613
docker-compose up

0 commit comments

Comments
 (0)