cp2k/tools/docker/Dockerfile.test_misc

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
915 B
Text
Raw Permalink Normal View History

#
# This file was created by generate_dockerfiles.py.
# Usage: podman build --shm-size=1g -f ./Dockerfile.test_misc ../../
#
2018-11-08 13:56:15 +01:00
2024-04-30 21:46:47 +02:00
FROM ubuntu:24.04
2018-11-08 13:56:15 +01:00
# Install dependencies.
2022-03-11 12:33:27 +01:00
WORKDIR /opt/cp2k
2023-04-17 19:17:17 +02:00
COPY ./tools/docker/scripts/install_misc.sh .
2025-10-01 10:18:50 +02:00
COPY ./tools/pao-ml/requirements.txt pao-ml-requirements.txt
2023-04-17 19:17:17 +02:00
RUN ./install_misc.sh
2024-04-30 21:46:47 +02:00
ENV PATH="/opt/venv/bin:$PATH"
2018-11-08 13:56:15 +01:00
# Install sources.
ARG GIT_COMMIT_SHA
COPY ./src ./src
COPY ./data ./data
2023-06-06 22:20:50 +02:00
COPY ./docs ./docs
COPY ./tools ./tools
2023-09-26 21:49:06 +02:00
COPY ./tests ./tests
2023-02-13 23:05:58 +01:00
COPY ./cmake ./cmake
COPY ./CMakeLists.txt .
RUN bash -c "if [ -n "${GIT_COMMIT_SHA}" ] ; then echo "git:\${GIT_COMMIT_SHA::7}" > REVISION; fi"
2023-04-17 19:17:17 +02:00
# Run test for misc.
COPY ./tools/docker/scripts/test_misc.sh .
RUN ./test_misc.sh 2>&1 | tee report.log
# Output the report if the image is old and was therefore pulled from the build cache.
2022-02-25 11:04:11 +01:00
CMD cat $(find ./report.log -mmin +10) | sed '/^Summary:/ s/$/ (cached)/'
2022-05-24 00:41:10 +02:00
ENTRYPOINT []
2018-11-08 13:56:15 +01:00
#EOF