forked from lavie/runlike
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfixtures.sh
executable file
·65 lines (59 loc) · 1.75 KB
/
fixtures.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#!/bin/bash
docker build -t runlike_fixture dockerfiles/
docker network rm runlike_fixture_bridge
docker network create runlike_fixture_bridge
docker rm -f runlike_fixture1
docker run -d --name runlike_fixture1 \
--hostname Essos \
--expose 1000 \
--privileged \
--cap-add=CHOWN \
-p 400:400 \
-p 300 \
-p 301/udp \
-p 503:502/udp \
-p 127.0.0.1:601:600/udp \
-t \
--dns=8.8.8.8 --dns=8.8.4.4 \
--user daemon \
--device=/dev/null:/dev/null:r \
--label com.example.group="one" \
--label com.example.environment="test" \
--add-host hostname2:127.0.0.2 \
--add-host hostname3:127.0.0.3 \
--log-driver=fluentd \
--log-opt fluentd-async-connect=true \
--log-opt tag=docker.runlike \
--restart=always \
--env "FOO=thing=\"quoted value with 'spaces' and 'single quotes'\"" \
--env SET_WITHOUT_VALUE \
-v $(pwd):/workdir \
-v /random_volume \
runlike_fixture
docker rm -f runlike_fixture2
docker run -d --name runlike_fixture2 \
--restart=on-failure \
--net host \
--device=/dev/null:/dev/null \
--label com.example.version="1" \
runlike_fixture \
/bin/bash sleep.sh
docker rm -f runlike_fixture3
docker run -d --name runlike_fixture3 \
--restart=on-failure:3 \
--network runlike_fixture_bridge \
--log-opt mode=non-blocking \
--log-opt max-buffer-size=4m \
runlike_fixture \
bash -c 'bash sleep.sh'
docker rm -f runlike_fixture4
docker run -d --name runlike_fixture4 \
--restart= \
--mac-address=6a:00:01:ad:d9:e0 \
runlike_fixture \
bash -c "bash 'sleep.sh'"
docker rm -f runlike_fixture5
docker run -d --name runlike_fixture5 \
--link runlike_fixture4:alias_of4 \
--link runlike_fixture1 \
runlike_fixture