-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Recover master and master web Dockerfile
Use local github registry to pull hadolint tool.
- Loading branch information
Showing
3 changed files
with
74 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
# Buildbot master and master-web containers | ||
|
||
FROM debian:11-slim | ||
LABEL maintainer="MariaDB Buildbot maintainers" | ||
ARG DEBIAN_FRONTEND=noninteractive | ||
ARG master_type="master" | ||
|
||
WORKDIR /opt/buildbot | ||
# hadolint ignore=DL3003 | ||
RUN apt-get update \ | ||
&& apt-get upgrade -y \ | ||
&& apt-get -y install --no-install-recommends \ | ||
build-essential \ | ||
git \ | ||
libmariadb-dev \ | ||
libvirt-dev \ | ||
netcat \ | ||
pkg-config \ | ||
python3 \ | ||
python3-dev \ | ||
python3-distutils \ | ||
python3-pip \ | ||
python3-venv \ | ||
&& if [ "$master_type" = "master-web" ]; then \ | ||
apt-get -y install --no-install-recommends \ | ||
libcairo2 \ | ||
yarnpkg; \ | ||
export PATH="/usr/share/nodejs/yarn/bin:$PATH"; \ | ||
yarn global --ignore-engines add gulp yo generator-buildbot-dashboard; \ | ||
fi \ | ||
&& git clone --branch grid https://github.com/vladbogo/buildbot . \ | ||
&& python3 -m venv .venv \ | ||
&& . .venv/bin/activate \ | ||
&& if [ "$master_type" = "master-web" ]; then \ | ||
make frontend; \ | ||
fi \ | ||
&& pip install --no-cache-dir wheel \ | ||
&& pip install --no-cache-dir autobahn==20.7.1 PyJWT==1.7.1 \ | ||
&& cd master && python setup.py bdist_wheel \ | ||
&& pip install --no-cache-dir dist/*.whl \ | ||
&& pip install --no-cache-dir pip -U \ | ||
&& pip install --no-cache-dir \ | ||
buildbot-prometheus \ | ||
buildbot-worker \ | ||
docker==4.3.1 \ | ||
flask \ | ||
libvirt-python \ | ||
mock \ | ||
mysqlclient \ | ||
pyzabbix \ | ||
sqlalchemy==1.3.23 \ | ||
treq \ | ||
&& if [ "$master_type" = "master-web" ]; then \ | ||
pip install --no-cache-dir pyjade; \ | ||
fi \ | ||
&& ln -s /opt/buildbot/.venv/bin/buildbot /usr/local/bin/buildbot \ | ||
# cleaning \ | ||
&& apt-get purge -y \ | ||
build-essential \ | ||
pkg-config \ | ||
python3-dev \ | ||
python3-pip \ | ||
python3-venv \ | ||
&& if [ "$master_type" = "master-web" ]; then \ | ||
apt-get purge -y yarnpkg; \ | ||
rm -rf "$(find /opt/buildbot -maxdepth 3 -name node_modules)"; \ | ||
fi \ | ||
&& apt-get autoremove -y \ | ||
&& apt-get clean \ | ||
&& rm -rf /var/lib/apt/lists/* |