Add ansible to builder image
This commit is contained in:
parent
8078c354fc
commit
df6cc16f8b
2 changed files with 13 additions and 0 deletions
12
Dockerfile
12
Dockerfile
|
@ -4,6 +4,7 @@ ARG KUBE_RELEASE=v1.30.2
|
||||||
ARG YQ_VERSION=v4.44.2
|
ARG YQ_VERSION=v4.44.2
|
||||||
ARG NODE_VERSION=20.x
|
ARG NODE_VERSION=20.x
|
||||||
ARG PNPM_VERSION=v9.5.0
|
ARG PNPM_VERSION=v9.5.0
|
||||||
|
ARG UBUNTU_CODENAME=jammy
|
||||||
|
|
||||||
RUN set -eux; \
|
RUN set -eux; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
|
@ -11,9 +12,18 @@ RUN set -eux; \
|
||||||
ca-certificates \
|
ca-certificates \
|
||||||
curl \
|
curl \
|
||||||
git \
|
git \
|
||||||
|
gpg \
|
||||||
openssh-client \
|
openssh-client \
|
||||||
; \
|
; \
|
||||||
install -m 0755 -d /etc/apt/keyrings; \
|
install -m 0755 -d /etc/apt/keyrings; \
|
||||||
|
curl -sSL "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" \
|
||||||
|
> /etc/apt/keyrings/ansible.asc \
|
||||||
|
; \
|
||||||
|
echo \
|
||||||
|
"deb [signed-by=/etc/apt/keyrings/ansible.asc] \
|
||||||
|
http://ppa.launchpad.net/ansible/ansible/ubuntu \
|
||||||
|
$UBUNTU_CODENAME main" \
|
||||||
|
> /etc/apt/sources.list.d/ansible.list; \
|
||||||
curl -sSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc; \
|
curl -sSL https://download.docker.com/linux/debian/gpg -o /etc/apt/keyrings/docker.asc; \
|
||||||
chmod a+r /etc/apt/keyrings/docker.asc; \
|
chmod a+r /etc/apt/keyrings/docker.asc; \
|
||||||
echo \
|
echo \
|
||||||
|
@ -23,6 +33,7 @@ RUN set -eux; \
|
||||||
> /etc/apt/sources.list.d/docker.list; \
|
> /etc/apt/sources.list.d/docker.list; \
|
||||||
apt-get update; \
|
apt-get update; \
|
||||||
apt-get install -y --no-install-recommends \
|
apt-get install -y --no-install-recommends \
|
||||||
|
ansible \
|
||||||
docker-ce-cli \
|
docker-ce-cli \
|
||||||
docker-buildx-plugin \
|
docker-buildx-plugin \
|
||||||
docker-compose-plugin \
|
docker-compose-plugin \
|
||||||
|
@ -41,5 +52,6 @@ RUN set -eux; \
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
# References:
|
# References:
|
||||||
|
# - ansible: https://docs.ansible.com/ansible/latest/installation_guide/installation_distros.html#installing-ansible-on-debian
|
||||||
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package
|
# - docker: https://docs.docker.com/engine/install/debian/#install-from-a-package
|
||||||
# - node: https://github.com/nodesource/distributions#installation-instructions-deb
|
# - node: https://github.com/nodesource/distributions#installation-instructions-deb
|
||||||
|
|
|
@ -4,6 +4,7 @@ Common docker image used for running application builds, CI pipelines, and deplo
|
||||||
|
|
||||||
## Tools included
|
## Tools included
|
||||||
|
|
||||||
|
- `ansible` - https://www.ansible.com/
|
||||||
- `docker`
|
- `docker`
|
||||||
- `curl`
|
- `curl`
|
||||||
- `git`
|
- `git`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue