tools/docker: Add Debian 11 tests container
This commit is contained in:
15
tools/docker/test/amd64/debian-11/cc.Dockerfile
Normal file
15
tools/docker/test/amd64/debian-11/cc.Dockerfile
Normal file
@@ -0,0 +1,15 @@
|
||||
FROM debian:11
|
||||
LABEL maintainer="corentinl@google.com"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y -q build-essential zlib1g-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
#ENV TZ=America/Los_Angeles
|
||||
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
WORKDIR /root
|
||||
ADD or-tools_debian-11_v*.tar.gz .
|
||||
|
||||
RUN cd or-tools_*_v* && make test_cc
|
||||
29
tools/docker/test/amd64/debian-11/dotnet.Dockerfile
Normal file
29
tools/docker/test/amd64/debian-11/dotnet.Dockerfile
Normal file
@@ -0,0 +1,29 @@
|
||||
FROM debian:11
|
||||
LABEL maintainer="corentinl@google.com"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y -q build-essential zlib1g-dev \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
|
||||
# Dotnet Install
|
||||
# see https://docs.microsoft.com/en-us/dotnet/core/install/linux-debian#debian-11-
|
||||
RUN apt-get update -qq \
|
||||
&& apt-get install -qq gpg apt-transport-https \
|
||||
&& wget -q "https://packages.microsoft.com/config/debian/11/packages-microsoft-prod.deb" -O packages-microsoft-prod.deb \
|
||||
&& dpkg -i packages-microsoft-prod.deb \
|
||||
&& rm packages-microsoft-prod.deb \
|
||||
&& apt-get update -qq \
|
||||
&& apt-get install -qq dotnet-sdk-3.1 dotnet-sdk-5.0 \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
# Trigger first run experience by running arbitrary cmd
|
||||
RUN dotnet --info
|
||||
|
||||
#ENV TZ=America/Los_Angeles
|
||||
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
WORKDIR /root
|
||||
ADD or-tools_debian-11_v*.tar.gz .
|
||||
|
||||
RUN cd or-tools_*_v* && make test_dotnet
|
||||
16
tools/docker/test/amd64/debian-11/java.Dockerfile
Normal file
16
tools/docker/test/amd64/debian-11/java.Dockerfile
Normal file
@@ -0,0 +1,16 @@
|
||||
FROM debian:11
|
||||
LABEL maintainer="corentinl@google.com"
|
||||
|
||||
RUN apt-get update \
|
||||
&& apt-get install -y -q build-essential zlib1g-dev default-jdk maven \
|
||||
&& apt-get clean \
|
||||
&& rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/*
|
||||
ENV JAVA_HOME=/usr/lib/jvm/default-java
|
||||
|
||||
#ENV TZ=America/Los_Angeles
|
||||
#RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
|
||||
|
||||
WORKDIR /root
|
||||
ADD or-tools_debian-11_v*.tar.gz .
|
||||
|
||||
RUN cd or-tools_*_v* && make test_java
|
||||
Reference in New Issue
Block a user