-
-
Notifications
You must be signed in to change notification settings - Fork 43
Expand file tree
/
Copy pathdocker-compose.secret-test.yml
More file actions
32 lines (28 loc) · 903 Bytes
/
docker-compose.secret-test.yml
File metadata and controls
32 lines (28 loc) · 903 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
version: '3.1'
# This tests the CommandBox Docker Secrets implementation
# To test:
# BUILD_IMAGE_DOCKERFILE=Dockerfile BUILD_IMAGE_TAG=ortussolutions/commandbox docker compose -f docker-compose.secret-test.yml up --build
services:
sut:
build:
context: .
dockerfile: "./${BUILD_IMAGE_DOCKERFILE}"
args :
- COMMANDBOX_VERSION
- BASE_IMAGE_ARG
container_name: secret-test
environment:
- SOME_VAR=foo
- TEST_DOCKER_SECRET=<<SECRET:test_docker_secret>>
- BOX_SERVER_CFCONFIGFILE=myConfigs.json
- IMAGE_TESTING_IN_PROGRESS=true
volumes:
- ./test:/app
- ./build/tests/myConfigs.json:/app/myConfigs.json
- ./build:/usr/local/lib/build
secrets:
- test_docker_secret
command: /usr/local/lib/build/tests/test.secrets.sh
secrets:
test_docker_secret:
file: ./build/tests/secrets/test_docker_secret