-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from AnataAria/vinh
Vinh/reactive Ci/CD
- Loading branch information
Showing
28 changed files
with
492 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,5 +34,4 @@ build/ | |
|
||
|
||
## Node JS | ||
package-lock.json | ||
.env | ||
package-lock.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
FROM maven:3.8.5-openjdk-17 | ||
LABEL authors="AnataArisa" | ||
WORKDIR /api-backend | ||
ARG API_ENV | ||
COPY . . | ||
RUN mvn clean install -Pdev | ||
ENV SPRING_PROFILES_ACTIVE=${API_ENV} | ||
RUN mvn clean install | ||
ENTRYPOINT ["java", "-jar", "./target/drawingcouseselling-0.1.jar"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
81 changes: 81 additions & 0 deletions
81
api/drawingcouseselling/src/main/resources/application-staging.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,81 @@ | ||
aws: | ||
access: | ||
key: | ||
id: AKIA2EWSF45CBHDRXQJK | ||
s3: | ||
region: ap-southeast-1 | ||
bucket: | ||
name: ademyimage | ||
secret: | ||
access: | ||
key: tN7GXYsy2zZHqb1znrfCf/hmNXzdFuRN9MSPdG2P | ||
|
||
spring: | ||
datasource: | ||
url: jdbc:mariadb://${DB_HOST:anataarisa.hopto.org}:${DB_PORT:3306}/ademy | ||
# url: jdbc:mariadb://localhost:3307/ademy | ||
username: ${DB_USERNAME:pim} | ||
password: ${DB_PASSWORD:Vinh12345.} | ||
driver-class-name: org.mariadb.jdbc.Driver | ||
jpa: | ||
hibernate: | ||
ddl-auto: update | ||
sql: | ||
init: | ||
encoding: utf-8 | ||
# session: | ||
# store-type=jdbc: | ||
mail: | ||
host: smtp.gmail.com | ||
port: 587 | ||
username: [email protected] | ||
password: ztgzeyizzyicozuc | ||
properties: | ||
mail: | ||
smtp: | ||
auth: true | ||
starttls: | ||
enable: true | ||
security: | ||
oauth2: | ||
client: | ||
registration: | ||
google: | ||
client-id: 509336143279-ng2g9fdpg8pkt1j3jlj24au6l96hk0qn.apps.googleusercontent.com | ||
client-secret: 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 | ||
|
||
server: | ||
servlet: | ||
context-path: /api/v1 | ||
port: 9090 | ||
error: | ||
include-message: always | ||
|
||
|
||
logging: | ||
level: | ||
org: | ||
springframework: | ||
security: TRACE | ||
hibernate: | ||
type: trace | ||
orm: | ||
jdbc: | ||
bind: trace | ||
|
||
jwt-key: | ||
secret-key: ${JWT_KEY:49906c40c2bd2ce2a35571ebf991e74573d0e5cc5db9e032a7b1c5af42c8b038} | ||
|
||
paypal: | ||
client: | ||
secret: EHGsrSIQG-aODbOaHmd5YnhCLNS3Zq3x3einniprXjRkABpA-U0UEXy9w_hp-YElLEwsQv6tmQNJ4ZVS | ||
app: AWbOtZPREQ6DxSCza2yGZT82kQTW9T17r8xezCuKARBoBM5jli0FdOPrdRVkytKLdeaaFaiM6k-tHlr6 | ||
mode: sandbox | ||
|
||
|
||
frontend: | ||
url: http://anataarisa.hopto.org:3000/ | ||
|
||
api: | ||
base: | ||
url: http://anataarisa.hopto.org:7070/api/v1/ |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
version: '3.8' | ||
services: | ||
api-backend: | ||
image: api-backend-server-qa | ||
container_name: api-backend-server-qa | ||
build: | ||
context: "./api/drawingcouseselling/" | ||
dockerfile: Dockerfile | ||
args: | ||
- API_ENV=staging | ||
ports: | ||
- "7070:9090" | ||
networks: | ||
- dev-network | ||
environment: | ||
DB_HOST: anataarisa.hopto.org | ||
DB_PORT: 3306 | ||
DB_USERNAME: pim | ||
DB_PASSWORD: Vinh12345. | ||
restart: always | ||
healthcheck: | ||
test: ["CMD", "curl", "-f", "http://localhost:9090/api/v1/courses"] | ||
interval: 30s | ||
timeout: 10s | ||
retries: 3 | ||
|
||
front-end: | ||
image: svelte-frontend-server-qa | ||
container_name: svelte-frontend-server-qa | ||
build: | ||
context: "./frontend/my-app/" | ||
dockerfile: Dockerfile | ||
args: | ||
- ENV_DP=testing | ||
ports: | ||
- "3000:3000" | ||
networks: | ||
- dev-network | ||
restart: always | ||
depends_on: | ||
api-backend: | ||
condition: service_healthy | ||
networks: | ||
dev-network: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
# Public | ||
PUBLIC_API_BASE_URL_DEV=http://localhost:7070/api/v1/ | ||
PUBLIC_API_BASE_URL_PROD=http://anataarisa.hopto.org:7070/api/v1/ | ||
PUBLIC_API_BASE_URL_QA=http://anataarisa.hopto.org:7070/api/v1/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
FROM node:latest | ||
WORKDIR /svelte-frontend | ||
ARG ENV_DP | ||
ENV NODE_ENV=${ENV_DP} | ||
RUN npm install -g pnpm | ||
RUN npm i vite | ||
COPY package*.json . | ||
RUN pnpm i | ||
COPY . . | ||
EXPOSE 3000 | ||
EXPOSE 24678 | ||
ENTRYPOINT [ "pnpm", "dev" ] | ||
RUN pnpm build | ||
ENTRYPOINT [ "node", "build" ] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.