# # This file was created by generate_dockerfiles.py. # Usage: podman build --shm-size=1g -f ./Dockerfile.test_misc ../../ # FROM ubuntu:24.04 # Install dependencies. WORKDIR /opt/cp2k COPY ./tools/docker/scripts/install_misc.sh . COPY ./tools/pao-ml/requirements.txt pao-ml-requirements.txt RUN ./install_misc.sh ENV PATH="/opt/venv/bin:$PATH" # Install sources. ARG GIT_COMMIT_SHA COPY ./src ./src COPY ./data ./data COPY ./docs ./docs COPY ./tools ./tools COPY ./tests ./tests COPY ./cmake ./cmake COPY ./CMakeLists.txt . RUN bash -c "if [ -n "${GIT_COMMIT_SHA}" ] ; then echo "git:\${GIT_COMMIT_SHA::7}" > REVISION; fi" # 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. CMD cat $(find ./report.log -mmin +10) | sed '/^Summary:/ s/$/ (cached)/' ENTRYPOINT [] #EOF