Debug CodeBuild with custom image

AWS CodeBuild is managed service for helping continuous integration and deployment. In CodeBuild, we normally use managed container image provided Amazon, it contains almost runtimes like android, dotnet, golang and more. We’re usually satisfied the managed image, but sometimes need to use custom image you build, CodeBuild can run on it. When debugging in CodeBuild, we can log in the container running by codebuild, it’s very convenience. To use the function, we set codebuild-breakpoint in buildspec file....

June 4, 2021 · 1 min · waneal

Configure base image by argument

It is rare case, but sometimes I have to configure base image by command argument while executing docker build. For example, there are two AWS account, and I use base image contained in each ECR (Elastic Container Registry) for each account. Even I have two base image, but I should use only one Dockerfile. In this case, this solution help me. Dockerfile ARG BASE_IMAGEFROM${BASE_IMAGE}:latestRUN hogehoge Command $ docker build --build-arg BASE_IMAGE=XXXXXXXX....

May 27, 2021 · 1 min · waneal