aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLovett, Trevor <trevor.lovett@att.com>2019-02-21 12:56:03 -0600
committerLovett, Trevor <trevor.lovett@att.com>2019-02-21 12:56:03 -0600
commit2f2f281da7304232cb94723f9c2ada32df884da5 (patch)
tree71873336d3d10f97fefeb773ad44e35d00790e43
parented9ad702cff64e3098ac54286bf0f40cdf277a44 (diff)
[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 <trevor.lovett@att.com>
-rw-r--r--Dockerfile7
1 files changed, 5 insertions, 2 deletions
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"]