Merge pull request #765 from mittz/add-pipework-catalog
add pipework catalog
This commit is contained in:
commit
c75c9f90d4
30
infra-templates/pipework/0/README.md
Normal file
30
infra-templates/pipework/0/README.md
Normal file
@ -0,0 +1,30 @@
|
|||||||
|
# Pipework
|
||||||
|
|
||||||
|
*Software-Defined Networking for Linux Containers*
|
||||||
|
|
||||||
|
## Description
|
||||||
|
|
||||||
|
* GitHub: [jpetazzo/pipework](https://github.com/jpetazzo/pipework)
|
||||||
|
* Docker Hub: [dreamcat4/pipework](https://hub.docker.com/r/dreamcat4/pipework/)
|
||||||
|
|
||||||
|
By this catalog, to configure more flexible container network is available.
|
||||||
|
A good example of this, there is multiple container networks.
|
||||||
|
|
||||||
|
## Deployment
|
||||||
|
|
||||||
|
1. Select the template from the catalog.
|
||||||
|
2. Click `Launch`.
|
||||||
|
|
||||||
|
## Usage
|
||||||
|
|
||||||
|
To deploy a container having two NICs as an example, deploy it by the following steps.
|
||||||
|
|
||||||
|
1. Create *Stack*.
|
||||||
|
* Already created *Stack* is available.
|
||||||
|
2. Create *Service*.
|
||||||
|
* Already created *Service* is available.
|
||||||
|
3. Set *Environment*.
|
||||||
|
* pipework_cmd_0: eth0 -i eth0 @CONTAINER_NAME@ 192.168.1.101/24 02:42:c0:a8:01:65@100
|
||||||
|
* pipework_cmd_1: eth1 -i eth0 @CONTAINER_NAME@ 192.168.2.101/24 02:42:c0:a8:02:65@200
|
||||||
|
|
||||||
|
You can see the more details from [dreamcat4/pipework](https://github.com/dreamcat4/docker-images/tree/master/pipework).
|
18
infra-templates/pipework/0/docker-compose.yml
Normal file
18
infra-templates/pipework/0/docker-compose.yml
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
version: '2'
|
||||||
|
services:
|
||||||
|
pipework:
|
||||||
|
privileged: true
|
||||||
|
image: dreamcat4/pipework:1.1.6
|
||||||
|
stdin_open: true
|
||||||
|
network_mode: host
|
||||||
|
volumes:
|
||||||
|
- /var/run/docker.sock:/docker.sock
|
||||||
|
tty: true
|
||||||
|
pid: host
|
||||||
|
environment:
|
||||||
|
run_mode: batch,daemon
|
||||||
|
labels:
|
||||||
|
io.rancher.container.hostname_override: container_name
|
||||||
|
io.rancher.container.agent.role: environmentAdmin
|
||||||
|
io.rancher.container.create_agent: 'true'
|
||||||
|
io.rancher.scheduler.global: 'true'
|
10
infra-templates/pipework/0/rancher-compose.yml
Normal file
10
infra-templates/pipework/0/rancher-compose.yml
Normal file
@ -0,0 +1,10 @@
|
|||||||
|
version: '2'
|
||||||
|
catalog:
|
||||||
|
name: "Pipework"
|
||||||
|
description: |
|
||||||
|
"Software-Defined Networking for Linux Containers"
|
||||||
|
version: v0.1.0
|
||||||
|
minimum_rancher_version: v1.6.10
|
||||||
|
services:
|
||||||
|
pipework:
|
||||||
|
start_on_create: true
|
BIN
infra-templates/pipework/catalogIcon-pipework.png
Normal file
BIN
infra-templates/pipework/catalogIcon-pipework.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 26 KiB |
6
infra-templates/pipework/config.yml
Normal file
6
infra-templates/pipework/config.yml
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
name: Pipework
|
||||||
|
description: |
|
||||||
|
Software-Defined Networking for Linux Containers
|
||||||
|
version: v0.1.0
|
||||||
|
category: Network
|
||||||
|
license:
|
Loading…
x
Reference in New Issue
Block a user