6
arwineap/rancher-compose-resource docker image 镜像
source link: https://hub.docker.com/r/arwineap/rancher-compose-resource
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
docker pull arwineap/rancher-compose-resource
# rancher-compose resource
This is a rancher-compose resource which teaches concourse how to trigger deployments in rancher.
resource configuration
resource_types:
- name: rancher-compose
type: docker-image
source:
repository: arwineap/rancher-compose-resource
Source configuration
url
: Required. The URL of the rancher endpointaccess_key
: Required. A Rancher access_key for the project's environmentsecret_key
: Required. A Rancher secret_key for the project's environment
Example
resources:
- name: rancher
type: rancher-compose
source:
url: http://rancher.foo.com
access_key: ((rancher_access_key))
secret_key: ((rancher_secret_key))
Behavior
check
noop
in
noop
out
Deploys a rancher project.
parameters
path
Required. path to docker-compose and rancher-compose filesproject
Required. The name of the rancher-compose projectservice
Optional. Name of the service to affect. If not specified all services are affected.pull
Optional. If set, the project image is always pulled before a deploymentupgrade
Optional. One of (true|false|confirm|rollback). Starts, forces, confirms, or rolls back an upgrade
Example
jobs:
- name: blog
plan:
- get: blogRepo
trigger: true
- put: blogImage
params:
build: blogRepo
- put: compose
params:
path: blogRepo
project: app
service: blog
pull: true
upgrade: force
- put: compose
params:
path: blogRepo
service: blog
upgrade: confirm
credits
This was heavily based on the nodejs version of this here: https://github.com/ndarilek/concourse-rancher-compose-resource
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK