Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deb packaging #1113

Merged
merged 3 commits into from
Sep 27, 2016
Merged

Deb packaging #1113

merged 3 commits into from
Sep 27, 2016

Conversation

lukeyeager
Copy link
Member

@lukeyeager lukeyeager commented Sep 23, 2016

Borrowed many things from nvidia-docker (thanks @3XX0!).

./packaging/deb/build.sh

UPSTREAM_VERSION=$(echo $SOURCE_VERSION | sed '0,/-/{s/-/~/}' | sed 's/-/\./g')
echo UPSTREAM_VERSION: $UPSTREAM_VERSION

GIT_REV=$(git stash create)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe you should just abort if the environment is dirty.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah good call.

Copy link
Member

@flx42 flx42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpicking

dh-make \
devscripts \
equivs \
lintian
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ugh. It makes my build time slower. Ok.

ARG DEBIAN_VERSION

WORKDIR /build
COPY tarball/* .
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think you need the /* here

RUN debuild --no-lintian -i -uc -us -S -sa
RUN lintian ../*.changes
RUN mkdir -p /dist
RUN cp ../* /dist/ || true
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No need to create so many layers, you should have fewer RUN commands.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think this really matters if I'm not actually distributing the docker image. But ok.

--build-arg DEBIAN_VERSION=$DEBIAN_VERSION \
.

set +e
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah this is dumb. Changing ...

@lukeyeager lukeyeager force-pushed the deb-packaging branch 2 times, most recently from 473dea1 to 4e60a25 Compare September 26, 2016 23:18
@lukeyeager lukeyeager merged commit 649035f into NVIDIA:master Sep 27, 2016
@lukeyeager lukeyeager deleted the deb-packaging branch September 27, 2016 22:25
SlipknotTN pushed a commit to cynnyx/DIGITS that referenced this pull request Mar 30, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants