From 347a03ad5e4e9c70f084d35eea15ecd8462efe0a Mon Sep 17 00:00:00 2001 From: JIUNG YANG Date: Mon, 2 Sep 2024 19:17:32 +0900 Subject: [PATCH] =?UTF-8?q?SB-292=20(Feat)=20:=20=EA=B2=B0=ED=95=A8=20?= =?UTF-8?q?=EB=AA=A8=EB=93=88=20=EB=B0=B0=ED=8F=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/gradle.yml | 5 +++++ fault/Dockerfile | 3 +++ fault/src/main/resources/application.yaml | 25 ----------------------- fault/src/main/resources/application.yml | 1 + 4 files changed, 9 insertions(+), 25 deletions(-) create mode 100644 fault/Dockerfile delete mode 100644 fault/src/main/resources/application.yaml create mode 100644 fault/src/main/resources/application.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 910450de..272f8a82 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -36,6 +36,11 @@ jobs: cd ./image/src/main/resources echo "${{ secrets.IMAGE_APPLICATION }}" > application.yml + - name: Make Fault application.yml + run: | + cd ./fault/src/main/resources + echo "${{ secrets.FAULT_APPLICATION }}" > application.yml + - name: Make Warehouse application.yml run: | cd ./warehouse/src/main/resources diff --git a/fault/Dockerfile b/fault/Dockerfile new file mode 100644 index 00000000..9d3a3cfe --- /dev/null +++ b/fault/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /fault/build/libs/*.jar fault.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/fault.jar"] \ No newline at end of file diff --git a/fault/src/main/resources/application.yaml b/fault/src/main/resources/application.yaml deleted file mode 100644 index efa2c13b..00000000 --- a/fault/src/main/resources/application.yaml +++ /dev/null @@ -1,25 +0,0 @@ -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 - -jwt: - secret: - key: shinyangjunglee_baobab_passwordkey - access-token: - plus-hour: 1 - refresh-token: - plus-hour: 12 - -server: - port: 8084 \ No newline at end of file diff --git a/fault/src/main/resources/application.yml b/fault/src/main/resources/application.yml new file mode 100644 index 00000000..3602361d --- /dev/null +++ b/fault/src/main/resources/application.yml @@ -0,0 +1 @@ +temp \ No newline at end of file