Created
December 19, 2018 17:21
-
-
Save FroggyFlox/a0ac18c82cb1e8926fe3c4e8825e034d to your computer and use it in GitHub Desktop.
Rock-on definition for testing container_links and docker networks. This Rock-on runs 4 copies of the official alpine image.
These 4 containers are connected as follows:
- A sees B
- C sees D
- A sees C
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Alpine_link_test_ABCD_2nets": { | |
"container_links": { | |
"alpineA": [ | |
{ | |
"name": "alpineA-B", | |
"source_container": "alpineB" | |
}, | |
{ | |
"name": "alpineA-C", | |
"source_container": "alpineC" | |
} | |
], | |
"alpineC": [ | |
{ | |
"name": "alpineC-D", | |
"source_container": "alpineD" | |
} | |
] | |
}, | |
"containers": { | |
"alpineA": { | |
"image": "alpine", | |
"launch_order": 1, | |
"ports": {}, | |
"volumes": {}, | |
"environment": {}, | |
"cmd_arguments": [ | |
["ash",""] | |
], | |
"opts": [ | |
["-it", ""] | |
] | |
}, | |
"alpineB": { | |
"image": "alpine", | |
"launch_order": 2, | |
"ports": {}, | |
"volumes": {}, | |
"environment": {}, | |
"cmd_arguments": [ | |
["ash",""] | |
], | |
"opts": [ | |
["-it", ""] | |
] | |
}, | |
"alpineC": { | |
"image": "alpine", | |
"launch_order": 3, | |
"ports": {}, | |
"volumes": {}, | |
"environment": {}, | |
"cmd_arguments": [ | |
["ash",""] | |
], | |
"opts": [ | |
["-it", ""] | |
] | |
}, | |
"alpineD": { | |
"image": "alpine", | |
"launch_order": 4, | |
"ports": {}, | |
"volumes": {}, | |
"environment": {}, | |
"cmd_arguments": [ | |
["ash",""] | |
], | |
"opts": [ | |
["-it", ""] | |
] | |
} | |
}, | |
"description": "Test Rock-on for container_links A_B, C_D, and A_C.", | |
"website": "", | |
"version": "1.0" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment