Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/matthewjohn/portainer-deployment-example

Example deployment script for portainer
https://github.com/matthewjohn/portainer-deployment-example

deployment docker portainer python

Last synced: 4 days ago
JSON representation

Example deployment script for portainer

Awesome Lists containing this project

README

        

# Example Portainer deployment script

## Install requirements

apt-get update && apt-get install python-yaml python-requests --assume-yes

or...

pip install requests yaml

## Configuration

Fill out credentials.yaml with hostname, username, password and endpoint to be used.

## Running

./deploy.py --stack-name --deploy-version --tag-parameter

NOTE: The last parameter is used to traverse the docker-compose yaml. For example, if your docker-compose contains something like:

services:
web:
image: my-docker-image:latest

then the argument would be: `'services,web,image'`