-
Notifications
You must be signed in to change notification settings - Fork 184
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
BIG CHANGES #46
BIG CHANGES #46
Conversation
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.
A few notes about debuggability, but otherwise looks sane!
Is vim
used by the Swift core, or just something that's useful to have in the container? (might be worth leaving that out -- didn't notice it before)
; do \ | ||
gpg --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" > /dev/null 2>&1; \ | ||
done \ | ||
&& gpg --batch --verify --quiet swift.tar.gz.sig swift.tar.gz > /dev/null 2>&1 \ |
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.
Same note about 2>&1
here.
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.
You're right, I'm not wedded to it. Better to be able to debug later, most people will consume this as an image, not by building manually.
# uid Swift 3.x Release Signing Key <[email protected]> | ||
A3BAFD3556A59079C06894BD63BC1CFE91D306C6 \ | ||
; do \ | ||
gpg --quiet --keyserver ha.pool.sks-keyservers.net --recv-keys "$key" > /dev/null 2>&1; \ |
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.
Same note about 2>&1
here.
rsync \ | ||
libxml2 \ | ||
git \ | ||
libcurl4-openssl-dev > /dev/null 2>&1 && \ |
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.
If this fails, 2>&1
will swallow the error message, right? (makes debugging failures somewhat harder -- I'd rather have easy debugging and a verbose build than a quiet build that's difficult to debug)
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.
Re: Vim – not at all required, but having some text editor available was requested by users, and we didn't think it had a significant impact on image size. Would it be better for us to remove it?
Oh, and I got to remove wget in favor of curl. 🍾 |
make \ | ||
libc6-dev \ | ||
clang-3.6 \ | ||
vim \ |
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.
Just tested in a bare ubuntu:16.04
, and installing just vim
is ~57.87 MB, which is space users can't ever reclaim if it's in the base image, whereas the following is pretty trivial:
FROM swift
RUN apt-get update -qq && apt-get install -yqq vim && rm -rf /var/lib/apt/lists/*
Combine that with automated builds (https://docs.docker.com/docker-hub/builds/) and repository links (https://docs.docker.com/docker-hub/builds/#repository-links) and it's reasonably easy to have an up-to-date image built FROM
this one with vim
pre-installed.
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.
@swizzlr what do u think?
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.
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.
🤘
@hamin @tianon
I took this opportunity to substantially upgrade the Dockerfile.
This checks all the boxes!