Skip to content

Commit 762b14b

Browse files
authored
Merge pull request #459 from elezar/remove-runtime-docker
Remove runtime and docker packages
2 parents 7a9bc14 + e76e10f commit 762b14b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+4
-2864
lines changed

scripts/build-all-components.sh

Lines changed: 0 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,6 @@ echo "Building ${TARGET} for all packages to ${DIST_DIR}"
4545

4646
: "${LIBNVIDIA_CONTAINER_ROOT:=${PROJECT_ROOT}/third_party/libnvidia-container}"
4747
: "${NVIDIA_CONTAINER_TOOLKIT_ROOT:=${PROJECT_ROOT}}"
48-
: "${NVIDIA_CONTAINER_RUNTIME_ROOT:=${PROJECT_ROOT}/third_party/nvidia-container-runtime}"
49-
: "${NVIDIA_DOCKER_ROOT:=${PROJECT_ROOT}/third_party/nvidia-docker}"
5048

5149

5250
"${SCRIPTS_DIR}/get-component-versions.sh"
@@ -70,57 +68,3 @@ make -C "${NVIDIA_CONTAINER_TOOLKIT_ROOT}" \
7068
LIBNVIDIA_CONTAINER_TAG="${NVIDIA_CONTAINER_TOOLKIT_TAG}" \
7169
"${TARGET}"
7270
fi
73-
74-
# If required we also build the nvidia-container-runtime and nvidia-docker packages.
75-
# Since these are essentially meta packages intended to allow for users to
76-
# transition from older installation workflows, we skip these for rc builds
77-
# (NVIDIA_CONTAINER_TOOLKIT_TAG != "") and releases with a non-zero patch
78-
# version of 0.
79-
if [[ -n ${FORCE_META_PACKAGES} || -z ${NVIDIA_CONTAINER_TOOLKIT_TAG} && "${NVIDIA_CONTAINER_TOOLKIT_VERSION%.0}" != "${NVIDIA_CONTAINER_TOOLKIT_VERSION}" ]]; then
80-
package_format=$(package_type ${TARGET})
81-
package_target=$(get_package_target ${TARGET})
82-
83-
# We set the TOOLKIT_VERSION, TOOLKIT_TAG for the nvidia-container-runtime and nvidia-docker targets
84-
# The LIB_TAG is also overridden to match the TOOLKIT_TAG.
85-
86-
# Build nvidia-container-runtime if required
87-
package_name="nvidia-container-runtime"
88-
package_version=${NVIDIA_CONTAINER_RUNTIME_VERSION}${NVIDIA_CONTAINER_TOOLKIT_TAG:+~${NVIDIA_CONTAINER_TOOLKIT_TAG}}-1
89-
package_pattern=${DIST_DIR}/${package_format}/all/${package_name}?${package_version}?*.${package_format}
90-
package=$(ls ${package_pattern}) || echo ""
91-
if [[ -z ${package} ]]; then
92-
echo "${package_name} does not exist"
93-
make -C ${NVIDIA_CONTAINER_RUNTIME_ROOT} \
94-
LIB_VERSION="${NVIDIA_CONTAINER_RUNTIME_VERSION}" \
95-
LIB_TAG="${NVIDIA_CONTAINER_TOOLKIT_TAG}" \
96-
TOOLKIT_VERSION="${NVIDIA_CONTAINER_TOOLKIT_VERSION}" \
97-
TOOLKIT_TAG="${NVIDIA_CONTAINER_TOOLKIT_TAG}" \
98-
${TARGET}
99-
fi
100-
if [[ -n ${package_target} ]]; then
101-
mkdir -p ${DIST_DIR}/${package_target}/
102-
cp -p ${package_pattern} ${DIST_DIR}/${package_target}/
103-
fi
104-
105-
# Build nvidia-docker2 if required
106-
package_name="nvidia-docker2"
107-
package_version=${NVIDIA_DOCKER_VERSION}${NVIDIA_CONTAINER_TOOLKIT_TAG:+~${NVIDIA_CONTAINER_TOOLKIT_TAG}}-1
108-
package_pattern=${DIST_DIR}/${package_format}/all/${package_name}?${package_version}?*.${package_format}
109-
package=$(ls ${package_pattern}) || echo ""
110-
if [[ -z ${package} ]]; then
111-
echo "${package_name} does not exist"
112-
make -C ${NVIDIA_DOCKER_ROOT} \
113-
LIB_VERSION="${NVIDIA_DOCKER_VERSION}" \
114-
LIB_TAG="${NVIDIA_CONTAINER_TOOLKIT_TAG}" \
115-
TOOLKIT_VERSION="${NVIDIA_CONTAINER_TOOLKIT_VERSION}" \
116-
TOOLKIT_TAG="${NVIDIA_CONTAINER_TOOLKIT_TAG}" \
117-
${TARGET}
118-
fi
119-
if [[ -n ${package_target} ]]; then
120-
mkdir -p ${DIST_DIR}/${package_target}/
121-
cp -p ${package_pattern} ${DIST_DIR}/${package_target}/
122-
fi
123-
124-
else
125-
echo "Skipping nvidia-container-runtime and nvidia-docker builds."
126-
fi

scripts/build-packages.sh

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,6 @@ eval $(${SCRIPTS_DIR}/get-component-versions.sh)
4747

4848
export NVIDIA_CONTAINER_TOOLKIT_VERSION
4949
export NVIDIA_CONTAINER_TOOLKIT_TAG
50-
export NVIDIA_CONTAINER_RUNTIME_VERSION
51-
export NVIDIA_DOCKER_VERSION
5250

5351
for target in ${targets[@]}; do
5452
"${SCRIPTS_DIR}/build-all-components.sh" "${target}"

scripts/extract-packages.sh

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,7 @@ PACKAGE_IMAGE=$1
3737
: "${ARTIFACTS_DIR="${PROJECT_ROOT}/artifacts"}"
3838

3939
# For release-candidates we skip certain packages.
40-
# For example, we don't release release candidates of nvidia-container-runtime and nvidia-docker2
41-
# since these only bump the nvidia-container-toolkit dependency.
40+
# This function returns 0 if a package should be skipped and 1 otherwise.
4241
function skip-for-release-candidate() {
4342
# We always skip nvidia-container-toolkit-operator-extensions packages
4443
if [[ "${package_name/"nvidia-container-toolkit-operator-extensions"/}" != "${package_name}" ]]; then
@@ -53,14 +52,6 @@ function skip-for-release-candidate() {
5352
if [[ "${VERSION%.0}" == "${VERSION}" ]]; then
5453
is_non_patch_full_release=0
5554
fi
56-
57-
local package_name=$1
58-
if [[ "${package_name/"nvidia-docker2"/}" != "${package_name}" ]]; then
59-
return ${is_non_patch_full_release}
60-
fi
61-
if [[ "${package_name/"nvidia-container-runtime"/}" != "${package_name}" ]]; then
62-
return ${is_non_patch_full_release}
63-
fi
6455
return 1
6556
}
6657

scripts/get-component-versions.sh

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -29,31 +29,13 @@ SCRIPTS_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )"/../scripts && pwd )"
2929
PROJECT_ROOT="$( cd ${SCRIPTS_DIR}/.. && pwd )"
3030

3131
NVIDIA_CONTAINER_TOOLKIT_ROOT=${PROJECT_ROOT}
32-
NVIDIA_CONTAINER_RUNTIME_ROOT=${PROJECT_ROOT}/third_party/nvidia-container-runtime
33-
NVIDIA_DOCKER_ROOT=${PROJECT_ROOT}/third_party/nvidia-docker
3432

3533
versions_makefile=${NVIDIA_CONTAINER_TOOLKIT_ROOT}/versions.mk
3634
# Get version for nvidia-container-toolit
3735
nvidia_container_toolkit_version=$(grep -m 1 "^LIB_VERSION := " ${versions_makefile} | sed -e 's/LIB_VERSION :=[[:space:]]\(.*\)[[:space:]]*/\1/')
3836
nvidia_container_toolkit_tag=$(grep -m 1 "^LIB_TAG .= " ${versions_makefile} | sed -e 's/LIB_TAG .=[[:space:]]\(.*\)[[:space:]]*/\1/')
3937
nvidia_container_toolkit_version_tag="${nvidia_container_toolkit_version}${nvidia_container_toolkit_tag:+~${nvidia_container_toolkit_tag}}"
4038

41-
# Get version for nvidia-container-runtime
42-
nvidia_container_runtime_version=$(grep -m 1 "^NVIDIA_CONTAINER_RUNTIME_VERSION := " ${versions_makefile} | sed -e 's/NVIDIA_CONTAINER_RUNTIME_VERSION :=[[:space:]]\(.*\)[[:space:]]*/\1/')
43-
nvidia_container_runtime_tag=${nvidia_container_toolkit_tag}
44-
nvidia_container_runtime_version_tag="${nvidia_container_runtime_version}${nvidia_container_runtime_tag:+~${nvidia_container_runtime_tag}}"
45-
46-
# Get version for nvidia-docker
47-
nvidia_docker_version=$(grep -m 1 "^NVIDIA_DOCKER_VERSION := " ${versions_makefile} | sed -e 's/NVIDIA_DOCKER_VERSION :=[[:space:]]\(.*\)[[:space:]]*/\1/')
48-
nvidia_docker_tag=${nvidia_container_toolkit_tag}
49-
nvidia_docker_version_tag="${nvidia_docker_version}${nvidia_docker_tag:+~${nvidia_docker_tag}}"
50-
5139
echo "NVIDIA_CONTAINER_TOOLKIT_VERSION=${nvidia_container_toolkit_version}"
5240
echo "NVIDIA_CONTAINER_TOOLKIT_TAG=${nvidia_container_toolkit_tag}"
5341
echo "NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION=${nvidia_container_toolkit_version_tag//\~/-}"
54-
echo "NVIDIA_CONTAINER_RUNTIME_VERSION=${nvidia_container_runtime_version}"
55-
echo "NVIDIA_CONTAINER_RUNTIME_TAG=${nvidia_container_runtime_tag}"
56-
echo "NVIDIA_CONTAINER_RUNTIME_PACKAGE_VERSION=${nvidia_container_runtime_version_tag//\~/-}"
57-
echo "NVIDIA_DOCKER_VERSION=${nvidia_docker_version}"
58-
echo "NVIDIA_DOCKER_TAG=${nvidia_docker_tag}"
59-
echo "NVIDIA_DOCKER_PACKAGE_VERSION=${nvidia_docker_version_tag//\~/-}"

scripts/release-packages.sh

Lines changed: 3 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -142,19 +142,6 @@ function sync() {
142142
fi
143143

144144
done
145-
if [[ ${REPO} == "stable" ]]; then
146-
for f in $(ls ${src}/nvidia-container-runtime*.${pkg_type} ${src}/nvidia-docker*.${pkg_type}); do
147-
df=${dst}/$(basename ${f})
148-
df_stable=${df//"/experimental/"/"/stable/"}
149-
if [[ -f "${df}" ]]; then
150-
echo "${df} already exists; skipping"
151-
elif [[ ${REPO} == "experimental" && -f ${df_stable} ]]; then
152-
echo "${df_stable} already exists; skipping"
153-
else
154-
cp ${f} ${df}
155-
fi
156-
done
157-
fi
158145
}
159146

160147
targets=${all[@]}
@@ -191,18 +178,6 @@ done
191178

192179
git -C ${PACKAGE_REPO_ROOT} add ${REPO}
193180

194-
if [[ "${REPO}" == "stable" ]]; then
195-
# Stable release
196-
git -C ${PACKAGE_REPO_ROOT} commit -s -F- <<EOF
197-
Add packages for NVIDIA Container Toolkit ${VERSION} release
198-
199-
These include:
200-
* libnvidia-container* ${LIBNVIDIA_CONTAINER_PACKAGE_VERSION}
201-
* nvidia-container-toolkit ${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}
202-
* nvidia-container-runtime ${NVIDIA_CONTAINER_RUNTIME_PACKAGE_VERSION}
203-
* nvidia-docker ${NVIDIA_DOCKER_PACKAGE_VERSION}
204-
EOF
205-
else
206181
# Experimental / release candidate release
207182
git -C ${PACKAGE_REPO_ROOT} commit -s -F- <<EOF
208183
Add packages for NVIDIA Container Toolkit ${VERSION} ${REPO} release
@@ -211,7 +186,6 @@ These include:
211186
* libnvidia-container* ${LIBNVIDIA_CONTAINER_PACKAGE_VERSION}
212187
* nvidia-container-toolkit ${NVIDIA_CONTAINER_TOOLKIT_PACKAGE_VERSION}
213188
EOF
214-
fi
215189

216190
: ${MASTER_KEY_PATH:? Path to master key MASTER_KEY_PATH must be set}
217191
: ${SUB_KEY_PATH:? Path to sub key SUB_KEY_PATH must be set}
@@ -242,12 +216,12 @@ function sign() {
242216
sign deb
243217

244218
git -C ${PACKAGE_REPO_ROOT} add ${REPO}
245-
git -C ${PACKAGE_REPO_ROOT} commit -s -m "TOFIX: Sign deb packages for ${VERSION} in ${REPO}"
219+
git -C ${PACKAGE_REPO_ROOT} commit -s -m "fixup! Add packages for NVIDIA Container Toolkit ${VERSION} ${REPO} release"
246220

247221
sign rpm
248222

249223
git -C ${PACKAGE_REPO_ROOT} add ${REPO}
250-
git -C ${PACKAGE_REPO_ROOT} commit -s -m "TOFIX: Sign rpm packages for ${VERSION} in ${REPO}"
224+
git -C ${PACKAGE_REPO_ROOT} commit -s -m "fixup! Add packages for NVIDIA Container Toolkit ${VERSION} ${REPO} release"
251225

252-
echo "To publish changes, go to ${PACKAGE_REPO_ROOT} and run: "
226+
echo "To publish changes, go to ${PACKAGE_REPO_ROOT} and run:"
253227
echo " git rebase -i ${UPSTREAM_REFERENCE}"

third_party/nvidia-container-runtime/.dockerignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

third_party/nvidia-container-runtime/.gitattributes

Lines changed: 0 additions & 1 deletion
This file was deleted.

third_party/nvidia-container-runtime/.gitignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

third_party/nvidia-container-runtime/.gitlab-ci.yml

Lines changed: 0 additions & 96 deletions
This file was deleted.

third_party/nvidia-container-runtime/CONTRIBUTING.md

Lines changed: 0 additions & 60 deletions
This file was deleted.

0 commit comments

Comments
 (0)