File tree Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Expand file tree Collapse file tree 4 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 45
45
fi
46
46
URL=$URL /$FILE_NAME
47
47
echo " Using url: $URL "
48
- curl -O $URL
48
+ # Ubuntu 24.04-arm64 emulated via qemu has a bug, so we prefer wget over curl.
49
+ # See https://github.com/microsoft/playwright-java/issues/1678.
50
+ if command -v wget & > /dev/null; then
51
+ wget $URL
52
+ else
53
+ curl -O $URL
54
+ fi
49
55
unzip $FILE_NAME -d .
50
56
rm $FILE_NAME
51
57
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/java:v%version%-foc
9
9
RUN apt-get update && \
10
10
apt-get install -y --no-install-recommends openjdk-21-jdk \
11
11
# Install utilities required for downloading browsers
12
- curl \
12
+ wget \
13
13
# Install utilities required for downloading driver
14
14
unzip \
15
15
# For the MSEdge install script
@@ -21,7 +21,7 @@ RUN apt-get update && \
21
21
# Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with
22
22
# Java 21, so we install latest Maven from Apache instead.
23
23
RUN VERSION=3.9.6 && \
24
- curl -o - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
24
+ wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
25
25
ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/
26
26
27
27
ARG PW_TARGET_ARCH
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/java:v%version%-jam
9
9
RUN apt-get update && \
10
10
apt-get install -y --no-install-recommends openjdk-21-jdk \
11
11
# Install utilities required for downloading browsers
12
- curl \
12
+ wget \
13
13
# Install utilities required for downloading driver
14
14
unzip \
15
15
# For the MSEdge install script
@@ -21,7 +21,7 @@ RUN apt-get update && \
21
21
# Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with
22
22
# Java 21, so we install latest Maven from Apache instead.
23
23
RUN VERSION=3.9.6 && \
24
- curl -o - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
24
+ wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
25
25
ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/
26
26
27
27
ARG PW_TARGET_ARCH
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ ARG DOCKER_IMAGE_NAME_TEMPLATE="mcr.microsoft.com/playwright/java:v%version%-nob
9
9
RUN apt-get update && \
10
10
apt-get install -y --no-install-recommends openjdk-21-jdk \
11
11
# Install utilities required for downloading browsers
12
- curl \
12
+ wget \
13
13
# Install utilities required for downloading driver
14
14
unzip \
15
15
# For the MSEdge install script
@@ -21,7 +21,7 @@ RUN apt-get update && \
21
21
# Ubuntu 22.04 and earlier come with Maven 3.6.3 which fails with
22
22
# Java 21, so we install latest Maven from Apache instead.
23
23
RUN VERSION=3.9.6 && \
24
- curl -o - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
24
+ wget -O - https://archive.apache.org/dist/maven/maven-3/$VERSION/binaries/apache-maven-$VERSION-bin.tar.gz | tar zxfv - -C /opt/ && \
25
25
ln -s /opt/apache-maven-$VERSION/bin/mvn /usr/local/bin/
26
26
27
27
ARG PW_TARGET_ARCH
You can’t perform that action at this time.
0 commit comments