-
Notifications
You must be signed in to change notification settings - Fork 4k
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
[core] "Full docker build" no longer works #10438
Comments
Makes no sense to check for docker daemon running in the docker build process. With this change this check will only trigger a warning if it fails |
PR fails due to lack of tests but honestly I don't know if that condition applies here |
The CDK build actually uses docker as well (I believe for tests), so you do need to have docker-in-docker for it to work. |
I tried to run the full build and failed
Does not look related to docker, nevertheless I will try to take a look at it in detail when I have some spare time |
Quick update:
I'm not a docker expert but this is the first time that I see this docker-in-docker scheme, in my experience when you need docker inside a container you publish the host machine docker unix socket port with a volume, but this is something that can only be done in execution time, not build. I goggled for this issue and it looks like at least this is not something usual. Anyway, I can continue with this but first I would appreciate a confirmation that docker build is actually broken and I'm not making a big mistake in the docker build process. |
Honestly, I don't think we use At this point our build does require access to Docker. If |
Yeah, I think it makes more sense to use docker only to avoid installing lerna and all the development dependencies but always using the host files (using a volume or whatever is your favourite method). |
From the CONTRIBUTING guide. - License notice was requested by our lawyers - Docker instructions haven't worked in forever: our build uses Docker itself so needs privileged mode, and the `--privileged` flag does not available for `docker build`. Closes #10438.
From the CONTRIBUTING guide. - License notice was requested by our lawyers - Docker instructions haven't worked in forever: our build uses Docker itself so needs privileged mode, and the `--privileged` flag does not available for `docker build`. Closes #10438. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
|
From the CONTRIBUTING guide. - License notice was requested by our lawyers - Docker instructions haven't worked in forever: our build uses Docker itself so needs privileged mode, and the `--privileged` flag does not available for `docker build`. Closes aws#10438. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
From the CONTRIBUTING guide. - License notice was requested by our lawyers - Docker instructions haven't worked in forever: our build uses Docker itself so needs privileged mode, and the `--privileged` flag does not available for `docker build`. Closes aws#10438. ---- *By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
As detailed in Contributing.md, I should be able to initiate a full build of CDK under Docker with
docker build -t aws-cdk .
. This does not work becausescripts/check-prerequisites.sh
attempts to connect to the Docker daemon and run docker ps, which is impossible in a Docker container.I've reproduced this in Docker on Windows and with Podman on Fedora 32.
Reproduction Steps
What did you expect to happen?
CDK gets built.
What actually happened?
You can't connect to the Docker daemon because we're already in a Docker container.
Environment
aws-cli/2.0.25 Python/3.7.7 Windows/10 botocore/2.0.0dev29
Other
I believe this was introduced when the
scripts/check-prerequisites.sh
script was added in #8929 on July 14, 2020. If I blank out this entire script withexit 0
, the build succeeds.This is 🐛 Bug Report
The text was updated successfully, but these errors were encountered: