-
Notifications
You must be signed in to change notification settings - Fork 8
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 #29 from veraPDF/feature/#11_build_scripts
#11 build scripts
- Loading branch information
Showing
12 changed files
with
59 additions
and
27 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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Workaround for running from Git Bash on Windows: | ||
export MSYS_NO_PATHCONV=1 | ||
|
||
script_path=$(realpath "$0") | ||
script_dir=$(dirname "$script_path") | ||
project_root=$(dirname "$script_dir") | ||
|
||
work_dir="/usr/src/verapdf-webapp-server" | ||
|
||
# Build all project sources | ||
docker run -it \ | ||
--rm --name build-verapdf-webapp-server \ | ||
-v maven-repo:/root/.m2 \ | ||
-v "$project_root":$work_dir \ | ||
-w $work_dir \ | ||
maven:3.6-jdk-11 mvn clean package |
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,3 @@ | ||
#!/usr/bin/env bash | ||
# Create a volume to reuse downloaded maven dependencies | ||
docker volume create --name maven-repo |
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
File renamed without changes.
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
File renamed without changes.
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 |
---|---|---|
|
@@ -9,5 +9,5 @@ services: | |
ports: | ||
- 80:80 | ||
depends_on: | ||
- local-storage-service | ||
- file-storage | ||
- job-service |
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,54 +1,60 @@ | ||
version: '3.4' | ||
services: | ||
local-storage-service-database: | ||
build: ./database | ||
restart: always | ||
# File Storage | ||
local-storage-database: | ||
build: ./localstorage-db | ||
environment: | ||
POSTGRES_USER: ${LOCAL_STORAGE_SERVICE_DATABASE_USER} | ||
POSTGRES_PASSWORD: ${LOCAL_STORAGE_SERVICE_DATABASE_PASSWORD} | ||
POSTGRES_DB: verapdfdb | ||
volumes: | ||
- type: volume | ||
source: filestorage_database_data | ||
source: localstorage_database_data | ||
target: /var/lib/postgresql/data | ||
local-storage-service: | ||
restart: always | ||
file-storage: | ||
build: ../local-storage-service/server | ||
expose: | ||
- 8080 | ||
depends_on: | ||
- local-storage-service-database | ||
- local-storage-database | ||
environment: | ||
LOCALSTORAGE_DATABASE_USERNAME: ${LOCAL_STORAGE_SERVICE_DATABASE_USER} | ||
LOCALSTORAGE_DATABASE_PASSWORD: ${LOCAL_STORAGE_SERVICE_DATABASE_PASSWORD} | ||
LOCALSTORAGE_DATABASE_DB: verapdfdb # the same as in local-storage-service-database | ||
LOCALSTORAGE_DATABASE_HOST: local-storage-service-database | ||
LOCALSTORAGE_DATABASE_DB: verapdfdb # the same as in file-storage-database | ||
LOCALSTORAGE_DATABASE_HOST: local-storage-database | ||
LOCALSTORAGE_DATABASE_PORT: 5432 | ||
LOCALSTORAGE_DISK_MIN_SPACE_THRESHOLD: ${LOCAL_STORAGE_SERVICE_DISK_MIN_SPACE_THRESHOLD} | ||
LOCALSTORAGE_DISK_MIN_SPACE_THRESHOLD: ${LOCAL_STORAGE_SERVICE_DISK_MIN_SPACE_THRESHOLD:-5GB} | ||
LOCALSTORAGE_MAX_FILE_SIZE: 100MB | ||
LOCALSTORAGE_MAX_REQUEST_SIZE: 101MB | ||
volumes: | ||
- type: volume | ||
source: filestorage_server_files | ||
source: localstorage_server_files | ||
target: /opt/verapdf/localstorageservice/files | ||
restart: always | ||
|
||
# Job Service | ||
job-service: | ||
build: ../job-service/server | ||
expose: | ||
- 8080 | ||
restart: always | ||
|
||
rabbitmq: | ||
build: ./rabbitmq | ||
# Validation tasks queue | ||
queue: | ||
image: rabbitmq:3.8.3 | ||
expose: | ||
- 5672 | ||
restart: always | ||
environment: | ||
RABBITMQ_DEFAULT_USER: ${RABBITMQ_DEFAULT_USER} | ||
RABBITMQ_DEFAULT_PASSWORD: ${RABBITMQ_DEFAULT_PASSWORD} | ||
RABBITMQ_DEFAULT_USER: ${AMQP_SERVER_USER} | ||
RABBITMQ_DEFAULT_PASSWORD: ${AMQP_SERVER_PASSWORD} | ||
volumes: | ||
- type: volume | ||
source: rabbitmq_database_data | ||
target: /var/lib/rabbitmq/ | ||
|
||
volumes: | ||
filestorage_database_data: | ||
filestorage_server_files: | ||
localstorage_database_data: | ||
localstorage_server_files: | ||
rabbitmq_database_data: |
File renamed without changes.
File renamed without changes.
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.