Skip to content

MatthewJohn/Portainer-Deployment-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

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 <Name of Stack> --deploy-version <Docker Image> --tag-parameter <Comma-separated yaml traversal>

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'

About

Example deployment script for portainer

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages