-
Notifications
You must be signed in to change notification settings - Fork 2.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
WIP: adding notary server and signer official images #1423
Conversation
615494e
to
2bfb04a
Compare
Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
2bfb04a
to
6be5f10
Compare
# maintainer: David Lawrence <david.lawrence@docker.com> (@endophage) | ||
|
||
latest: git://github.com/docker/notary-official-images@7dc2105a67a3532f9f470f18d1c8343594341893 notary-server | ||
0.2: git://github.com/docker/notary-official-images@7dc2105a67a3532f9f470f18d1c8343594341893 notary-server |
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.
Are we tagging this as 0.2?
Ok, a few notes on the images:
|
@yosifkit thanks for the feedback and apologies for the problems. I should probably have marked these as WIP. I'll make the improvements you've outlined. My one concern with putting server and signer in the same hub repo is that they can operate entirely independently if configured to do so and it prevents there being a "latest" which will get pulled by default should not tag be provided. |
You could forgo having a "latest" tag at all if that helps -- it's not
|
@tianon if there's already precedent for that then we can do that. |
Indeed, this wouldn't be the first, so let's plan on that. 👍 If you need any help or advice in implementing the things @yosifkit mentioned, don't hesitate to reach out; we're happy to help further. ❤️ |
Image is looking pretty good, just two minor comments I've got:
|
Sounds good. We want to use alpine because it's useful to be able to What's the best way to get your gosu command into a container? I've seen a couple of examples of people just using wget but that seems less than ideal. |
Yeah, I definitely agree that it helps for debuggability. Unfortunately, that's probably the best way if you want # grab gosu for easy step-down from root
RUN set -x \
&& curl -o /usr/local/bin/gosu -fSL "https://github.com/tianon/gosu/releases/download/1.7/gosu-$(dpkg --print-architecture)" \
&& curl -o /usr/local/bin/gosu.asc -fSL "https://github.com/tianon/gosu/releases/download/1.7/gosu-$(dpkg --print-architecture).asc" \
&& export GNUPGHOME="$(mktemp -d)" \
&& gpg --keyserver ha.pool.sks-keyservers.net --recv-keys B42F6819007F00F88E364FD4036A9C25BF357DD4 \
&& gpg --batch --verify /usr/local/bin/gosu.asc /usr/local/bin/gosu \
&& rm /usr/local/bin/gosu.asc \
&& chmod +x /usr/local/bin/gosu If You might also be interested in redis/docker-library-redis#48 (and the linked issues, docker-library/rabbitmq#60, docker-library/cassandra#48, and docker-library/mongo#81) so that users of the image can take permissions into their own hands and use aribtrary |
as these are meant to be prod containers, there's no writing to disk so |
b8f1807
to
264fe74
Compare
…ents Signed-off-by: David Lawrence <david.lawrence@docker.com> (github: endophage)
264fe74
to
7dec03d
Compare
@tianon I think the consistency stuff is fixed now, I've tested running various commands and it seems to be working correctly for things like I've also updated the tags to remove the |
Looking over the docs and this should be good to go. $ bashbrew build "notary"
Cloning notary (git://github.com/docker/notary-official-images) ...
Processing notary:server ...
Processing notary:server-0.2.0 ...
Processing notary:signer ...
Processing notary:signer-0.2.0 ...
$ bashbrew list --uniq "$url" | xargs test/run.sh
testing notary:server
'utc' [1/4]...passed
'cve-2014--shellshock' [2/4]...passed
'no-hard-coded-passwords' [3/4]...passed
'override-cmd' [4/4]...passed
testing notary:signer
'utc' [1/4]...passed
'cve-2014--shellshock' [2/4]...passed
'no-hard-coded-passwords' [3/4]...passed
'override-cmd' [4/4]...passed |
LGTM |
WIP: adding notary server and signer official images
Working on docs over here docker-library/docs#483
Signed-off-by: David Lawrence david.lawrence@docker.com (github: endophage)