From ed092d238bb5de88df1b0f7b6b013e2c82a0c159 Mon Sep 17 00:00:00 2001
From: "alma.aqila@ui.ac.id" <alma.aqila@ui.ac.id>
Date: Fri, 25 Nov 2022 21:19:11 +0700
Subject: [PATCH] testing deploy

---
 .DS_Store                 | Bin 6148 -> 6148 bytes
 .idea/compiler.xml        |   5 +----
 .idea/gradle.xml          |   2 ++
 .idea/jarRepositories.xml |  10 ++++++++++
 .idea/kotlinc.xml         |   6 ++++++
 .idea/misc.xml            |   2 ++
 Dockerfile                |   5 +++++
 app.env                   |   6 ++++++
 backend/.DS_Store         | Bin 0 -> 6148 bytes
 docker-compose.yml        |  39 ++++++++++++++++++++++++++++++++++++++
 10 files changed, 71 insertions(+), 4 deletions(-)
 create mode 100644 .idea/kotlinc.xml
 create mode 100644 Dockerfile
 create mode 100644 app.env
 create mode 100644 backend/.DS_Store
 create mode 100644 docker-compose.yml

diff --git a/.DS_Store b/.DS_Store
index 79b5af9810d540be9f5a4b22eb8a52f347826050..6a1936997c6a7e163ab20199abc82c1cef01cc6d 100644
GIT binary patch
delta 185
zcmZoMXfc@J&&a(oU^g=(_hcRxUEV~70)_$xJ%&_<JchE#5-g9HEX*eVVTr95Vn|`g
zXGmtqW=LfyV$fwsX2@sAWhh|CXDDV!Wzb`&WXNU6@yy9jPRhwoVqjnpU|?YU$-uy%
y_a6)xK!A(E1<8ywhD?SWhE!BNOzCKPI2h6xiWu@IPhjQRoW=T`aWgx|Uw!~ci80#%

delta 42
ycmZoMXfc@J&&aVcU^g=($7CKB-O1@J2bl~kCu_0BZvM~8!8Ea9*=BZ*zx)6cLJfET

diff --git a/.idea/compiler.xml b/.idea/compiler.xml
index 0fc6984..f27f0c1 100644
--- a/.idea/compiler.xml
+++ b/.idea/compiler.xml
@@ -7,11 +7,8 @@
         <processorPath useClasspath="false">
           <entry name="$USER_HOME$/.gradle/caches/modules-2/files-2.1/org.projectlombok/lombok/1.18.24/13a394eed5c4f9efb2a6d956e2086f1d81e857d9/lombok-1.18.24.jar" />
         </processorPath>
+        <module name="RumahSehat.main" />
       </profile>
     </annotationProcessing>
-    <bytecodeTargetLevel>
-      <module name="RumahSehat.main" target="11" />
-      <module name="RumahSehat.test" target="11" />
-    </bytecodeTargetLevel>
   </component>
 </project>
\ No newline at end of file
diff --git a/.idea/gradle.xml b/.idea/gradle.xml
index 2a41531..ceb805b 100644
--- a/.idea/gradle.xml
+++ b/.idea/gradle.xml
@@ -20,6 +20,8 @@
         <option name="modules">
           <set>
             <option value="$PROJECT_DIR$/frontend/rumah_sehat/android" />
+            <option value="$PROJECT_DIR$/frontend/rumah_sehat/android/app" />
+            <option value="/usr/local/Caskroom/flutter/3.3.8/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.14/android" />
           </set>
         </option>
       </GradleProjectSettings>
diff --git a/.idea/jarRepositories.xml b/.idea/jarRepositories.xml
index fdc392f..75fe4bc 100644
--- a/.idea/jarRepositories.xml
+++ b/.idea/jarRepositories.xml
@@ -16,5 +16,15 @@
       <option name="name" value="MavenRepo" />
       <option name="url" value="https://repo.maven.apache.org/maven2/" />
     </remote-repository>
+    <remote-repository>
+      <option name="id" value="maven" />
+      <option name="name" value="maven" />
+      <option name="url" value="https://storage.googleapis.com/download.flutter.io" />
+    </remote-repository>
+    <remote-repository>
+      <option name="id" value="Google2" />
+      <option name="name" value="Google2" />
+      <option name="url" value="https://dl.google.com/dl/android/maven2/" />
+    </remote-repository>
   </component>
 </project>
\ No newline at end of file
diff --git a/.idea/kotlinc.xml b/.idea/kotlinc.xml
new file mode 100644
index 0000000..7e340a7
--- /dev/null
+++ b/.idea/kotlinc.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project version="4">
+  <component name="KotlinJpsPluginSettings">
+    <option name="version" value="1.6.21" />
+  </component>
+</project>
\ No newline at end of file
diff --git a/.idea/misc.xml b/.idea/misc.xml
index 917dbaf..26e76f8 100644
--- a/.idea/misc.xml
+++ b/.idea/misc.xml
@@ -3,5 +3,7 @@
   <component name="ExternalStorageConfigurationManager" enabled="true" />
   <component name="FrameworkDetectionExcludesConfiguration">
     <file type="web" url="file://$PROJECT_DIR$/backend/RumahSehat" />
+    <file type="web" url="file://$PROJECT_DIR$/frontend/rumah_sehat/android" />
+    <file type="web" url="file:///usr/local/Caskroom/flutter/3.3.8/flutter/.pub-cache/hosted/pub.dartlang.org/shared_preferences_android-2.0.14/android" />
   </component>
 </project>
\ No newline at end of file
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 0000000..fd05603
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,5 @@
+FROM openjdk:17-alpine
+ARG JAR_FILE=backend/RumahSehat/build/libs/RumahSehat-0.0.1-SNAPSHOT.jar
+COPY ${JAR_FILE} app.jar
+EXPOSE 9099
+ENTRYPOINT ["java","-jar","/app.jar"]
diff --git a/app.env b/app.env
new file mode 100644
index 0000000..89bfe2d
--- /dev/null
+++ b/app.env
@@ -0,0 +1,6 @@
+SPRING_PROFILES_ACTIVE=prod
+
+MYSQL_ROOT_PASSWORD=password123456!
+MYSQL_DATABASE=apap_db
+MYSQL_USER=apap_user
+MYSQL_PASSWORD=password1234!
\ No newline at end of file
diff --git a/backend/.DS_Store b/backend/.DS_Store
new file mode 100644
index 0000000000000000000000000000000000000000..551c7368deb67065d6564f5b93e201f650ba3444
GIT binary patch
literal 6148
zcmZQzU|@7AO)+F(5MW?n;9!8zOq>i@0Z1N%F(jFwBFrH3z-DAH1T&;EWH2N$ltAT1
zslgorpt$2=2x2H@$Yn@mK#D)loc!dZocttc;&5bOV9@&y24D|i)ss|STmaRxBdH)K
zv$({-;2I+nGYcylI|n-lH%Dx6Mt*s4Nn%N9u~TAEG>8|HpP!QiV<#qsWu}(L3y3)9
z=anR8=A{;almus{q$VX6#e`?(rR0}8<(KBA6od6bB{(=aIO7E*s;f;*4RsWZEzD|l
z6sj$a40IGsjLm9mIXOg?^{s>AvvYFu^1HyUXJBN6&<wm#8b)<9Ffd^CTUl^XUQT{q
zIwY;bl#kM*Aut*OqaiRPLjYO^a&Qkx*N-}SGz3ONfR-TuDjyV}?Hvaw-2kCMQVfg?
z4B##RBLf2q%pHv2egFeV4x|-CgS3KZkX8mp5DRPuSSte~R4XI68v@b?>XLwHuyzJU
z2C#MpMh38Uc*BhmqMd;eYBM9Whr$Ta&cF!K&cF!K4s+fpJsJX|Api{lP~Q*Ky#v+%
zt_%#g`u|YXqts{!jE2B)3;{+KmtYqsaHWjhd!V`&RG%h5r9rhns5)i@)zb(ua8=9%
j8Bmmf3WKV9kX8^4u8J8MAT{}DLjV>+qx5J9&_4tKID1;#

literal 0
HcmV?d00001

diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 0000000..9615d28
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,39 @@
+version: '2'
+services:
+  web:
+    build:
+      context: .
+    image: localhost:15000/denny/apap-001
+    restart: always
+    ports:
+      - "10083:8080"
+    volumes:
+      - ./file-storage:/file-storage
+      - ./log:/log
+    env_file:
+      - app.env
+    depends_on:
+      - db
+    networks:
+      - frontend-network
+      - backend-network
+
+  db:
+    image: mariadb:10.4.24
+    restart: always
+    env_file:
+      - app.env
+    volumes:
+      - mysql-db-volume:/var/lib/mysql
+    networks:
+      - backend-network
+
+volumes:
+  mysql-db-volume:
+
+networks:
+  frontend-network:
+    driver: bridge
+  backend-network:
+
+
-- 
GitLab