Skip to content
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

Can't build 6.0 image on M1 Mac #553

Closed
dvwright opened this issue Aug 17, 2022 · 1 comment
Closed

Can't build 6.0 image on M1 Mac #553

dvwright opened this issue Aug 17, 2022 · 1 comment

Comments

@dvwright
Copy link

dvwright commented Aug 17, 2022

Describe the bug

Build takes over 5 hours/never completed...

step: runtimes_n_corretto Downloading gradle-7.4.2 never completed, I killed the process after 5 hours.

To Reproduce

Steps to reproduce the behavior:
Following steps: https://aws.amazon.com/blogs/devops/announcing-local-build-support-for-aws-codebuild/

  1. git clone https://github.com/aws/aws-codebuild-docker-images.git
  2. cd aws-codebuild-docker-images/ubuntu/standard/6.0 && docker build --platform=linux/amd64 -t aws/codebuild/standard:6.0 .

Expected behavior
A locally working docker container to test/debug AWS CodeBuild

Logs

$ docker build --platform=linux/amd64  -t aws/codebuild/standard:6.0 .
[+] Building 4340.5s (27/47)
[+] Building 8552.3s (33/47)
[+] Building 8554.0s (33/47)
[+] Building 9514.8s (33/47)
[+] Building 10599.0s (33/47)
[+] Building 13878.4s (33/47)
[+] Building 18182.2s (33/47)
[+] Building 19634.1s (33/47)
[+] Building 19634.4s (33/47)
[+] Building 20883.3s (34/47)
 => [internal] load build definition from Dockerfile                                                     0.0s
 => => transferring dockerfile: 38B                                                                      0.0s
 => [internal] load .dockerignore                                                                        0.0s
 => => transferring context: 2B                                                                          0.0s
 => [internal] load metadata for public.ecr.aws/ubuntu/ubuntu:22.04                                      1.4s
 => [internal] load build context                                                                        0.0s
 => => transferring context: 481B                                                                        0.0s
 => [core 1/3] FROM public.ecr.aws/ubuntu/ubuntu:22.04@sha256:00dab66161cbfde10804978655472bfb7764257af  0.0s
 => CACHED [core 2/3] RUN set -ex     && echo 'Acquire::CompressionTypes::Order:: "gz";' > /etc/apt/apt  0.0s
 => CACHED [core 3/3] RUN useradd codebuild-user                                                         0.0s
 => CACHED [tools  1/10] RUN set -ex    && STUNNEL_VERSION=5.64    && STUNNEL_TAR=stunnel-$STUNNEL_VERS  0.0s
 => CACHED [tools  2/10] RUN curl -sS -o /usr/local/bin/aws-iam-authenticator https://s3.us-west-2.amaz  0.0s
 => CACHED [tools  3/10] RUN set -ex     && mkdir /tmp/ssm     && cd /tmp/ssm     && wget -q https://s3  0.0s
 => CACHED [tools  4/10] RUN curl https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip -o /tmp/awsc  0.0s
 => CACHED [tools  5/10] RUN set -ex  && wget -qO /usr/local/bin/dotnet-install.sh https://dot.net/v1/d  0.0s
 => CACHED [tools  6/10] RUN git clone https://github.com/tj/n /usr/src/n      && cd /usr/src/n && make  0.0s
 => CACHED [tools  7/10] RUN set -ex     && git clone https://github.com/rbenv/rbenv.git /usr/local/rbe  0.0s
 => CACHED [tools  8/10] RUN curl https://pyenv.run | bash                                               0.0s
 => CACHED [tools  9/10] RUN curl -L https://raw.githubusercontent.com/phpenv/phpenv-installer/master/b  0.0s
 => CACHED [tools 10/10] RUN git clone https://github.com/syndbg/goenv.git $HOME/.goenv                  0.0s
 => CACHED [runtimes  1/15] RUN  /usr/local/bin/dotnet-install.sh -v 6.0.301      && dotnet --list-sdks  0.0s
 => CACHED [runtimes  2/15] RUN set -ex     && mkdir warmup     && cd warmup     && dotnet new     && c  0.0s
 => CACHED [runtimes  3/15] RUN set -ex     && curl -SL https://github.com/PowerShell/PowerShell/releas  0.0s
 => CACHED [runtimes  4/15] RUN  n 16.15.1 && npm install --save-dev -g -f grunt && npm install --save-  0.0s
 => CACHED [runtimes  5/15] RUN rbenv install 3.1.2 && rm -rf /tmp/*     && rbenv global 3.1.2 && ruby   0.0s
 => CACHED [runtimes  6/15] COPY tools/runtime_configs/python/3.10.5 /root/.pyenv/plugins/python-build/  0.0s
 => CACHED [runtimes  7/15] RUN   env PYTHON_CONFIGURE_OPTS="--enable-shared" pyenv install 3.10.5 && r  0.0s
 => CACHED [runtimes  8/15] RUN   pyenv global  3.10.5                                                   0.0s
 => CACHED [runtimes  9/15] RUN set -ex     && pip3 install --no-cache-dir --upgrade --force-reinstall   0.0s
 => CACHED [runtimes 10/15] COPY tools/runtime_configs/php/8.1.6 /root/.phpenv/plugins/php-build/share/  0.0s
 => [runtimes 11/15] RUN phpenv install 8.1.6 && rm -rf /tmp/* && phpenv global 8.1.6                 4579.3s
 => [runtimes 12/15] RUN echo "memory_limit = 1G;" >> "/root/.phpenv/versions/8.1.6/etc/conf.d/memory.i  0.3s
 => [runtimes 13/15] RUN curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/bin --f  4.5s
 => [runtimes 14/15] RUN goenv install 1.18.3 && rm -rf /tmp/* &&     goenv global  1.18.3 &&     go e  40.9s
 => [runtimes 15/15] RUN go get -u github.com/golang/dep/cmd/dep                                        30.6s
 => [runtimes_n_corretto 1/5] RUN set -ex     && apt-get update     && apt-get install -y -qq softwar  197.0s
 => CANCELED [runtimes_n_corretto 2/5] RUN set -ex     && mkdir -p /opt/maven     && curl -LSso /va  16029.3s
context canceled

Platform (please complete the following information):

  • OS: Mac M1, Version 12.4, MacBook Pro
  • uname -a
Darwin 21.5.0 Darwin Kernel Version 21.5.0: Tue Apr 26 21:08:37 PDT 2022; root:xnu-8020.121.3~4/RELEASE_ARM64_T6000 arm64

Additional context
Using official Docker desktop client, version 4.9.1 (81317)

@subinataws
Copy link
Contributor

We have an open ticket about build images on M1 Mac. Lets just track it there: #465.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants