mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 12:59:44 +01:00
Compare commits
2 Commits
3152014ca3
...
4bbe283211
| Author | SHA1 | Date | |
|---|---|---|---|
| 4bbe283211 | |||
| fc3fe7b837 |
2
main.py
2
main.py
@@ -248,7 +248,7 @@ def prompt_missing_args(args_in, defaults_in, fields, action=None,stacks=None):
|
|||||||
if args.action == "create_stack":
|
if args.action == "create_stack":
|
||||||
# input(json.dumps(stacks, indent=2))
|
# input(json.dumps(stacks, indent=2))
|
||||||
commands = [
|
commands = [
|
||||||
'authentik', 'bitwarden', 'bookstack', 'dockermon', 'fail2ban', 'gitea', 'gitlab', 'grafana', 'grocy',
|
'authentik', 'bitwarden', 'bookstack', 'dockermon', 'duplicati', 'fail2ban', 'gitea', 'gitlab', 'grafana', 'grocy',
|
||||||
'hashicorp', 'home-assistant', 'homebox','homepage', 'immich', 'influxdb', 'jupyter', 'kestra', 'mailu3',
|
'hashicorp', 'home-assistant', 'homebox','homepage', 'immich', 'influxdb', 'jupyter', 'kestra', 'mailu3',
|
||||||
'mealie', 'mediacenter', 'mosquitto', 'motioneye', 'n8n', 'nebula', 'nextcloud', 'nginx',
|
'mealie', 'mediacenter', 'mosquitto', 'motioneye', 'n8n', 'nebula', 'nextcloud', 'nginx',
|
||||||
'node-red', 'octoprint', 'ollama', 'onlyoffice', 'paperless-ngx', 'pihole', 'portainer-ce', 'rancher', 'registry',
|
'node-red', 'octoprint', 'ollama', 'onlyoffice', 'paperless-ngx', 'pihole', 'portainer-ce', 'rancher', 'registry',
|
||||||
|
|||||||
@@ -365,8 +365,11 @@ class PortainerApi:
|
|||||||
try:
|
try:
|
||||||
for c in containers:
|
for c in containers:
|
||||||
print(c)
|
print(c)
|
||||||
|
try:
|
||||||
cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']])
|
cont.append([c["Names"][0].replace("/", ""),c["Id"], c['Image']])
|
||||||
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']])
|
contr.append([c["Names"][0].replace("/", ""), c["Id"], c['Image']])
|
||||||
|
except:
|
||||||
|
print("Unable to parse container info")
|
||||||
if self.all_data["endpoints"]["by_id"][endpoint] in data:
|
if self.all_data["endpoints"]["by_id"][endpoint] in data:
|
||||||
data[self.all_data["endpoints"]["by_id"][endpoint]] = contr
|
data[self.all_data["endpoints"]["by_id"][endpoint]] = contr
|
||||||
data[endpoint] = contr
|
data[endpoint] = contr
|
||||||
|
|||||||
Reference in New Issue
Block a user