browserstack/docker-browserstack-local

Missing arm64 images

Opened this issue · 2 comments

AFAICT there's only amd64 versions of this image on Docker Hub. Would it be possible for you to add arm64 images too (useful for Apple Silicon development machines)?

We had same issue - no luck with running the latest image on Mac M1. It seems there is small workaround by forcing an image to be amd64 by editing Dockerfile FROM clause to FROM --platform=linux/amd64 ubuntu. It forces the image to be recognized as amd64 platform and doesn't try to interpret it as arm64.

You can use libstdc++6-amd64-cross package in Debian to offer compatibility for arm64 platforms to run AMD64 (x86-64) binaries.

FROM debian:bullseye-slim
ARG DEBIAN_FRONTEND=noninteractive

RUN apt-get update && \
    apt-get install -y \
    wget \
    unzip \
    ca-certificates \
    procps \
    libstdc++6-amd64-cross --no-install-recommends && \
    rm -rf /var/lib/apt/lists/* && \
    apt-get clean

RUN ln -s /usr/x86_64-linux-gnu/lib64/ /lib64
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/lib64:/usr/x86_64-linux-gnu/lib"

RUN wget https://www.browserstack.com/browserstack-local/binaries/release/v8.9/BrowserStackLocal-linux-x64.zip && \
    unzip BrowserStackLocal-linux-x64.zip && \
    rm BrowserStackLocal-linux-x64.zip && \
    chmod +x /BrowserStackLocal

ENTRYPOINT [ "/BrowserStackLocal", "--source", "docker_8_9_debian"]