Last active
April 6, 2022 02:42
-
-
Save ueno1969/9c9e6adbb54af9b82bac46cf9bae4316 to your computer and use it in GitHub Desktop.
AWS cliとcopilotとセッションマネージャーを入れたDockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
aws-cli: | |
build: | |
dockerfile: "Dockerfile" | |
volumes: | |
- "~/.aws:/root/.aws/" | |
- ".:/project/" | |
environment: | |
- AWS_PROFILE=${AWS_PROFILE} | |
working_dir: /project |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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