Aws-codebuild-docker-images: Support privileged build containers

Created on 5 Dec 2019  路  5Comments  路  Source: aws/aws-codebuild-docker-images

It would be a useful enhancement to add a flag to codebuild_build.sh that supports running the build container as --privileged.

CodeBuild-local feature request

Most helpful comment

@subinataws --privileged allows us to access kernel modules inside build containers. I wanted to use local CodeBuild within a Custom CodePipeline Action to run builds that require custom AMIs with custom kernel modules. Unfortunately local CodeBuild does not allow that currently without the --privileged flag passed to build containers.

All 5 comments

@jrowen - how is this helpful? Can you provide more context?

CodeBuild local already have Docker access, without needing a --privileged flag. Trying to understand what use case would a "--privileged" flag on the local version enable.

I found this flag was needed if my build was using something like s3fs-fuse.

Or mounting image blobs - i.e. need for losetup and mknod

@subinataws --privileged allows us to access kernel modules inside build containers. I wanted to use local CodeBuild within a Custom CodePipeline Action to run builds that require custom AMIs with custom kernel modules. Unfortunately local CodeBuild does not allow that currently without the --privileged flag passed to build containers.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

joekiller picture joekiller  路  6Comments

NotErickG picture NotErickG  路  3Comments

rdehnhardt picture rdehnhardt  路  5Comments

nfisher picture nfisher  路  5Comments

rvdwijngaard picture rvdwijngaard  路  6Comments