From 0877fe185725830ed38be985cd0998aa375bd79e Mon Sep 17 00:00:00 2001 From: JIUNG YANG Date: Fri, 30 Aug 2024 14:26:02 +0900 Subject: [PATCH] SB-38 (Feat) : Add Image DockerFile --- .github/workflows/gradle.yml | 5 ++++ image/Dockerfile | 3 +++ image/src/main/resources/application.yaml | 28 ----------------------- image/src/main/resources/application.yml | 1 + 4 files changed, 9 insertions(+), 28 deletions(-) create mode 100644 image/Dockerfile delete mode 100644 image/src/main/resources/application.yaml create mode 100644 image/src/main/resources/application.yml diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d9557809..910450de 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -31,6 +31,11 @@ jobs: cd ./users/src/main/resources echo "${{ secrets.USER_APPLICATION }}" > application.yml + - name: Make Image application.yml + run: | + cd ./image/src/main/resources + echo "${{ secrets.IMAGE_APPLICATION }}" > application.yml + - name: Make Warehouse application.yml run: | cd ./warehouse/src/main/resources diff --git a/image/Dockerfile b/image/Dockerfile new file mode 100644 index 00000000..27e4466e --- /dev/null +++ b/image/Dockerfile @@ -0,0 +1,3 @@ +FROM openjdk:17-jdk-slim +ADD /image/build/libs/*.jar image.jar +ENTRYPOINT ["java","-Djava.security.egd=file:/dev/./urandom","-jar","/image.jar"] \ No newline at end of file diff --git a/image/src/main/resources/application.yaml b/image/src/main/resources/application.yaml deleted file mode 100644 index 2799d40b..00000000 --- a/image/src/main/resources/application.yaml +++ /dev/null @@ -1,28 +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 -file: - upload-dir: /Users/yeongwoonshin/Desktop/Baobab-SERVER/image/src/main/resources/static/images/ - path: /images/ - -jwt: - secret: - key: shinyangjunglee_baobab_passwordkey - access-token: - plus-hour: 1 - refresh-token: - plus-hour: 12 - -server: - port: 8083 \ No newline at end of file diff --git a/image/src/main/resources/application.yml b/image/src/main/resources/application.yml new file mode 100644 index 00000000..3602361d --- /dev/null +++ b/image/src/main/resources/application.yml @@ -0,0 +1 @@ +temp \ No newline at end of file