Compare commits

...
3 Commits
Author SHA1 Message Date
ewandor c8e7674256 Updating documentation 2023-09-21 17:09:05 +02:00
ewandor dda3414428 Adding a configuration for portainer data path 2023-09-21 17:08:45 +02:00
ewandor 1b3f577486 Adding a requirements file 2023-09-21 17:07:37 +02:00
4 changed files with 14 additions and 2 deletions
+10
View File
@@ -0,0 +1,10 @@
# Portainer Updater
Calls portainer's API and updates the images of all currently active stacks
## Usage
Update configuration file with your portainer access token and the path of portainer compose directory
You can then simply execute:
python main.py
+2 -1
View File
@@ -1 +1,2 @@
access_token = 'ptr_2Wx6aA26hEEcsPbi2iVyRcuDt6/9tjHlkg+7z9btkjw=' access_token = 'example_access_token'
portainer_compose_dir = '/absolute/path/to/portainer-data/compose'
+1 -1
View File
@@ -5,7 +5,7 @@ import requests
import config import config
DOCKER_COMPOSE_PATH = '/srv/docker/portainer/portainer-data/compose/{}/docker-compose.yml' DOCKER_COMPOSE_PATH = config.portainer_compose_dir + '/{}/docker-compose.yml'
CURRENT_DIR = os.path.dirname(__file__) CURRENT_DIR = os.path.dirname(__file__)
BASH_COMPANION_SCRIPT = CURRENT_DIR + '/docker_updater.sh' BASH_COMPANION_SCRIPT = CURRENT_DIR + '/docker_updater.sh'
+1
View File
@@ -0,0 +1 @@
requests