|
|
@@ -4,6 +4,9 @@
|
|
|
|
|
|
version: "2.3"
|
|
|
|
|
|
+volumes:
|
|
|
+ minio-certs:
|
|
|
+
|
|
|
services:
|
|
|
test_unit:
|
|
|
build:
|
|
|
@@ -32,7 +35,7 @@ services:
|
|
|
- .:/overleaf/services/filestore
|
|
|
- ../../node_modules:/overleaf/node_modules
|
|
|
- ../../libraries:/overleaf/libraries
|
|
|
- - ./test/acceptance/certs:/certs
|
|
|
+ - minio-certs:/certs
|
|
|
working_dir: /overleaf/services/filestore
|
|
|
environment:
|
|
|
ELASTIC_SEARCH_DSN: es:9200
|
|
|
@@ -72,27 +75,27 @@ services:
|
|
|
command: npm run --silent test:acceptance
|
|
|
|
|
|
certs:
|
|
|
- image: node:22.17.0
|
|
|
+ build:
|
|
|
+ dockerfile_inline: |
|
|
|
+ FROM node:22.17.0
|
|
|
+ RUN wget -O /certgen "https://github.com/minio/certgen/releases/download/v1.3.0/certgen-linux-$(dpkg --print-architecture)"
|
|
|
+ RUN chmod +x /certgen
|
|
|
volumes:
|
|
|
- - ./test/acceptance/certs:/certs
|
|
|
+ - minio-certs:/certs
|
|
|
working_dir: /certs
|
|
|
entrypoint: sh
|
|
|
command:
|
|
|
- '-cex'
|
|
|
- |
|
|
|
- if [ ! -f ./certgen ]; then
|
|
|
- wget -O ./certgen "https://github.com/minio/certgen/releases/download/v1.3.0/certgen-linux-$(dpkg --print-architecture)"
|
|
|
- chmod +x ./certgen
|
|
|
- fi
|
|
|
if [ ! -f private.key ] || [ ! -f public.crt ]; then
|
|
|
- ./certgen -host minio
|
|
|
+ /certgen -host minio
|
|
|
fi
|
|
|
|
|
|
minio:
|
|
|
image: minio/minio:RELEASE.2024-10-13T13-34-11Z
|
|
|
command: server /data
|
|
|
volumes:
|
|
|
- - ./test/acceptance/certs:/root/.minio/certs
|
|
|
+ - minio-certs:/root/.minio/certs
|
|
|
environment:
|
|
|
MINIO_ROOT_USER: MINIO_ROOT_USER
|
|
|
MINIO_ROOT_PASSWORD: MINIO_ROOT_PASSWORD
|
|
|
@@ -108,7 +111,7 @@ services:
|
|
|
condition: service_started
|
|
|
image: minio/mc:RELEASE.2024-10-08T09-37-26Z
|
|
|
volumes:
|
|
|
- - ./test/acceptance/certs:/root/.mc/certs/CAs
|
|
|
+ - minio-certs:/root/.mc/certs/CAs
|
|
|
entrypoint: sh
|
|
|
command:
|
|
|
- '-cex'
|