2022-02-02 22:58:19 +01:00
|
|
|
#
|
|
|
|
|
# This file was created by generate_dockerfiles.py.
|
2025-05-28 16:29:09 +02:00
|
|
|
# Usage: podman build --shm-size=1g -f ./Dockerfile.test_misc ../../
|
2022-02-02 22:58:19 +01:00
|
|
|
#
|
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
|
|
|
|
2022-02-19 14:35:21 +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
|
|
|
|
2022-02-19 14:35:21 +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
|
2022-02-19 14:35:21 +01:00
|
|
|
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
|
2023-04-17 23:41:44 +02:00
|
|
|
COPY ./CMakeLists.txt .
|
2022-02-19 14:35:21 +01:00
|
|
|
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
|
2022-02-19 14:35:21 +01:00
|
|
|
|
|
|
|
|
# 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
|
|
|
|
2020-08-10 11:50:46 +02:00
|
|
|
#EOF
|