-
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 #282 from Donders-Institute/stager-buildin
Stager buildin
- Loading branch information
Showing
18 changed files
with
171 additions
and
164 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 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,24 @@ | ||
version: '3.7' | ||
services: | ||
|
||
# stager task database | ||
stager-db: | ||
image: redis:alpine | ||
user: root | ||
command: --appendonly yes | ||
|
||
# stager api server | ||
stager-api-server: | ||
image: ${DOCKER_REGISTRY:-dccn}/data-stager-api:${STAGER_DOCKER_IMAGE_TAG:-latest} | ||
user: root | ||
depends_on: | ||
- stager-db | ||
command: -p 8080 -r redis://stager-db:6379 -c /etc/stager/api-server.yml | ||
|
||
# stager worker | ||
stager-worker: | ||
image: ${DOCKER_REGISTRY:-dccn}/data-stager-worker:${STAGER_DOCKER_IMAGE_TAG:-latest} | ||
user: root | ||
depends_on: | ||
- stager-api-server | ||
command: -r redis://stager-db:6379 -c /etc/stager/worker.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 |
---|---|---|
@@ -1,66 +1,74 @@ | ||
version: "3.7" | ||
services: | ||
## streamer | ||
service: | ||
volumes: | ||
# bind-mount for sss authentication | ||
- /var/lib/sss/pipes:/var/lib/sss/pipes | ||
- /var/lib/sss/mc:/var/lib/sss/mc:ro | ||
environment: | ||
# provides configuration files from docker secrets | ||
- STREAMER_SERVICE_CONFIG=/run/secrets/streamer-service-config.json | ||
- STREAMER_MAILER_CONFIG=/run/secrets/streamer-mailer-config.json | ||
- ${STREAMER_SERVICE_CONFIG}:/opt/streamer/config/default.json | ||
- ${STREAMER_MAILER_CONFIG}:/opt/streamer/config/mailer.json | ||
networks: | ||
default: | ||
# join the proxynet with hostname alias | ||
proxynet: | ||
aliases: | ||
- streamer | ||
secrets: | ||
- streamer-service-config.json | ||
- streamer-mailer-config.json | ||
ui: | ||
environment: | ||
# provides configuration files from docker secrets | ||
- STREAMER_UI_CONFIG=/run/secrets/streamer-ui-config.json | ||
- STREAMER_SERVICE_CONFIG=/run/secrets/streamer-service-config.json | ||
networks: | ||
default: | ||
# join the proxynet with hostname alias | ||
proxynet: | ||
aliases: | ||
- streamer-ui | ||
secrets: | ||
- streamer-service-config.json | ||
- streamer-ui-config.json | ||
- streamer-ui-adconfig.json | ||
- streamer-ui-ldapscert.crt | ||
ports: | ||
- ${STREAMER_UI_EXTERNAL_PORT:-9000}:9000 | ||
volumes: | ||
- ${PROJECT_CEPHFS_VOL}:/project_cephfs | ||
- ${PROJECT_VOL}:/project | ||
- ${STREAMER_UI_LOG_VOL}:/opt/streamer-ui-server/log | ||
- ${STREAMER_SERVICE_CONFIG}:/opt/streamer-ui-server/config/streamer-service-config.json | ||
- ${STREAMER_UI_CONFIG}:/opt/streamer-ui-server/config/streamer-ui-config.json | ||
ui-db: | ||
ports: | ||
- ${STREAMER_UI_DB_EXTERNAL_PORT:-9001}:${STREAMER_UI_DB_PORT:-5432} | ||
volumes: | ||
- ${STREAMER_UI_DB_DATA_VOL}:/var/lib/postgresql/data | ||
|
||
## stager | ||
stager-db: | ||
volumes: | ||
- ${STAGER_DB_DATA_VOL}:/data | ||
|
||
# stager api server | ||
stager-api-server: | ||
volumes: | ||
- ${STAGER_API_CONFIG}:/etc/stager/api-server.yml:ro | ||
- ${PROJECT_VOL:-/project}:/project | ||
- ${PROJECT_CEPHFS_VOL:-/project_cephfs}:/project_cephfs | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "20m" | ||
max-file: "5" | ||
|
||
# stager worker | ||
stager-worker: | ||
volumes: | ||
- ${STAGER_IRODS_ICAT_CERT}:/opt/irods/ssl/icat.pem:ro | ||
- ${STAGER_WORKER_CONFIG}:/etc/stager/worker.yml:ro | ||
- ${PROJECT_VOL:-/project}:/project | ||
- ${PROJECT_CEPHFS_VOL:-/project_cephfs}:/project_cephfs | ||
deploy: | ||
placement: | ||
constraints: | ||
- node.labels.IpRange==44 | ||
logging: | ||
driver: "json-file" | ||
options: | ||
max-size: "20m" | ||
max-file: "5" | ||
|
||
networks: | ||
default: | ||
name: streamer4user-net | ||
attachable: true | ||
proxynet: | ||
external: true | ||
|
||
secrets: | ||
streamer-service-config.json: | ||
external: true | ||
streamer-mailer-config.json: | ||
external: true | ||
streamer-ui-config.json: | ||
external: true | ||
streamer-ui-adconfig.json: | ||
external: true | ||
streamer-ui-ldapscert.crt: | ||
external: true | ||
external: true |
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 @@ | ||
#!/bin/bash | ||
|
||
[ $# -lt 1 ] && echo "missing Docker stack name" >&2 && exit 1 | ||
|
||
# export variables defined in env.sh | ||
set -a && source env.sh && set +a | ||
|
||
docker stack up -c docker-compose.yml -c docker-compose.swarm.yml --prune --with-registry-auth --resolve-image always streamer4user | ||
docker stack up -c docker-compose.yml -c docker-compose.stager.yml -c docker-compose.swarm.yml --prune --with-registry-auth --resolve-image always "$1" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,6 @@ | ||
FROM centos:7 | ||
FROM almalinux:8 | ||
|
||
# application metadata | ||
MAINTAINER Donders Institute | ||
LABEL donders.ru.nl.app_name "streamer" | ||
LABEL donders.ru.nl.app_maintainer "[email protected]" | ||
LABEL donders.ru.nl.app_code_repository "https://github.com/Donders-Institute/data-streamer" | ||
|
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.