cmake(ci): use zypper refresh on opensuse

This commit is contained in:
Corentin Le Molgat
2022-06-10 16:32:35 +02:00
parent cbc5674ffb
commit 78939381c2
4 changed files with 5 additions and 5 deletions

View File

@@ -4,13 +4,13 @@ FROM opensuse/tumbleweed AS base
LABEL maintainer="corentinl@google.com"
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN zypper update -y \
RUN zypper refresh \
&& zypper install -y git gcc gcc-c++ cmake \
&& zypper clean -a
ENV CC=gcc CXX=g++
CMD [ "/usr/bin/bash" ]
FROM base AS swig
RUN zypper update -y \
RUN zypper refresh \
&& zypper install -y swig \
&& zypper clean -a

View File

@@ -1,6 +1,6 @@
FROM ortools/cmake:opensuse_swig AS env
# see: https://docs.microsoft.com/en-us/dotnet/core/install/linux-opensuse
RUN zypper update -y \
RUN zypper refresh \
&& zypper install -y wget tar gzip libicu-devel
# .NET install

View File

@@ -1,6 +1,6 @@
FROM ortools/cmake:opensuse_swig AS env
# Install Java JDK and Maven
RUN zypper update -y \
RUN zypper refresh \
&& zypper install -y java-17-openjdk-devel maven \
&& zypper clean -a
ENV PATH=/usr/share/maven/bin:$PATH

View File

@@ -1,6 +1,6 @@
FROM ortools/cmake:opensuse_swig AS env
ENV PATH=/root/.local/bin:$PATH
RUN zypper update -y \
RUN zypper refresh \
&& zypper install -y python3 python3-pip python3-devel \
&& zypper clean -a