X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=systest%2FDockerfile;h=23ed1d012ed61208513089ba86bf1a19f965e6af;hb=e572aab65d8e91ab5af1cb59247f3424380c43e4;hp=ec304867e52df828e0e9a1e0eb8778c7f6fcf29e;hpb=c80394e7806dc89e012d958b71b87e48a7db20b9;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