rancher/rancher-compose

Name: rancher-compose

Owner: Rancher

Description: Docker compose compatible client to deploy to Rancher

Created: 2015-02-18 06:04:31.0

Updated: 2018-05-07 20:50:53.0

Pushed: 2017-10-09 05:51:36.0

Homepage:

Size: 5533

Language: Go

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

Rancher Compose Build Status

Docker compose compatible client that deploys to Rancher.

Binaries

Binaries are available for Linux, OS X, and Windows. Refer to the latest release.

Building

Run make build to create ./bin/rancher-compose

Usage:
e: rancher-compose [OPTIONS] COMMAND [arg...]

er-compose to Rancher

ion: v0.8.4

or:
her Labs, Inc.

ons:
rbose, --debug              
le, -f [--file option --file option]    Specify one or more alternate compose files (default: docker-compose.yml) [$COMPOSE_FILE]
oject-name, -p              Specify an alternate project name (default: directory name)
l                   Specify the Rancher API endpoint URL [$RANCHER_URL]
cess-key                    Specify Rancher API access key [$RANCHER_ACCESS_KEY]
cret-key                    Specify Rancher API secret key [$RANCHER_SECRET_KEY]
ncher-file, -r              Specify an alternate Rancher compose file (default: rancher-compose.yml)
v-file, -e              Specify a file from which to read environment variables
lp, -h                  show help
rsion, -v                   print the version

ands:
te  Create all services but do not start
    Bring all services up
t       Start services
        Get service logs
art Restart services
, down  Stop services
e       Scale services
    Delete services
        Pulls images for services
ade Perform rolling upgrade between services
, h Shows a list of commands or help for one command

Compose compatibility

rancher-compose strives to be completely compatible with Docker Compose. Since rancher-compose is largely focused on running production workloads some behaviors between Docker Compose and Rancher Compose are different.

Deleting Services/Container

rancher-compose will not delete things by default. This means that if you do two up commands in a row, the second up will do nothing. This is because the first up will create everything and leave it running. Even if you do not pass -d to up, rancher-compose will not delete your services. To delete a service you must use rm.

Builds

Docker builds are supported in two ways. First is to set build: to a git or HTTP URL that is compatible with the remote parameter in https://docs.docker.com/reference/api/docker_remote_api_v1.18/#build-image-from-a-dockerfile. The second approach is to set build: to a local directory and the build context will be uploaded to S3 and then built on demand on each node.

For S3 based builds to work you must setup AWS credentials.

Contact

For bugs, questions, comments, corrections, suggestions, etc., open an issue in rancher/rancher with a title starting with [rancher-compose].

Or just click here to create a new issue.

License

Copyright (c) 2014-2015 Rancher Labs, Inc.

Licensed under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.