Use vendored JQ
This commit is contained in:
parent
3a97358f30
commit
9f69532dca
@ -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()
|
||||||
|
@ -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 = {
|
||||||
|
Reference in New Issue
Block a user