2021-10-13 18:00:37 +00:00
|
|
|
FROM centos:8
|
2017-12-07 22:41:14 +00:00
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
# Fix up CentOS repo info, which is outdated and not maintained in DockerHub.
|
|
|
|
# See https://stackoverflow.com/a/71309215
|
|
|
|
RUN cd /etc/yum.repos.d/
|
|
|
|
RUN sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
|
|
|
|
RUN sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
|
|
|
|
|
2021-10-13 18:00:37 +00:00
|
|
|
# Install utilities, libraries, and dev tools.
|
|
|
|
RUN yum install -y \
|
|
|
|
which \
|
2021-10-12 21:55:13 +00:00
|
|
|
c-ares-devel libatomic \
|
2021-10-13 18:00:37 +00:00
|
|
|
gcc-c++ git python2 python3
|
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
# Default to python2 because our build system is ancient.
|
|
|
|
RUN ln -sf python2 /usr/bin/python
|
2017-12-07 22:41:14 +00:00
|
|
|
|
|
|
|
# Install depot_tools.
|
|
|
|
WORKDIR /
|
2022-03-09 00:46:18 +00:00
|
|
|
RUN git clone -b chrome/4147 https://chromium.googlesource.com/chromium/tools/depot_tools.git
|
|
|
|
RUN touch depot_tools/.disable_auto_update
|
2017-12-07 22:41:14 +00:00
|
|
|
ENV PATH /depot_tools:$PATH
|
|
|
|
|
2022-03-09 00:46:18 +00:00
|
|
|
# Bypass VPYTHON included by depot_tools. Prefer the system installation.
|
|
|
|
ENV VPYTHON_BYPASS="manually managed python not supported by chrome operations"
|
|
|
|
|
2017-12-07 22:41:14 +00:00
|
|
|
# Build and run this docker by mapping shaka-packager with
|
|
|
|
# -v "shaka-packager:/shaka-packager".
|