LoginSignup
0
0

More than 3 years have passed since last update.

aws-shell を dockerでクリーンに動かす

Posted at

TL;DR

詳細

aws-shell の調子が良くないので、dockerでクリーンに実行します。

aliasでdockerを動かし、かつ ~/.aws をボリュームとしてマウントする、という構成です。

# alias aws-shell='docker run --rm -it -v "$HOME/.aws:/root/.aws" hiroga/aws-shell:latest'
FROM python:3.7.7-alpine3.11

RUN pip install --upgrade pip;\
    pip install --upgrade aws-shell
ENTRYPOINT [ "aws-shell" ]

今後の改善点

  • できれば毎度イメージを作るのを避けたいので start を利用したいのだが、 startにprofileオプションを渡す方法が思いつかないです...
  • Creating doc index が毎回走るのもなんとかしたい。コンテナビルド時にindexを作るという手もあるが...うーん。
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0