diff --git a/Jenkinsfile b/Jenkinsfile index 836f79f2..c661f88d 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -359,7 +359,8 @@ try { withEnv(["COMPOSE_FILE=$componentComposeFiles"]) { def componentComposeYaml = - readYaml(text: shOutput('docker compose config --no-interpolate --no-consistency')) + readYaml(text: shOutput('docker compose config --no-interpolate ' + + '--no-consistency --no-path-resolution --no-normalize')) if (env.docker_services_to_build) { def searchImages = env.docker_services_to_build.split(',') @@ -756,7 +757,7 @@ def dockerCleanUp() { } } } - + parallel stepsForParallel sh 'docker builder prune --force --keep-storage=120GB' diff --git a/components/python/Dockerfile b/components/python/Dockerfile index 1e310e94..85041796 100644 --- a/components/python/Dockerfile +++ b/components/python/Dockerfile @@ -61,11 +61,20 @@ ENV PATH $COMPONENT_VIRTUALENV/bin:/scripts:$PATH ######################################### FROM common AS build_api +RUN --mount=type=tmpfs,target=/var/cache/apt \ + --mount=type=tmpfs,target=/var/lib/apt/lists \ + --mount=type=tmpfs,target=/tmp \ + apt-get update; \ + # Some pip packages will try to compile C/C++ extensions during install. To compile the C/C++ + # extensions, a C++ compiler and the Python development headers must be installed. + apt-get install --no-install-recommends -y g++ python3.8-dev + RUN python3 -m venv "$COMPONENT_VIRTUALENV"; \ pip config --site set global.no-cache-dir true; \ + pip install --upgrade pip; \ pip install --upgrade setuptools; -RUN --mount=from=openmpf_build,source=/home/mpf/openmpf-projects/openmpf-python-component-sdk/detection,target=/tmp/python \ +RUN --mount=from=openmpf_build,source=/home/mpf/openmpf-projects/openmpf-python-component-sdk/detection,target=/tmp/python,rw \ pip3 install --no-cache-dir /tmp/python/api /tmp/python/component_util; \ python3 -m unittest discover --verbose --buffer --start-directory /tmp/python/component_util/tests