Compare commits

..

3 Commits

Author SHA1 Message Date
c8e7674256 Updating documentation 2023-09-21 17:09:05 +02:00
dda3414428 Adding a configuration for portainer data path 2023-09-21 17:08:45 +02:00
1b3f577486 Adding a requirements file 2023-09-21 17:07:37 +02:00
4 changed files with 14 additions and 2 deletions

10
README.md Normal file
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

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'

View File

@@ -5,7 +5,7 @@ import requests
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__)
BASH_COMPANION_SCRIPT = CURRENT_DIR + '/docker_updater.sh'

1
requirements.txt Normal file
View File

@@ -0,0 +1 @@
requests