This commit is contained in:
mr0xb 2026-05-27 11:36:56 -04:00
commit 50261d8e1c
No known key found for this signature in database
9 changed files with 241 additions and 0 deletions

View file

@ -0,0 +1,19 @@
FROM alpine:latest
RUN apk --no-cache add \
ca-certificates \
groff \
less \
python3 \
py3-pip \
&& pip3 install awscli \
&& mkdir -p /root/.aws \
&& { \
echo '[default]'; \
echo 'output = json'; \
echo 'region = us-east-1'; \
echo 'aws_access_key_id = $AMAZON_ACCESS_KEY_ID'; \
echo 'aws_secret_access_key = $AMAZON_SECRET_ACCESS_KEY'; \
} > /root/.aws/config
ENTRYPOINT [ "aws" ]

View file

@ -0,0 +1,24 @@
cat > ../bin/yq <<EOF
yq () {
docker run \\
--rm \\
--net none \\
--pid host \\
--name yq \\
--entrypoint "yq" \\
-i \\
\${DOCKER_REPO_PREFIX}/yq "\$@"
}
jq () {
docker run \\
--rm \\
--net none \\
--pid host \\
--name yq \\
--entrypoint "jq \\
-i \\
\${DOCKER_REPO_PREFIX}/yq "\$@"
}
EOF