-
Notifications
You must be signed in to change notification settings - Fork 8
/
test.sh
executable file
·51 lines (43 loc) · 1.1 KB
/
test.sh
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/sh
set -e
echo "JSON:"
docker run --rm \
-v "$(pwd)/test/mix/:/home/node/" \
boxboat/config-merge \
-f json "*"
echo ""
echo "TOML:"
docker run --rm \
-v "$(pwd)/test/mix/:/home/node/" \
boxboat/config-merge \
-f toml "*"
echo ""
echo "YAML array merge:"
docker run --rm \
-v "$(pwd)/test/mix/:/home/node/" \
boxboat/config-merge \
"*"
echo ""
echo "YAML array overwrite:"
docker run --rm \
-v "$(pwd)/test/mix/:/home/node/" \
boxboat/config-merge \
-a overwrite "*"
echo ""
echo "YAML array concat:"
docker run --rm \
-v "$(pwd)/test/mix/:/home/node/" \
boxboat/config-merge \
-a concat "*"
echo ""
echo "Docker Compose"
docker run --rm \
-v "$(pwd)/test/docker-compose/:/home/node/" \
boxboat/config-merge \
local.env docker-compose.yml docker-compose-local.patch.yml docker-compose-local.yml
echo ""
echo "Docker Compose no envsubst"
docker run --rm \
-v "$(pwd)/test/docker-compose/:/home/node/" \
boxboat/config-merge \
--no-envsubst local.env docker-compose.yml docker-compose-local.patch.yml docker-compose-local.yml