From: Lovett, Trevor Date: Thu, 21 Feb 2019 18:56:03 +0000 (-0600) Subject: [VVP] Ensure VVP Docker runs as non-root X-Git-Tag: 5.0.0~59 X-Git-Url: https://gerrit.onap.org/r/gitweb?p=vvp%2Fvalidation-scripts.git;a=commitdiff_plain;h=2f2f281da7304232cb94723f9c2ada32df884da5 [VVP] Ensure VVP Docker runs as non-root Also ensures VVP only executes the heat tests and ignores app_tests Change-Id: I59ba2f72ac694dee4e705787d24a78ac983afa3a Issue-ID: VVP-175 Signed-off-by: Lovett, Trevor --- diff --git a/Dockerfile b/Dockerfile index fe626fa..8d24022 100644 --- a/Dockerfile +++ b/Dockerfile @@ -42,8 +42,11 @@ COPY requirements.txt / RUN pip install --upgrade pip RUN pip install --no-use-pep517 -r /requirements.txt -COPY ice_validator/ /vvp +RUN adduser -D vvpuser +USER vvpuser + +COPY --chown=vvpuser ice_validator/ /vvp WORKDIR /vvp -ENTRYPOINT ["pytest"] +ENTRYPOINT ["pytest", "tests"]