Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=native-instruments.de; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ujq9MDoSvjKTC1NGC65KOE9kXUWqD1131sFAZhgF7jU=; b=e6jeQ+xgikgumO40st3pOlZjgEPoNQo0O+AtyHIPQjQ79Ywqfw3ioFYzkVhK788HML mXnrRBXCmDdSTC0sGAoDw9sVmuLQ32lKL8vUyrLtiIVv1u5SeAcrn8NoqRUaI/vz3kEm Wh9vt0kMCPFrmRAoTkfZivAOnozlCiSAmf9lEbxnLWQ03PcrcTrBILW1HUzaUs2yjR3E BJnjW20tXokmNjGYeJPCa7hhuY3amcqwpRKvGQnY0VJo/pXelClJ9wRniNlEC2S7dpt9 HI/VlPMaqd3HQNeBuQ2BMYyvnnnZpswjhumqv9xdfZ9Wwudls3lA+v+ddJME3Vio8x2t CGGw== From: Laszlo Sitzer Date: Tue, 14 Jul 2020 14:21:53 +0200 Message-Id: <20200714122153.596864-1-laszlo.sitzer@native-instruments.de> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Fuego] [PATCH] Dockerfile: Add missing dependencies for release test List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: fuego@lists.linuxfoundation.org Cc: Laszlo Sitzer 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 --- Dockerfile | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e6b7af4..5341ad4 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