summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorOleg Vasilev <oleg.vasilev@intel.com>2019-08-28 15:48:41 +0300
committerArkadiusz Hiler <arkadiusz.hiler@intel.com>2019-08-29 14:09:03 +0300
commit72219851701dd0c854c8c293ee4ab58fb60e0c57 (patch)
tree17c51984a9efec70eb8770c68407d37de68aa9f9 /Dockerfile
parent41712de42e4a5e2667741e054136f4182f2b44e6 (diff)
gitlab-ci: introduce containers with IGT inside
Currently, the containers are used only to build IGT. We also want to have an option to run IGT inside a container. For this, new build stage is added. v2: help touch-ups (Arek) Reviewed-by: Arkadiusz Hiler <arkadiusz.hiler@intel.com> Signed-off-by: Oleg Vasilev <oleg.vasilev@intel.com>
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile14
1 files changed, 14 insertions, 0 deletions
diff --git a/Dockerfile b/Dockerfile
new file mode 100644
index 00000000..b601aecd
--- /dev/null
+++ b/Dockerfile
@@ -0,0 +1,14 @@
+# Version number to bump for force image rebuild: 0
+FROM build-fedora
+
+RUN dnf install -y findutils && \
+ dnf clean all
+
+COPY opt-igt /opt/igt
+COPY .gitlab-ci/docker-help.sh /usr/local/bin/docker-help.sh
+
+ENV PATH="/opt/igt/bin:${PATH}"
+ENV LD_LIBRARY_PATH="/opt/igt/lib:/opt/igt/lib64:${LD_LIBRARY_PATH}"
+ENV IGT_TEST_ROOT="/opt/igt/libexec/igt-gpu-tools"
+
+CMD docker-help.sh