From 9e5d0af852f7caf1533b1461fe4013b653d1a397 Mon Sep 17 00:00:00 2001 From: meli Date: Tue, 26 Nov 2024 11:41:43 +0900 Subject: [PATCH 1/4] [Chore] CI/CD Docker GitHub Actions --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 Dockerfile diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..06194a4 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,4 @@ +FROM openjdk:17-alpine +ARG JAR_FILE=/build/libs/*.jar +COPY ${JAR_FILE} app.jar +ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file From 445f37816d06f815db2cc86133d947d119e638ea Mon Sep 17 00:00:00 2001 From: meli Date: Tue, 26 Nov 2024 12:03:46 +0900 Subject: [PATCH 2/4] [Chore] CI/CD application.yml --- src/main/resources/application.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 27be250..407d04d 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -16,7 +16,7 @@ spring: # open-in-view: false properties: hibernate: -# dialect: org.hibernate.dialect.MySQLDialect + dialect: org.hibernate.dialect.MySQLDialect show_sql: true format_sql: true use_sql_comments: true From 433f05fdbd73283c730384f703f5515a13be31f8 Mon Sep 17 00:00:00 2001 From: meli Date: Tue, 26 Nov 2024 12:24:03 +0900 Subject: [PATCH 3/4] [Chore] Docker Dockerfile --- Dockerfile | 1 + 1 file changed, 1 insertion(+) diff --git a/Dockerfile b/Dockerfile index 06194a4..a08f748 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,5 @@ FROM openjdk:17-alpine ARG JAR_FILE=/build/libs/*.jar COPY ${JAR_FILE} app.jar +EXPOSE 8080 ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file From 190f8ad6cca1b1273778d543bfbaeceeee468e52 Mon Sep 17 00:00:00 2001 From: meli Date: Tue, 26 Nov 2024 14:08:19 +0900 Subject: [PATCH 4/4] [Chore] application.yml server port --- src/main/resources/application.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 407d04d..8b10eea 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1,3 +1,6 @@ +server: + port: 8080 + spring: datasource: url: ${AWS_DB_URL}