2023-12-01 17:32:19 +00:00
|
|
|
FROM opensuse/leap:15.5
|
2017-12-07 22:41:14 +00:00
|
|
|
|
2024-02-14 21:59:18 +00:00
|
|
|
# OpenSUSE 15.5 doesn't have the required CMake 3.24+, but we can add it
|
|
|
|
# through another repo:
|
|
|
|
RUN zypper addrepo \
|
|
|
|
https://download.opensuse.org/repositories/devel:tools:building/15.5/devel:tools:building.repo
|
|
|
|
RUN zypper --no-gpg-checks refresh
|
|
|
|
|
2021-10-13 18:00:37 +00:00
|
|
|
# Install utilities, libraries, and dev tools.
|
|
|
|
RUN zypper in -y \
|
|
|
|
curl which \
|
2023-12-01 17:32:19 +00:00
|
|
|
cmake gcc9-c++ git ninja python3
|
2017-12-07 22:41:14 +00:00
|
|
|
|
2024-02-14 21:59:18 +00:00
|
|
|
# OpenSUSE 15.5 doesn't have the required gcc 9+ by default, but we can install
|
2023-12-01 17:32:19 +00:00
|
|
|
# it as gcc9 and symlink it.
|
|
|
|
RUN ln -s g++-9 /usr/bin/g++
|
|
|
|
RUN ln -s gcc-9 /usr/bin/gcc
|
2022-03-09 00:46:18 +00:00
|
|
|
|
2017-12-07 22:41:14 +00:00
|
|
|
# Build and run this docker by mapping shaka-packager with
|
|
|
|
# -v "shaka-packager:/shaka-packager".
|