Skip to content
This repository was archived by the owner on Dec 2, 2017. It is now read-only.

Build caddy with plugins via multi-stage #121

Merged
merged 3 commits into from
Jun 9, 2017

Conversation

sapk
Copy link
Member

@sapk sapk commented Jun 5, 2017

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

@appleboy
Copy link
Member

appleboy commented Jun 6, 2017

LGTM

@Bwko
Copy link
Member

Bwko commented Jun 7, 2017

LGTM

@lunny
Copy link
Member

lunny commented Jun 8, 2017

Have we changed drone to 0.6 now?

@appleboy
Copy link
Member

appleboy commented Jun 8, 2017

@lunny No. still needs to update drone sig file.

Signed-off-by: Kim "BKC" Carlbäcker <[email protected]>
@bkcsoft
Copy link
Member

bkcsoft commented Jun 8, 2017

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
Copy link
Member

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?

Copy link
Member

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...)

Copy link
Member Author

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).

Copy link
Member Author

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.

Copy link
Member

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 :)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants