Skip to content

Commit

Permalink
fix ansible install
Browse files Browse the repository at this point in the history
  • Loading branch information
marksie1988 committed Oct 16, 2023
1 parent b8ede19 commit f2754d6
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions devops/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,26 @@ FROM totaldebug/debugbox:base
ARG TARGETARCH

# Terraform
USER root

RUN wget -O- https://apt.releases.hashicorp.com/gpg | \
gpg --dearmor | \
tee /usr/share/keyrings/hashicorp-archive-keyring.gpg
sudo tee /usr/share/keyrings/hashicorp-archive-keyring.gpg

RUN gpg --no-default-keyring \
--keyring /usr/share/keyrings/hashicorp-archive-keyring.gpg \
--fingerprint

USER root
RUN echo "deb [signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] \
https://apt.releases.hashicorp.com $(lsb_release -cs) main" | \
https://apt.releases.hashicorp.com $(cat /etc/os-release | grep VERSION_CODENAME | cut -d'=' -f2) main" | \
sudo tee /etc/apt/sources.list.d/hashicorp.list


RUN apt update

RUN apt install -y terraform

# Ansible
RUN pipx install --include-deps ansible
RUN sudo apt install -y ansible

USER debug

0 comments on commit f2754d6

Please sign in to comment.