You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
59 lines
1.7 KiB
YAML
59 lines
1.7 KiB
YAML
version: '3.3'
|
|
|
|
services:
|
|
minio:
|
|
image: quay.io/minio/minio
|
|
hostname: minio
|
|
restart: always
|
|
command: server /data --console-address ":9001"
|
|
expose:
|
|
- "9000"
|
|
- "9001"
|
|
ports:
|
|
- 9000:9000
|
|
- 9001:9001
|
|
environment:
|
|
MINIO_ROOT_USER: ${MINIO_ACCESS_KEY}
|
|
MINIO_ROOT_PASSWORD: ${MINIO_SECRET_KEY}
|
|
healthcheck:
|
|
test: ["CMD", "curl", "-f", "http://localhost:9000/minio/health/live"]
|
|
interval: 30s
|
|
timeout: 20s
|
|
retries: 3
|
|
networks:
|
|
cvat:
|
|
aliases:
|
|
- minio
|
|
mc:
|
|
image: minio/mc
|
|
depends_on:
|
|
- minio
|
|
environment:
|
|
MC_PATH: "/usr/bin/mc"
|
|
MINIO_HOST: "http://minio:9000"
|
|
MINIO_ACCESS_KEY:
|
|
MINIO_SECRET_KEY:
|
|
MINIO_ALIAS: "local_minio"
|
|
PRIVATE_BUCKET: "private"
|
|
PUBLIC_BUCKET: "public"
|
|
TEST_BUCKET: "test"
|
|
volumes:
|
|
- ./tests/cypress/integration/actions_tasks/assets/case_65_manifest/:/storage
|
|
networks:
|
|
- cvat
|
|
entrypoint: >
|
|
/bin/sh -c "
|
|
$${MC_PATH} config host add --quiet --api s3v4 $${MINIO_ALIAS} $${MINIO_HOST} $${MINIO_ACCESS_KEY} $${MINIO_SECRET_KEY};
|
|
$${MC_PATH} mb $${MINIO_ALIAS}/$${PRIVATE_BUCKET} $${MINIO_ALIAS}/$${PUBLIC_BUCKET} $${MINIO_ALIAS}/$${TEST_BUCKET};
|
|
for BUCKET in $${MINIO_ALIAS}/$${PRIVATE_BUCKET} $${MINIO_ALIAS}/$${PUBLIC_BUCKET} $${MINIO_ALIAS}/$${TEST_BUCKET};
|
|
do
|
|
$${MC_PATH} cp --recursive /storage/ $${BUCKET};
|
|
for i in 1 2;
|
|
do
|
|
$${MC_PATH} cp /storage/manifest.jsonl $${BUCKET}/manifest_$${i}.jsonl;
|
|
done;
|
|
done;
|
|
$${MC_PATH} policy set public $${MINIO_ALIAS}/$${PUBLIC_BUCKET};
|
|
exit 0;
|
|
"
|