[Fuego] [PATCH 2/2] Dockerfile: Add missing dependencies for release test

Laszlo Sitzer laszlo.sitzer at native-instruments.de
Tue Jul 14 12:02:14 UTC 2020


Also allow the jenkins user in the container to use sudo without a
password. This is needed to automate interaction with sudo which
is used in fuego_test.sh of the release test and in the fuego-host-scripts.

Signed-off-by: Laszlo Sitzer <laszlo.sitzer at native-instruments.de>
---
 Dockerfile | 15 ++++++++++++++-
 1 file changed, 14 insertions(+), 1 deletion(-)

diff --git a/Dockerfile b/Dockerfile
index e6b7af4..f6ddacf 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -37,12 +37,20 @@ RUN if [ -n "$HTTP_PROXY" ]; then echo 'Acquire::http::proxy "'$HTTP_PROXY'";' >
 # - python-pexpect: ssh_exec (part of ttc)
 # - python-pip: to install filelock, flake8
 # - filelock: parser
+# - python3-pip: fuego_release_test
+# - python3-pexpect: fuego_release_test
+# - python3-pil: fuego_release_test
+# - docker: fuego_release_test
+# - selenium: fuego_release_test
 RUN mkdir -p /usr/share/man/man1
 RUN apt-get update -q=2 && apt-get -q=2 -V --no-install-recommends install \
 	python-lxml python-simplejson python-yaml python-openpyxl \
 	python-requests python-reportlab python-parsedatetime \
-	python-pexpect python-pip python-setuptools python-wheel
+	python-pexpect python-pip python-setuptools python-wheel \
+	python3-pip python3-pexpect python3-pil
 RUN pip install filelock
+RUN pip3 install docker=4.10
+RUN pip3 install selenium==2.141.0
 
 # Fuego command dependencies
 RUN apt-get -q=2 -V --no-install-recommends install \
@@ -122,6 +130,11 @@ RUN pip install python-jenkins==1.4.0
 RUN echo -e "JENKINS_PORT=$JENKINS_PORT" >> /etc/environment
 RUN getent group ${gid} >/dev/null || groupadd -g ${gid} ${group}
 RUN useradd -l -m -d "${JENKINS_HOME}" -u ${uid} -g ${gid} -G sudo -s /bin/bash ${user}
+
+# For 'Functional.fuego_release_test'
+#  - requires jenkins user to use sudo without a password
+RUN echo "${user} ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/no-passwd
+
 RUN wget -nv ${JENKINS_URL}
 RUN echo "${JENKINS_SHA} jenkins_${JENKINS_VERSION}_all.deb" | sha1sum -c -
 # allow Jenkins to start and install plugins, as part of dpkg installation
-- 
2.27.0



More information about the Fuego mailing list