Skip to content
Snippets Groups Projects
Commit fb066714 authored by Ujwal Kundur's avatar Ujwal Kundur
Browse files

Integration Test Scenario #2

Previous testing failed due to intel/oneapi-hpckit not being used
despite being the first command in the Dockerfile.
The most probable cause is the name of the Dockerfile being the same as
jug/dev.Dockerfile.

Another change is the addition of another Build stage to reduce
final image size.
parent 6a5ab680
No related branches found
No related tags found
1 merge request!306OneAPI Integration Testing
......@@ -222,7 +222,7 @@ oneapi_jug_dev:default:
## Copy jug_dev files into build context
- cp -r containers/jug/* containers/oneapi
- docker build -t ${CI_REGISTRY_IMAGE}/${BUILD_IMAGE}:${INTERNAL_TAG}
-f containers/oneapi/dev.Dockerfile
-f containers/oneapi/onedev.Dockerfile
containers/oneapi
- !reference [.build, script]
......
......@@ -8,10 +8,8 @@
## ========================================================================================
ARG DOCKER_REGISTRY="eicweb.phy.anl.gov:4567/containers/eic_container/"
ARG INTERNAL_TAG="testing"
FROM intel/oneapi-hpckit:2022.1.2-devel-ubuntu18.04 as oneapi
FROM intel/oneapi-hpckit:2022.1.2-devel-ubuntu18.04 AS oneapi
COPY bashrc /root/.bashrc
......@@ -87,7 +85,7 @@ RUN --mount=type=cache,target=/var/cache/apt \
## EIC builder image with spack
## ========================================================================================
FROM oneapi as builder
FROM oneapi AS builder
## Setup spack
......@@ -208,7 +206,9 @@ RUN --mount=type=cache,target=/var/cache/pip \
--trusted-host pypi.org \
--trusted-host files.pythonhosted.org \
--cache-dir /var/cache/pip \
--requirement /usr/local/etc/requirements.txt
--requirement /usr/local/etc/requirements.txt \
--no-warn-script-location
# ^ Supress not on PATH Warnings
## Including some small fixes:
## - Somehow PODIO env isn't automatically set,
......@@ -238,7 +238,7 @@ WORKDIR /
## ========================================================================================
## STAGE 3: staging image with unnecessariy packages removed and stripped binaries
## ========================================================================================
FROM builder as staging
FROM builder AS staging
RUN cd /opt/spack-environment && spack env activate . && spack gc -y
# Strip all the binaries
......@@ -290,6 +290,8 @@ RUN chmod a+x /usr/local/bin/mc
## Lean target image
## ========================================================================================
FROM staging AS lean
# We cannot use a new base image and copy from staging
# So, remove spack and clean-up existing image
RUN rm -rf $SPACK_ROOT \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment