diff --git a/infra-templates/pipework/0/README.md b/infra-templates/pipework/0/README.md new file mode 100644 index 0000000..180bff2 --- /dev/null +++ b/infra-templates/pipework/0/README.md @@ -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). \ No newline at end of file diff --git a/infra-templates/pipework/0/docker-compose.yml b/infra-templates/pipework/0/docker-compose.yml new file mode 100644 index 0000000..37557d7 --- /dev/null +++ b/infra-templates/pipework/0/docker-compose.yml @@ -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' \ No newline at end of file diff --git a/infra-templates/pipework/0/rancher-compose.yml b/infra-templates/pipework/0/rancher-compose.yml new file mode 100644 index 0000000..403010a --- /dev/null +++ b/infra-templates/pipework/0/rancher-compose.yml @@ -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 diff --git a/infra-templates/pipework/catalogIcon-pipework.png b/infra-templates/pipework/catalogIcon-pipework.png new file mode 100644 index 0000000..cbd00e3 Binary files /dev/null and b/infra-templates/pipework/catalogIcon-pipework.png differ diff --git a/infra-templates/pipework/config.yml b/infra-templates/pipework/config.yml new file mode 100644 index 0000000..9fe0107 --- /dev/null +++ b/infra-templates/pipework/config.yml @@ -0,0 +1,6 @@ +name: Pipework +description: | + Software-Defined Networking for Linux Containers +version: v0.1.0 +category: Network +license: