Files
ortools-clone/tools/docker/test/opensuse-leap/cpp.Dockerfile
Mizux Seiha 590471becf cmake bump to 3.25.2
dev Note:

git ls-files -z | xargs -0 sed -i -e 's;CMake 3\.2[0-9]\.[0-9]\+;CMake 3.25.2;g'
git ls-files -z | xargs -0 sed -i -e 's;cmake-3\.2[0-9]\.[0-9];cmake-3.25.2;g'
git ls-files -z | xargs -0 sed -i -e 's;/v3\.2[0-9]/cmake-3\.2[0-9]\.[0-9];/v3.25/cmake-3.25.2;g'
2023-02-02 19:02:56 +01:00

26 lines
803 B
Docker

# Create a virtual environment with all tools installed
# ref: https://hub.docker.com/r/opensuse/leap
FROM opensuse/leap
# Install system build dependencies
ENV PATH=/usr/local/bin:$PATH
RUN zypper refresh \
&& zypper install -y git gcc11 gcc11-c++ \
wget which lsb-release util-linux pkgconfig autoconf libtool zlib-devel \
&& zypper clean -a
ENV CC=gcc-11 CXX=g++-11
ENTRYPOINT ["/usr/bin/bash", "-c"]
CMD ["/usr/bin/bash"]
# Install CMake 3.25.2
RUN ARCH=$(uname -m) \
&& wget -q "https://cmake.org/files/v3.25/cmake-3.25.2-linux-${ARCH}.sh" \
&& chmod a+x cmake-3.25.2-linux-${ARCH}.sh \
&& ./cmake-3.25.2-linux-${ARCH}.sh --prefix=/usr/local/ --skip-license \
&& rm cmake-3.25.2-linux-${ARCH}.sh
WORKDIR /root
ADD or-tools_amd64_opensuse-leap_cpp_v*.tar.gz .
RUN cd or-tools_*_v* && make test