From a0d49272eb8982da7dccca1c2585b8996fa80c99 Mon Sep 17 00:00:00 2001
From: Lee Miller <lee.miller@tutanota.com>
Date: Wed, 11 May 2022 19:04:29 +0300
Subject: [PATCH] Install sudo and add builder to sudoers

---
 .buildbot/tox-bionic/Dockerfile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/.buildbot/tox-bionic/Dockerfile b/.buildbot/tox-bionic/Dockerfile
index 5280289b..5cc36b7f 100644
--- a/.buildbot/tox-bionic/Dockerfile
+++ b/.buildbot/tox-bionic/Dockerfile
@@ -10,6 +10,10 @@ RUN apt-get install -yq --no-install-suggests --no-install-recommends \
     python3-dev python3-pip python3.8 python3.8-dev python3.8-venv \
     python-msgpack python-qt4 language-pack-en qt5dxcb-plugin tor xvfb
 
+RUN apt-get install -yq sudo
+
+RUN echo 'builder ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
+
 RUN python3.8 -m pip install setuptools wheel
 RUN python3.8 -m pip install --upgrade pip tox virtualenv