-
Notifications
You must be signed in to change notification settings - Fork 40
Build caddy with plugins via multi-stage #121
Conversation
LGTM |
LGTM |
Have we changed drone to 0.6 now? |
@lunny No. still needs to update drone sig file. |
Signed-off-by: Kim "BKC" Carlbäcker <[email protected]>
Does this work with the docker-version we have on demo? (v1.13.1 API 1.26) |
&& sed -i '/This is where other plugins get plugged in (imported)/a _ "github.com/simia-tech/caddy-locale"' caddymain/run.go \ | ||
&& go install -v . \ | ||
&& /go/bin/caddy -version | ||
|
||
FROM alpine:edge |
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.
Does docker v1.13.1 have support for multi-image?
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.
(anyone can dismiss this review if this does work...)
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.
We only need Docker > 17.05 for building but the resulting image is compatible with any old version (only the last image is kept). This function permit to use a builder pattern in one Dockerfile (with possible multi-builder).
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.
For confirmation, this is already in production on https://gitea.io with the same solution.
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.
Well, it seems to bulid do :)
same as go-gitea/website#43 + go-gitea/website#45
This will need a new drone sig (cc @lunny @appleboy and anyone who can sign ^^)
Fix #120