add pipework catalog

This commit is contained in:
Hayahito Kawamitsu 2018-04-06 18:41:09 +09:00
parent de9f12bd39
commit 91b8ba2fae
5 changed files with 67 additions and 0 deletions

View 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.
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).

View File

@ -0,0 +1,19 @@
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.pull_image: always
io.rancher.container.hostname_override: container_name
io.rancher.container.agent.role: environmentAdmin
io.rancher.container.create_agent: 'true'
io.rancher.scheduler.global: 'true'

View File

@ -0,0 +1,11 @@
.catalog:
name: "Pipework"
description: |
"Software-Defined Networking for Linux Containers"
version: v0.1.0
minimum_rancher_version: v1.6.10
maintainer: "Hayahito Kawamitsu <halation3@gmail.com>"
version: '2'
services:
pipework:
start_on_create: true

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

@ -0,0 +1,7 @@
name: Pipework
description: |
Software-Defined Networking for Linux Containers
version: v0.1.0
category: Network
maintainer: community
license: