From 7e21c327dd842f5df9cbb0bf8ee05a1f175e03b5 Mon Sep 17 00:00:00 2001 From: JIUNG YANG Date: Fri, 12 Jul 2024 16:38:20 +0900 Subject: [PATCH] SB-28 (Feat) : Add Dockerfile MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SB-28 (Feat) : Add Dockerfile Docker-Compose 사용을 위한 Dockerfile 추가 --- db/Dockerfile | 3 +++ global/Dockerfile | 3 +++ warehouse/Dockerfile | 3 +++ warehouse/src/main/resources/application.yml | 26 +------------------- 4 files changed, 10 insertions(+), 25 deletions(-) create mode 100644 db/Dockerfile create mode 100644 global/Dockerfile create mode 100644 warehouse/Dockerfile diff --git a/db/Dockerfile b/db/Dockerfile new file mode 100644 index 00000000..f1983c6f --- /dev/null +++ b/db/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /db/build/libs/*.jar db.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/db.jar"] \ No newline at end of file diff --git a/global/Dockerfile b/global/Dockerfile new file mode 100644 index 00000000..e89766af --- /dev/null +++ b/global/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /global/build/libs/*.jar global.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/global.jar"] \ No newline at end of file diff --git a/warehouse/Dockerfile b/warehouse/Dockerfile new file mode 100644 index 00000000..566d3d07 --- /dev/null +++ b/warehouse/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /warehouse/build/libs/*.jar warehouse.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/warehouse.jar"] \ No newline at end of file diff --git a/warehouse/src/main/resources/application.yml b/warehouse/src/main/resources/application.yml index 4c8e3625..9c595a6f 100644 --- a/warehouse/src/main/resources/application.yml +++ b/warehouse/src/main/resources/application.yml @@ -1,25 +1 @@ -spring: - jpa: - show-sql: true - hibernate: - ddl-auto: validate - properties: - hibernate: - format_sql: true - dialect: org.hibernate.dialect.MySQL8Dialect - datasource: - url: jdbc:mysql://localhost:3306/baobab?useSSL=false&useUnicode=true&allowPublicKeyRetrieval=true - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 1234 -file: - upload-dir: /Users/yeongwoonshin/Desktop/Baobab-SERVER/warehouse/src/main/resources/static/images/ - path : /images/ - -jwt: - secret: - key: shinyangjunglee_baobab_passwordkey - access-token: - plus-hour: 1 - refresh-token: - plus-hour: 12 +temp