ksaitoの日記

日々試したことの覚え書き

CodeBuildのローカル実行

移転しました。

自動的にリダイレクトします。

CodeBuildのローカル実行がうまく動きませんでした。

AWS CodeBuild がローカルのテストとデバッグをサポート

手順に従ってビルドコンテナをビルドして、ヘルパーシェルをダウンロードして、実行してみると下記のエラーがでます。

$ ./codebuild_build.sh -i aws/codebuild/ruby:2.5.1 -a tmp
Build Command:

docker run -it -v /var/run/docker.sock:/var/run/docker.sock -e "IMAGE_NAME=aws/codebuild/ruby:2.5.1" -e "ARTIFACTS=/home/user/aws/aws-codebuild-docker-images/ubuntu/docker/17.09.0/tmp" -e "SOURCE=/home/user/aws/aws-codebuild-docker-images/ubuntu/docker/17.09.0" amazon/aws-codebuild-local:latest

Removing agentresources_build_1 ... done
Removing agentresources_agent_1 ... done
Removing network agentresources_default
Removing volume agentresources_user_volume
Removing volume agentresources_source_volume
Creating network "agentresources_default" with the default driver
Creating volume "agentresources_user_volume" with local driver
Creating volume "agentresources_source_volume" with local driver
Creating agentresources_agent_1 ... 
Creating agentresources_agent_1 ... done
Creating agentresources_build_1 ... 
Creating agentresources_build_1 ... done
Attaching to agentresources_agent_1, agentresources_build_1
agentresources_agent_1 exited with code 0
Stopping agentresources_build_1 ... done
Aborting on container exit...
$