Sign inSign up

greenled/portainer-bash-scripts

By greenled

•Updated almost 8 years ago

Portainer bash scripts

Image
0

349

greenled/portainer-bash-scripts repository overview

⁠Bash scripts to interact with Portainer

⁠Stack Update {stack-name} {composer-file.yml}⁠

... will update a running stack with the name given as first parameter with the yml content from the file given as the second parameter

Requires:

  • bash (or sh)
  • jq
  • curl

Usage:

  • Set the following environmental variables or edit file and set the authentication details
P_USER="root" 
P_PASS="password" 
P_URL="http://example.com:9000" 
P_PRUNE="false"
  • run with
export P_USER="root" 
export P_PASS="password" 
export P_URL="http://example.com:9000" 
export P_PRUNE="false"
./stack-update.sh mqtt mqtt/docker-compose.yml

Tag summary

Content type

Image

Digest

Size

12.4 MB

Last updated

almost 8 years ago

docker pull greenled/portainer-bash-scripts