Skip to content

hijak/portainer-bash-scripts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bash scripts to interact with Portainer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 84.2%
  • Dockerfile 15.8%