aboutsummaryrefslogtreecommitdiffstats
path: root/csit.infra.dash/docker-compose.yaml
diff options
context:
space:
mode:
authorpmikus <peter.mikus@protonmail.ch>2022-11-09 13:22:00 +0000
committerPeter Mikus <peter.mikus@protonmail.ch>2022-11-09 14:41:12 +0000
commit62610e87e75e173c5cdac4035c4779c37f7e8e00 (patch)
tree444b3113a856381104763c9a61cdbb01be0a9d2a /csit.infra.dash/docker-compose.yaml
parentc5dfa9d7295672478b0318d4fe83f560c4cf4d66 (diff)
feat(cdash): CI Scripts
Signed-off-by: pmikus <peter.mikus@protonmail.ch> Change-Id: I857265b1f63fb795d5efbb312777edebe700a49a
Diffstat (limited to 'csit.infra.dash/docker-compose.yaml')
-rw-r--r--csit.infra.dash/docker-compose.yaml30
1 files changed, 21 insertions, 9 deletions
diff --git a/csit.infra.dash/docker-compose.yaml b/csit.infra.dash/docker-compose.yaml
index e2259b82ba..7a5288b3f7 100644
--- a/csit.infra.dash/docker-compose.yaml
+++ b/csit.infra.dash/docker-compose.yaml
@@ -1,16 +1,15 @@
version: "3.7"
services:
- dash:
+ cdash:
build: "."
command: "uwsgi --ini app.ini --workers 1"
depends_on:
- "minio"
- environment:
- AWS_ACCESS_KEY_ID: ""
- AWS_SECRET_ACCESS_KEY: ""
- ports:
- - "5000"
+ - "mc"
mem_limit: "4g"
+ ports:
+ - "5000:5000"
+ user: "${UID}:${GID}"
volumes:
- "${PWD}/app/:/app"
- "${PWD}/../resources/libraries/python/jumpavg/:/app/cdash/jumpavg"
@@ -20,16 +19,29 @@ services:
command: server --console-address ":9001" /data
expose:
- "9000"
- - "9001"
environment:
MINIO_ROOT_USER: "minioadmin"
MINIO_ROOT_PASSWORD: "minioadmin"
healthcheck:
- test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
+ test: [ "CMD", "curl", "-f", "http://localhost:9000/minio/health/live" ]
interval: "30s"
timeout: "20s"
retries: 3
+ ports:
+ - "9001:9001"
volumes:
- "data:/data"
+ mc:
+ image: "quay.io/minio/mc:RELEASE.2022-11-07T23-47-39Z"
+ depends_on:
+ - "minio"
+ entrypoint: >
+ /bin/sh -c "
+ /usr/bin/mc config host rm local;
+ /usr/bin/mc config host add --quiet --api s3v4 local http://minio:9000 minioadmin minioadmin;
+ /usr/bin/mc mb --quiet --ignore-existing local/fdio-docs-s3-cloudfront-index/;
+ /usr/bin/mc anonymous set public local/fdio-docs-s3-cloudfront-index;
+ "
volumes:
- data: \ No newline at end of file
+ data:
+# external: true