Skip to content
Snippets Groups Projects
Commit 340b97b7 authored by Srivatsan Sampathkumar's avatar Srivatsan Sampathkumar
Browse files

Create Ubuntu 22 opengl containers

parent a8e3e1d7
No related branches found
No related tags found
No related merge requests found
......@@ -13,7 +13,7 @@ before_script:
.security_scan:
image: gitlab-master.nvidia.com:5005/pstooling/pulse-group/pulse-container-scanner/pulse-cli:stable
image: gitlab-master.nvidia.com:5005/pstooling/pulse-group/pulse-container-scanner/pulse-cli:v2.0.0
variables:
PSS_SSA_ID: "x9thwm-cootr2q1jdv5p7b8iw4fs4ob3x6nqqsoznyk"
PSS_SSA_SCOPE: "nspect.verify%20scan.anchore"
......@@ -35,15 +35,15 @@ stages:
# builds the gitlab-builder image
prepare:
image: docker:stable
image: docker:latest
stage: prepare
script:
- |
cat << EOF > Dockerfile
FROM docker:stable
FROM docker:latest
ENV DOCKER_TLS_CERTDIR "/certs"
ENV DOCKER_CLI_EXPERIMENTAL enabled
ENV BUILDX_URL https://github.com/docker/buildx/releases/download/v0.4.1/buildx-v0.4.1.linux-amd64
ENV BUILDX_URL https://github.com/docker/buildx/releases/download/v0.10.4/buildx-v0.10.4.linux-amd64
RUN mkdir -p $HOME/.docker/cli-plugins/
RUN wget -O $HOME/.docker/cli-plugins/docker-buildx \$BUILDX_URL
RUN chmod a+x $HOME/.docker/cli-plugins/docker-buildx
......@@ -73,7 +73,7 @@ prepare:
export NV_BASE_EXTRA_TAGS="base";
fi
- cp NGC-DL-CONTAINER-LICENSE base/
- docker buildx create --use --name opengl
- docker buildx use default
- docker buildx build --push -t "${IMAGE_NAME}:base-${OS}${OS_VERSION}" ${TAG_BASE}
--build-arg BUILDKIT_INLINE_CACHE=1
--cache-from "${IMAGE_NAME}:base-${OS}${OS_VERSION}"
......@@ -102,7 +102,7 @@ prepare:
export TAG_LATEST=" -t ${IMAGE_NAME}:latest ";
export NV_GLVND_EXTRA_TAGS="${NV_GLVND_EXTRA_TAGS} runtime devel";
fi
- docker buildx create --use --name opengl
- docker buildx use default
- docker buildx build --push -t "${IMAGE_NAME}:${VERSION}-runtime-${OS}${OS_VERSION}" ${TAG_RUNTIME} ${TAG_LATEST}
--build-arg BUILDKIT_INLINE_CACHE=1
--cache-from "${IMAGE_NAME}:${VERSION}-runtime-${OS}${OS_VERSION}"
......
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