-
Notifications
You must be signed in to change notification settings - Fork 2
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 #466 from bounswe/dev
merging dev into the new branch
- Loading branch information
Showing
13 changed files
with
227 additions
and
47 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
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 was deleted.
Oops, something went wrong.
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,17 @@ | ||
FROM maven:3.6.3-openjdk-17 as stage1 | ||
WORKDIR /app | ||
COPY pom.xml . | ||
# go-offline using the pom.xml | ||
RUN mvn dependency:go-offline | ||
# copy your other files | ||
COPY ./src ./src | ||
# compile the source code and package it in a jar file | ||
RUN mvn clean install -Dmaven.test.skip=true | ||
|
||
FROM openjdk:17-jdk | ||
WORKDIR /app | ||
ARG JAR_FILE=/app/target/resq-0.0.1-SNAPSHOT.jar | ||
COPY --from=stage1 ${JAR_FILE} ./app/app.jar | ||
COPY project_env /app/config | ||
ENV resq.appdir=/app/config | ||
ENTRYPOINT ["java","-jar","./app/app.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
FROM maven:3.6.3-openjdk-17 as stage1 | ||
WORKDIR /app | ||
COPY ./pom.xml . | ||
# go-offline using the pom.xml | ||
RUN mvn dependency:go-offline | ||
# copy your other files | ||
COPY ./src ./src | ||
# compile the source code and package it in a jar file | ||
RUN mvn clean install -Dmaven.test.skip=true | ||
|
||
FROM openjdk:17-jdk | ||
WORKDIR /app | ||
ARG JAR_FILE=./app/target/resq-0.0.1-SNAPSHOT.jar | ||
COPY --from=stage1 ${JAR_FILE} ./app/app.jar | ||
COPY ./project_env_prod /app/config | ||
ENV resq.appdir=/app/config | ||
ENTRYPOINT ["java","-jar","./app/app.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
version: '3.1' | ||
services: | ||
backend: | ||
container_name: backend | ||
image: backend:latest | ||
build: | ||
context: . | ||
dockerfile: Dockerfile.local | ||
ports: | ||
- "8081:8081" | ||
expose: | ||
- "8081" | ||
depends_on: | ||
- db | ||
environment: | ||
- RESQ_APPDIR=/app/config | ||
- SPRING_DATASOURCE_URL=jdbc:postgresql://db:5432/compose-postgres | ||
- SPRING_DATASOURCE_USERNAME=compose-postgres | ||
- SPRING_DATASOURCE_PASSWORD=compose-postgres | ||
- SPRING_JPA_HIBERNATE_DDL_AUTO=update | ||
networks: | ||
- app_network | ||
|
||
db: | ||
image: 'postgres:13.1' | ||
container_name: db | ||
environment: | ||
- POSTGRES_USER=compose-postgres | ||
- POSTGRES_PASSWORD=compose-postgres | ||
networks: | ||
- app_network | ||
|
||
networks: | ||
app_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
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
Oops, something went wrong.