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

Failing on RUN /opt/install-sdk.sh #10

Open
SakshamSahgal opened this issue May 9, 2024 · 1 comment
Open

Failing on RUN /opt/install-sdk.sh #10

SakshamSahgal opened this issue May 9, 2024 · 1 comment

Comments

@SakshamSahgal
Copy link

On running docker compose up android-emulator
The build fails with this error -

[+] Building 418.2s (12/15)                                                                                                                   docker:default 
 => [android-emulator internal] load build definition from Dockerfile                                                                                   0.0s 
 => => transferring dockerfile: 2.55kB                                                                                                                  0.0sx => [android-emulator internal] load metadata for docker.io/library/openjdk:18-jdk-slim                                                                 1.0s 
 => [android-emulator internal] load .dockerignore                                                                                                      0.0s 
 => => transferring context: 2B                                                                                                                         0.0s 
 => CACHED [android-emulator  1/11] FROM docker.io/library/openjdk:18-jdk-slim@sha256:8e17383576d7e71988ee5927473a32e8461381c7a29eefa9a0c24b3a28926272  0.0s 
 => [android-emulator internal] load build context                                                                                                      0.0s 
 => => transferring context: 256B                                                                                                                       0.0s 
 => [android-emulator  2/11] RUN apt update && apt install -y curl  sudo wget unzip bzip2 libdrm-dev  libxkbcommon-dev libgbm-dev libasound-dev libn  415.7s 
 => [android-emulator  3/11] WORKDIR /opt                                                                                                               0.0s
 => [android-emulator  4/11] RUN mkdir /root/.android/ &&  touch /root/.android/repositories.cfg &&  mkdir /data                                        0.3s
 => [android-emulator  5/11] COPY keys/* /root/.android/                                                                                                0.0s
 => [android-emulator  6/11] COPY scripts/install-sdk.sh /opt/                                                                                          0.0s
 => [android-emulator  7/11] RUN chmod +x /opt/install-sdk.sh                                                                                           0.4s
 => ERROR [android-emulator  8/11] RUN /opt/install-sdk.sh                                                                                              0.5s
------
 > [android-emulator  8/11] RUN /opt/install-sdk.sh:
0.487 /bin/bash: /opt/install-sdk.sh: /bin/bash^M: bad interpreter: No such file or directory
------
failed to solve: process "/bin/bash -c /opt/install-sdk.sh" did not complete successfully: exit code: 126
@HQarroum
Copy link
Owner

HQarroum commented May 9, 2024

Hi @SakshamSahgal, thanks for reporting this issue. I don’t have the time to fix it at the moment but if you manage to fix it I’m willing to take in pull requests

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