Use vendored JQ

This commit is contained in:
decentral1se 2021-06-05 08:57:35 +02:00
parent 3a97358f30
commit 9f69532dca
Signed by untrusted user who does not match committer: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 3 additions and 1 deletions

View File

@ -33,6 +33,7 @@ REPOS_TO_SKIP = (
"swarm-cronjob", "swarm-cronjob",
) )
YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq") YQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/yq")
JQ_PATH = Path(f"{HOME_PATH}/.abra/vendor/jq")
log = getLogger(__name__) log = getLogger(__name__)
basicConfig() basicConfig()

View File

@ -16,6 +16,7 @@ from requests import get
from abralib import ( from abralib import (
CLONES_PATH, CLONES_PATH,
JQ_PATH,
REPOS_TO_SKIP, REPOS_TO_SKIP,
YQ_PATH, YQ_PATH,
_run_cmd, _run_cmd,
@ -171,7 +172,7 @@ def get_app_versions(app_path, cached_apps_json):
if image in ("null", "---"): if image in ("null", "---"):
continue continue
images_cmd = f"skopeo inspect docker://{image} | jq '.Digest'" images_cmd = f"skopeo inspect docker://{image} | {JQ_PATH} '.Digest'"
output = _run_cmd(images_cmd, shell=True) output = _run_cmd(images_cmd, shell=True)
service_version_info = { service_version_info = {