X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2FDockerfile;h=23ed1d012ed61208513089ba86bf1a19f965e6af;hb=499b442f67119589220a1ff144e3b26a9b7714ed;hp=ec304867e52df828e0e9a1e0eb8778c7f6fcf29e;hpb=c7a82d0be7c72183e6db9e0fb522b484f9c8df84;p=osm%2Fdevops.git diff --git a/systest/Dockerfile b/systest/Dockerfile index ec304867..23ed1d01 100644 --- a/systest/Dockerfile +++ b/systest/Dockerfile @@ -3,4 +3,9 @@ FROM ubuntu:16.04 RUN apt-get update && apt-get -y install python \ libcurl4-gnutls-dev libgnutls-dev \ python-setuptools python-pip git python-pytest \ - charm-tools + charm-tools sudo + +# allow users to sudo. This will allow packages to be installed +# inside the container +RUN echo "ALL ALL = NOPASSWD: ALL" > /etc/sudoers.d/user && \ + chmod 0440 /etc/sudoers.d/user