File tree Expand file tree Collapse file tree 1 file changed +29
-0
lines changed
Expand file tree Collapse file tree 1 file changed +29
-0
lines changed Original file line number Diff line number Diff line change @@ -65,6 +65,35 @@ alias ll='ls -lhtr --color=auto'
6565 -d "{}"
6666 }' > ~ /.bashrc.d/rp-recovery-etcd
6767 ```
68+ * run ` yq` as a container
69+ ` ` ` sh
70+ echo ' yq() {
71+ # log_level="${PODMAN_LOG_LEVEL:-warn}"
72+ #
73+ # Useful for debugging podman runtime errors
74+ log_level="${PODMAN_LOG_LEVEL:-warn}"
75+
76+ image="quay.io/konflux-ci/yq:latest"
77+
78+ # YQ_* environment variables are useful for passing variables to be parsed by yq
79+ podman run \
80+ --userns=keep-id \
81+ --env ' \' ' YQ_*' \' ' \
82+ --log-level="$log_level" \
83+ --security-opt label=disable \
84+ -i \
85+ --rm \
86+ -v=${PWD}:/workdir:rw,rshared \
87+ --workdir /workdir \
88+ "$image" \
89+ --exit-status=1 \
90+ "$@"
91+ }
92+
93+ # yq must be exported for scripts (or any subshell) to access it
94+ export -f yq
95+ ' > ~ /.bashrc.d/yq
96+ ` ` `
6897
6998# # Bash rc config Drop-Ins
7099
You can’t perform that action at this time.
0 commit comments