From 4eba4cf3100c79affddfff7e0b83e28930b99c87 Mon Sep 17 00:00:00 2001 From: Piero Toffanin Date: Wed, 17 Nov 2021 13:08:57 -0500 Subject: [PATCH] Smoke test in docker build --- Dockerfile | 4 +++- gpu.Dockerfile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 2c528088..cf532b7b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -38,9 +38,11 @@ COPY --from=builder /usr/local /usr/local # Install shared libraries that we depend on via APT, but *not* # the -dev packages to save space! +# Also run a smoke test RUN bash configure.sh installruntimedepsonly \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ + && bash run.sh --help # Entry point ENTRYPOINT ["python3", "/code/run.py"] diff --git a/gpu.Dockerfile b/gpu.Dockerfile index 06e64308..ae959c89 100644 --- a/gpu.Dockerfile +++ b/gpu.Dockerfile @@ -42,9 +42,11 @@ RUN apt update && apt install -y nvidia-opencl-icd-340 intel-opencl-icd # Install shared libraries that we depend on via APT, but *not* # the -dev packages to save space! +# Also run a smoke test RUN bash configure.sh installruntimedepsonly \ && apt-get clean \ - && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* + && rm -rf /var/lib/apt/lists/* /tmp/* /var/tmp/* \ + && bash run.sh --help # Entry point ENTRYPOINT ["python3", "/code/run.py"]