Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 730 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 730 Bytes

Bash scripts to interact with Portainer

... 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