Skip to content

Awmisc initsql #3

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: amisc_update_doc
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added embedded/project/db.init.sql.tar.gz
Binary file not shown.
4 changes: 2 additions & 2 deletions embedded/project/docker-source/adverse-events/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Docker mvn build
FROM maven:3.6.3-jdk-11 as build
FROM maven:3.6.3-jdk-11 AS build

ARG RELEASE_MODE='public'
ARG STARTER_MODULE_BRANCH=master
ARG SUBSTANCES_MODULE_BRANCH=master
ARG ADVERSE_EVENTS_MODULE_BRANCH=starter

COPY . .

COPY . .
RUN if [ "$RELEASE_MODE" = "development" ]; then \
git clone --branch $STARTER_MODULE_BRANCH --depth 2 https://github.com/ncats/gsrs-spring-starter.git && \
Expand Down
3 changes: 1 addition & 2 deletions embedded/project/docker-source/applications/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Docker mvn build
FROM maven:3.6.3-jdk-11 as build
FROM maven:3.6.3-jdk-11 AS build

ARG RELEASE_MODE='public'
ARG STARTER_MODULE_BRANCH=master
ARG SUBSTANCES_MODULE_BRANCH=master
ARG APPLICATIONS_MODULE_BRANCH=starter

COPY . .
COPY . .
RUN if [ "$RELEASE_MODE" = "development" ]; then \
git clone --branch $STARTER_MODULE_BRANCH --depth 2 https://github.com/ncats/gsrs-spring-starter.git && \
Expand Down
2 changes: 1 addition & 1 deletion embedded/project/docker-source/clinical-trials/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Docker mvn build
FROM maven:3.6.3-jdk-11 as build
FROM maven:3.6.3-jdk-11 AS build

ARG RELEASE_MODE='public'
ARG STARTER_MODULE_BRANCH=master
Expand Down
38 changes: 22 additions & 16 deletions embedded/project/docker-source/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
version: '3'
services:
adverse-events:
container_name: adverse-events-emb
entrypoint: ["java", "-cp", "/target/adverse-events.jar:classes:conf", "org.springframework.boot.loader.JarLauncher"]
environment:
APPLICATION_HOST: http://gateway:9081
APPLICATION_HOST_PORT: 9081
DB_TEST_PASSWORD: ${DB_TEST_PASSWORD}
DB_TEST_USERNAME: ${DB_TEST_USERNAME}
EUREKA_SERVICE_URL: http://discovery:8761/eureka
IX_HOME: /app/data/adverse-events/ginas.ix
IX_HOME_SUBSTANCES: /app/data/substances/ginas.ix
Expand Down Expand Up @@ -35,6 +36,8 @@ services:
- 8083:8083
clinical-trials:
container_name: clinical-trials-emb
depends_on:
- substances
image: gsrs3/gsrs-emb-docker-clinical-trials:0.0.1-SNAPSHOT
entrypoint: ["java", "-cp", "/target/clinical-trials.jar:classes:conf", "org.springframework.boot.loader.JarLauncher"]
environment:
Expand Down Expand Up @@ -69,24 +72,25 @@ services:
MS_FRONTEND_SERVER_PORT: 8082
MS_SERVLET_CONTEXT_PATH_FRONTEND: /
image: gsrs3/gsrs-emb-docker-frontend:0.0.1-SNAPSHOT
volumes:
- ../volumes/app-data:/app/data
ports:
- 8082:8082
volumes:
- ../volumes/app-data:/app/data
gateway:
container_name: gateway-emb
entrypoint: ["java", "-cp", "/target/gateway.jar:classes:conf", "org.springframework.boot.loader.JarLauncher"]
ports:
- 9081:9081
image: gsrs3/gsrs-emb-docker-gateway:0.0.1-SNAPSHOT
volumes:
- ../volumes/app-data:/app/data
environment:
DEBUG: false
API_BASE_PATH: /ginas/app
APPLICATION_HOST: http://gateway:9081
APPLICATION_HOST_PORT: 9081
EUREKA_SERVICE_URL: http://discovery:8761/eureka
SERVER_PORT: 9081
image: gsrs3/gsrs-emb-docker-gateway:0.0.1-SNAPSHOT
ports:
- 9081:9081
volumes:
- ../volumes/app-data:/app/data
impurities:
container_name: impurities-emb
entrypoint: ["java", "-cp", "/target/impurities.jar:classes:conf", "org.springframework.boot.loader.JarLauncher"]
Expand Down Expand Up @@ -123,6 +127,8 @@ services:
- 8090:8090
products:
container_name: products-emb
depends_on:
- substances
entrypoint: ["java", "-cp", "/target/products.jar:classes:conf", "org.springframework.boot.loader.JarLauncher"]
environment:
APPLICATION_HOST: http://gateway:9081
Expand Down Expand Up @@ -178,9 +184,9 @@ services:
mariadb:
container_name: mariadb-emb
environment:
MARIADB_ROOT_USER: $DB_TEST_USERNAME
MARIADB_USER: $DB_TEST_USERNAME
MARIADB_ROOT_PASSWORD: $DB_TEST_PASSWORD
MARIADB_ROOT_USER: ${DB_TEST_USERNAME}
MARIADB_USER: ${DB_TEST_USERNAME}
MARIADB_ROOT_PASSWORD: ${DB_TEST_PASSWORD}
image: mariadb:latest
ports:
- "3306:3306"
Expand All @@ -194,9 +200,9 @@ services:
# "--mysql-native-password=ON",
command: ["mysqld", "--character-set-server=utf8mb4", "--collation-server=utf8mb4_unicode_ci"]
environment:
MYSQL_ROOT_PASSWORD: $DB_TEST_PASSWORD
MYSQL_PASSWORD: $DB_TEST_PASSWORD
MYSQL_USER: $DB_TEST_USERNAME
MYSQL_ROOT_PASSWORD: ${DB_TEST_PASSWORD}
MYSQL_PASSWORD: ${DB_TEST_PASSWORD}
MYSQL_USER: ${DB_TEST_USERNAME}
MYSQL_ALLOW_EMPTY_PASSWORD: "no"
image: mysql:8.4
ports:
Expand All @@ -209,8 +215,8 @@ services:
command: postgres -c 'max_connections=1000'
container_name: postgres-emb
environment:
- POSTGRES_USER=root
- POSTGRES_PASSWORD=yourpassword
- POSTGRES_USER=${DB_TEST_USERNAME}
- POSTGRES_PASSWORD=${DB_TEST_PASSWORD}
image: postgres:14-alpine
ports:
- 5432:5432
Expand Down
Loading