Skip to content

Instantly share code, notes, and snippets.

@ueno1969
Last active April 6, 2022 02:42
Show Gist options
  • Save ueno1969/9c9e6adbb54af9b82bac46cf9bae4316 to your computer and use it in GitHub Desktop.
Save ueno1969/9c9e6adbb54af9b82bac46cf9bae4316 to your computer and use it in GitHub Desktop.
AWS cliとcopilotとセッションマネージャーを入れたDockerfile
version: '2'
services:
aws-cli:
build:
dockerfile: "Dockerfile"
volumes:
- "~/.aws:/root/.aws/"
- ".:/project/"
environment:
- AWS_PROFILE=${AWS_PROFILE}
working_dir: /project
FROM amazon/aws-cli
RUN curl -Lo copilot https://github.com/aws/copilot-cli/releases/latest/download/copilot-linux && \
chmod +x copilot &&\
mv copilot /usr/local/bin/copilot
RUN curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/linux_64bit/session-manager-plugin.rpm" -o "session-manager-plugin.rpm" && \
yum install -y ./session-manager-plugin.rpm && \
rm ./session-manager-plugin.rpm
WORKDIR /project
ENTRYPOINT [ "/bin/bash" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment