mirror of
https://github.com/mr0xb/dotfiles.git
synced 2026-08-27 19:34:57 -04:00
docker
This commit is contained in:
parent
fcb567094e
commit
50261d8e1c
9 changed files with 241 additions and 0 deletions
19
docker-img/awscli/Dockerfile
Normal file
19
docker-img/awscli/Dockerfile
Normal 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" ]
|
||||
24
docker-img/awscli/install.sh
Normal file
24
docker-img/awscli/install.sh
Normal 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
|
||||
Loading…
Reference in a new issue