Skip to content

Commit f98e89e

Browse files
committed
test(e2e): add composer/maven/nuget Dockerfiles
Adds the three Dockerfile recipes the docker_e2e_{composer,maven,nuget} tests panic-message instruct users to build. - Dockerfile.composer: base + PHP 8 + Composer 2 - Dockerfile.maven: base + default-jdk-headless + maven - Dockerfile.nuget: mcr.microsoft.com/dotnet/sdk:8.0 (sdk image) with socket-patch COPY'd in from the base
1 parent ba05410 commit f98e89e

3 files changed

Lines changed: 34 additions & 0 deletions

File tree

tests/docker/Dockerfile.composer

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# composer (PHP) ecosystem test image: base + PHP + Composer.
2+
FROM socket-patch-test-base:latest
3+
4+
RUN apt-get update \
5+
&& apt-get install -y --no-install-recommends \
6+
php-cli \
7+
php-curl \
8+
php-xml \
9+
php-mbstring \
10+
unzip \
11+
&& rm -rf /var/lib/apt/lists/* \
12+
&& curl -fsSL https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer \
13+
&& php --version && composer --version

tests/docker/Dockerfile.maven

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# maven ecosystem test image: base + JDK + Maven.
2+
FROM socket-patch-test-base:latest
3+
4+
RUN apt-get update \
5+
&& apt-get install -y --no-install-recommends \
6+
default-jdk-headless \
7+
maven \
8+
&& rm -rf /var/lib/apt/lists/* \
9+
&& java -version && mvn -version

tests/docker/Dockerfile.nuget

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# nuget (.NET) ecosystem test image.
2+
#
3+
# The official `mcr.microsoft.com/dotnet/sdk:8.0` image is the simplest
4+
# way to get a working .NET SDK across architectures (the apt + dotnet-
5+
# install paths both have arm64 issues on bookworm). We COPY socket-patch
6+
# in from our base image.
7+
FROM socket-patch-test-base:latest AS sptool
8+
9+
FROM mcr.microsoft.com/dotnet/sdk:8.0
10+
COPY --from=sptool /usr/local/bin/socket-patch /usr/local/bin/socket-patch
11+
RUN socket-patch --version && dotnet --version
12+
WORKDIR /workspace

0 commit comments

Comments
 (0)