-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
reorganize the docker stacks a bit, with some comments on how to use
- Loading branch information
1 parent
ec84e0a
commit ede8780
Showing
12 changed files
with
88 additions
and
73 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 |
---|---|---|
|
@@ -204,27 +204,17 @@ jobs: | |
org.opencontainers.image.licenses=Apache-2.0 | ||
- name: Trigger downstream repo (appserver) | ||
# if: github.event_name != 'pull_request' #only after a merge | ||
if: github.event_name != 'pull_request' #only after a merge | ||
uses: convictional/[email protected] | ||
with: | ||
owner: yatharthranjan | ||
owner: RADAR-base | ||
repo: RADAR-Appserver | ||
github_token: ${{ secrets.APPSERVER_REPO_PERSONAL_ACCESS_TOKEN }} #token with repo access to app_server | ||
workflow_file_name: downstream.yml | ||
ref: downstream_e2e_testing | ||
workflow_file_name: main.yml | ||
ref: master #change for testing against a specific downstream branch | ||
propagate_failure: false | ||
wait_workflow: false | ||
|
||
# # placeholder for testing | ||
# - name: End to end tests (docker image) | ||
# id: e2e-prod-docker | ||
# run: | | ||
# cp src/test/resources/config/keystore.p12 src/main/docker/etc/config | ||
# ./gradlew -Pprod buildDocker -x test -x javadocJar | ||
# docker-compose -f src/main/docker/app.yml up -d | ||
# yarn run e2e-prod | ||
# docker-compose -f src/main/docker/app.yml down -v | ||
|
||
# Temp fix | ||
# https://github.com/docker/build-push-action/issues/252 | ||
# https://github.com/moby/buildkit/issues/1896 | ||
|
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 |
---|---|---|
@@ -1,20 +1,16 @@ | ||
version: '2' | ||
services: | ||
managementportal-app: | ||
image: radarbase/management-portal | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=prod,api-docs | ||
- SPRING_DATASOURCE_URL=jdbc:postgresql://managementportal-postgresql:5432/managementportal | ||
- SPRING_DATASOURCE_USERNAME=radarbase | ||
- SPRING_DATASOURCE_PASSWORD=radarbase | ||
- MANAGEMENTPORTAL_FRONTEND_CLIENT_SECRET=secret | ||
- JHIPSTER_SLEEP=10 # gives time for the database to boot before the application | ||
- JAVA_OPTS=-Xmx512m # maximum heap size for the JVM running ManagementPortal, increase this as necessary | ||
ports: | ||
- 8080:8080 | ||
volumes: | ||
- ./etc:/mp-includes | ||
managementportal-postgresql: | ||
extends: | ||
file: postgresql.yml | ||
service: managementportal-postgresql | ||
image: radarbase/management-portal | ||
environment: | ||
- SPRING_PROFILES_ACTIVE=prod,api-docs | ||
- SPRING_DATASOURCE_URL=jdbc:postgresql://managementportal-postgresql:5432/managementportal | ||
- SPRING_DATASOURCE_USERNAME=radarbase | ||
- SPRING_DATASOURCE_PASSWORD=radarbase | ||
- MANAGEMENTPORTAL_FRONTEND_CLIENT_SECRET=secret | ||
- JHIPSTER_SLEEP=10 # gives time for the database to boot before the application | ||
- JAVA_OPTS=-Xmx512m # maximum heap size for the JVM running ManagementPortal, increase this as necessary | ||
ports: | ||
- "8080:8080" | ||
volumes: | ||
- ./etc:/mp-includes |
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,25 @@ | ||
# Docker stack to run managementport using only dockerhub images | ||
|
||
version: '2.1' | ||
|
||
networks: | ||
mail: | ||
driver: bridge | ||
internal: true | ||
|
||
services: | ||
managementportal-app: | ||
extends: | ||
file: ../management-portal.yml | ||
service: managementportal-app | ||
|
||
managementportal-postgresql: | ||
extends: | ||
file: ../postgresql.yml | ||
service: postgresql | ||
|
||
## smtp server, uncomment if needed | ||
# managementportal-smtp: | ||
# extends: | ||
# file: ../smtp.yml | ||
# service: smtp |
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 @@ | ||
# Docker stack to run managementport using a locally built docker image built using the command | ||
# ./gradlew bootWar -Pprod buildDocker | ||
|
||
version: '2' | ||
services: | ||
managementportal-app: | ||
extends: | ||
file: ../management-portal.yml | ||
service: managementportal-app | ||
image: managementportal | ||
environment: | ||
- SPRING_LIQUIBASE_CONTEXTS=dev #includes testing_data, remove for production builds | ||
|
||
managementportal-postgresql: | ||
extends: | ||
file: ../postgresql.yml | ||
service: postgresql |
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,15 @@ | ||
# Docker stack containing all the "required" interacting components to run managementportal | ||
# Intended to use alongside local executables of managementportal (e.g. in an Intellij) for development/debug purposes | ||
|
||
version: '2' | ||
services: | ||
managementportal-postgresql: | ||
extends: | ||
file: ../postgresql.yml | ||
service: managementportal-postgresql | ||
|
||
## smtp server, uncomment if needed | ||
# managementportal-smtp: | ||
# extends: | ||
# file: ../smtp.yml | ||
# service: smtp |
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,10 @@ | ||
version: '2' | ||
services: | ||
managementportal-postgresql: | ||
postgresql: | ||
image: postgres:11-alpine | ||
environment: | ||
- POSTGRES_USER=radarbase | ||
- POSTGRES_PASSWORD=radarbase | ||
- POSTGRES_DB=managementportal | ||
ports: | ||
- 5432:5432 | ||
- "5432:5432" |
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,7 +1,7 @@ | ||
version: '2' | ||
services: | ||
managementportal-sonar: | ||
sonar: | ||
image: sonarqube:6.2-alpine | ||
ports: | ||
- 9000:9000 | ||
- 9092:9092 | ||
- "9000:9000" | ||
- "9092:9092" |