エントリーの編集
エントリーの編集は全ユーザーに共通の機能です。
必ずガイドラインを一読の上ご利用ください。
DockerイメージをビルドしてECRにpushするshell script - Qiita
記事へのコメント0件
- 注目コメント
- 新着コメント
このエントリーにコメントしてみましょう。
注目コメント算出アルゴリズムの一部にLINEヤフー株式会社の「建設的コメント順位付けモデルAPI」を使用しています
- バナー広告なし
- ミュート機能あり
- ダークモード搭載
関連記事
DockerイメージをビルドしてECRにpushするshell script - Qiita
#!/bin/sh # Returns boolean indicates whether designated tagged-image exists. # arg1: repository ... #!/bin/sh # Returns boolean indicates whether designated tagged-image exists. # arg1: repository name # arg2: tag name function image_exists() { image=$(docker image ls -a | grep $1 | grep $2) if [ "$image" ]; then return 0; else return 1; fi } # Builds new image. # arg1: tag in the form like ${repository}:${tag} # arg2: Path to Dockerfile function build_image() { docker build -t $1 -f $2 . } # Wo