Skip to content

Commit

Permalink
refactor: Improve installation process for session manager plugin in …
Browse files Browse the repository at this point in the history
…Dockerfile (#311)
  • Loading branch information
georgepstaylor authored May 31, 2024
1 parent fa11adc commit a88f273
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions docker/delius-ansible-aws/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,14 @@ LABEL org.opencontainers.image.authors="HMPPS Probation Webops Team (probation-w

RUN apt update && apt install -y curl git bash jq && apt clean

RUN if [[curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" && dpkg -i session-manager-plugin.deb ]];\
then echo "Session manager plugin installed"; else rm -f session-manager-plugin.deb && curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb" && dpkg -i session-manager-plugin.deb; fi
RUN if curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb" && dpkg -i session-manager-plugin.deb; then \
echo "Session manager plugin installed"; \
else \
rm -f session-manager-plugin.deb && \
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb" && \
dpkg -i session-manager-plugin.deb; \
fi


# Pip
COPY requirements.txt requirements.yml ./
Expand Down

0 comments on commit a88f273

Please sign in to comment.