-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (16 loc) · 1.12 KB
/
Dockerfile
File metadata and controls
24 lines (16 loc) · 1.12 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM ubuntu:latest
# install
RUN apt update && \
apt upgrade -y && \
apt install -y curl gpg sudo systemd unzip groff mandoc less jq
RUN if dpkg --print-architecture | grep arm64 ; then curl "https://awscli.amazonaws.com/awscli-exe-linux-aarch64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/install; fi
RUN if dpkg --print-architecture | grep amd64 ; then curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip && sudo ./aws/install; fi
RUN aws --version
RUN if dpkg --print-architecture | grep arm64 ; then curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_arm64/session-manager-plugin.deb" -o "session-manager-plugin.deb"; sudo dpkg -i session-manager-plugin.deb; fi
RUN if dpkg --print-architecture | grep amd64 ; then curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"; sudo dpkg -i session-manager-plugin.deb; fi
RUN session-manager-plugin
COPY entry.sh /entry.sh
# config
# ~/.aws/config
VOLUME /root/.aws/
ENTRYPOINT ["/bin/bash", "/entry.sh"]