Skip to content

Commit aa6fdb0

Browse files
committed
Ansitest: install docker before ansible
1 parent f9b2455 commit aa6fdb0

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

ansitest/Dockerfile

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,12 @@ RUN apt update && \
1919
software-properties-common \
2020
vagrant \
2121
wget && \
22+
# DOCKER ###################################################################
23+
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
24+
add-apt-repository "deb [arch=${TARGETARCH}] https://download.docker.com/linux/debian bullseye stable" && \
25+
apt update && \
26+
apt install --no-install-recommends -y docker-ce docker-ce-cli containerd.io && \
27+
# ANSIBLE ##################################################################
2228
echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list.d/ansible.list && \
2329
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367 && \
2430
apt update && \
@@ -29,11 +35,6 @@ RUN apt update && \
2935
ansible.posix \
3036
community.general \
3137
community.docker && \
32-
# DOCKER ###################################################################
33-
curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add - && \
34-
add-apt-repository "deb [arch=${TARGETARCH}] https://download.docker.com/linux/debian bullseye stable" && \
35-
apt update && \
36-
apt install --no-install-recommends -y docker-ce docker-ce-cli containerd.io && \
3738
# CLEAN UP #################################################################
3839
apt-get clean -y && \
3940
apt-get autoclean -y && \

0 commit comments

Comments
 (0)