New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
AWS Codebuild does not seem to not honor ENTRYPOINT command #157
Comments
I was able to get past this by assuming a role in a different account in the buildspec. I could not do it in the Docker Image itself to boot with different |
Hi @vibhuyadav , AWS CodeBuild does not honor |
So aws images themselves seem to use entrypoint scripts, but without declaring it in the dockerfile, I wonder if aws owned images are being treated differently? https://github.com/aws/aws-codebuild-docker-images/tree/master/ubuntu/docker/18.09.0 Otherwise using the otb aws docker image in codebuild would never start dockerd.. |
@awszhen I realize this is a pretty old issue, but the open issue for allowing a custom entrypoint (#254) is locked to collaborators only. Is there any update to this functionality at all? I built a docker image to use with codebuild that runs docker in docker. I know I can start docker in each individual codebuild file using the nohup command documented in the AWS Docker in custom image sample for Codebuild documentation, but since this image is going to be used by multiple teams across dozens of codebuilds, it would be nice if I could get docker to start automatically as it does using the default aws codebuild images. |
Description
I added an ENTRYPOINT to a custom Docker Image I built. Once the image is finished building, I upload it to the ECR and then use it in one of my AWS Codebuild projects. It seems that whatever is inside the ENTRYPOINT script does not run for some reason. I am trying to configure AWS cli to assume a role in a separate account to perform a deployment.
Files
Dockerfile
aws-configure-entrypoint.sh
When I spin up a container off the Image I built locally, it works fine given I put correct role and env values in the entrypoint script. But it does not work when using with Codebuild.
I am also using a Codebuild project to build these images if anyone's interested -
The text was updated successfully, but these errors were encountered: