Merge pull request #765 from mittz/add-pipework-catalog

add pipework catalog
This commit is contained in:
Raúl Sánchez 2018-04-10 19:14:17 +02:00 committed by GitHub
commit c75c9f90d4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 64 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.
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).

View 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'

View 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

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

View File

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