mirror of
https://gitlab.sectorq.eu/jaydee/portainer.git
synced 2026-01-29 12:59:44 +01:00
Compare commits
7 Commits
0c4a91d7ae
...
807437c47e
| Author | SHA1 | Date | |
|---|---|---|---|
| 807437c47e | |||
| 08a15f3bb9 | |||
| 1f4319f4dd | |||
| 9800b01ea2 | |||
| 4cd9cfce20 | |||
| 12a095e169 | |||
| 162c270c02 |
@@ -30,7 +30,7 @@ build-job: # This job runs in the build stage, which runs first.
|
|||||||
- pip install uuid
|
- pip install uuid
|
||||||
#- pyinstaller --onefile --add-data "port.py:." portainer.py
|
#- pyinstaller --onefile --add-data "port.py:." portainer.py
|
||||||
- rm -rf build dist *.spec
|
- rm -rf build dist *.spec
|
||||||
- pyinstaller --onefile --clean portainer.py
|
- pyinstaller --onefile --clean -n portainer main.py
|
||||||
#- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true
|
#- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.80.222:/myapps/bin/ || true
|
||||||
- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.12:/myapps/bin/ || true
|
- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.12:/myapps/bin/ || true
|
||||||
- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true
|
- scp -o ConnectTimeout=5 -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null dist/portainer jd@192.168.77.101:/myapps/bin/ || true
|
||||||
|
|||||||
@@ -12,13 +12,20 @@ import sys
|
|||||||
import json
|
import json
|
||||||
import argparse
|
import argparse
|
||||||
import hvac
|
import hvac
|
||||||
|
import time
|
||||||
|
import base64
|
||||||
|
import shutil
|
||||||
|
import requests
|
||||||
|
from portainer.api import PortainerApi
|
||||||
|
from git import Repo
|
||||||
|
from concurrent.futures import ThreadPoolExecutor
|
||||||
from tabulate import tabulate
|
from tabulate import tabulate
|
||||||
import port
|
|
||||||
from prompt_toolkit import prompt
|
from prompt_toolkit import prompt
|
||||||
from prompt_toolkit.completion import WordCompleter
|
from prompt_toolkit.completion import WordCompleter
|
||||||
from prompt_toolkit.shortcuts import checkboxlist_dialog
|
from prompt_toolkit.shortcuts import checkboxlist_dialog
|
||||||
from prompt_toolkit.shortcuts import radiolist_dialog
|
from prompt_toolkit.shortcuts import radiolist_dialog
|
||||||
|
|
||||||
|
|
||||||
VAULT_ADDR = os.environ.get("VAULT_ADDR", "http://192.168.77.101:8200")
|
VAULT_ADDR = os.environ.get("VAULT_ADDR", "http://192.168.77.101:8200")
|
||||||
try:
|
try:
|
||||||
VAULT_TOKEN = os.environ.get("VAULT_TOKEN")
|
VAULT_TOKEN = os.environ.get("VAULT_TOKEN")
|
||||||
@@ -36,7 +43,7 @@ else:
|
|||||||
raise Exception("Failed to authenticate with Vault")
|
raise Exception("Failed to authenticate with Vault")
|
||||||
# Specify the mount point of your KV engine
|
# Specify the mount point of your KV engine
|
||||||
|
|
||||||
VERSION = "0.1.50"
|
VERSION = "0.1.53"
|
||||||
|
|
||||||
defaults = {
|
defaults = {
|
||||||
"endpoint_id": "vm01",
|
"endpoint_id": "vm01",
|
||||||
@@ -425,7 +432,7 @@ if __name__ == "__main__":
|
|||||||
|
|
||||||
os.system("cls" if os.name == "nt" else "clear")
|
os.system("cls" if os.name == "nt" else "clear")
|
||||||
# Example: list endpoints
|
# Example: list endpoints
|
||||||
por = port.PortainerApi(cur_config["PORTAINER_SITE"], args)
|
por = PortainerApi(cur_config["PORTAINER_SITE"], args)
|
||||||
por.set_defaults(cur_config)
|
por.set_defaults(cur_config)
|
||||||
if args.debug:
|
if args.debug:
|
||||||
por._debug = True
|
por._debug = True
|
||||||
Reference in New Issue
Block a user