-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Deb packaging #1113
Conversation
UPSTREAM_VERSION=$(echo $SOURCE_VERSION | sed '0,/-/{s/-/~/}' | sed 's/-/\./g') | ||
echo UPSTREAM_VERSION: $UPSTREAM_VERSION | ||
|
||
GIT_REV=$(git stash create) |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah good call.
There was a problem hiding this 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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's recommend to clean the apt cache afterwards: https://docs.docker.com/engine/userguide/eng-image/dockerfile_best-practices/#/apt-get
There was a problem hiding this comment.
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/* . |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why?
There was a problem hiding this comment.
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 ...
473dea1
to
4e60a25
Compare
4e60a25
to
a81c07d
Compare
Deb packaging
Borrowed many things from nvidia-docker (thanks @3XX0!).