This repository has been archived by the owner on Oct 27, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 160
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'cleanup-meta-package' into 'main'
Simplify building of the meta-packages See merge request nvidia/container-toolkit/container-runtime!79
- Loading branch information
Showing
9 changed files
with
88 additions
and
368 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,28 @@ | ||
ARG BASEIMAGE | ||
FROM ${BASEIMAGE} | ||
|
||
# packaging dependencies | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
RUN apt-get update && apt-get install -y --no-install-recommends \ | ||
wget \ | ||
ca-certificates \ | ||
git \ | ||
build-essential \ | ||
dh-make \ | ||
fakeroot \ | ||
build-essential \ | ||
devscripts \ | ||
lsb-release && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y curl && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# packaging | ||
ARG PKG_NAME | ||
ARG PKG_VERS | ||
ARG PKG_REV | ||
ARG TOOLKIT_VERSION | ||
ARG DOCKER_VERSION | ||
|
||
ENV DEBFULLNAME "NVIDIA CORPORATION" | ||
ENV DEBEMAIL "[email protected]" | ||
ENV PKG_NAME "${PKG_NAME}" | ||
ENV REVISION "$PKG_VERS-$PKG_REV" | ||
ENV DOCKER_VERSION $DOCKER_VERSION | ||
ENV TOOLKIT_VERSION $TOOLKIT_VERSION | ||
ENV SECTION "" | ||
|
||
|
@@ -45,5 +41,5 @@ RUN sed -i "s;@TOOLKIT_VERSION@;${TOOLKIT_VERSION};" debian/control && \ | |
if [ "$REVISION" != "$(dpkg-parsechangelog --show-field=Version)" ]; then exit 1; fi | ||
|
||
CMD export DISTRIB="$(lsb_release -cs)" && \ | ||
debuild -eREVISION -eDISTRIB -eSECTION --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \ | ||
debuild --preserve-env --dpkg-buildpackage-hook='sh debian/prepare' -i -us -uc -b && \ | ||
mv /tmp/*.deb /dist |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.