-
Notifications
You must be signed in to change notification settings - Fork 314
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
Temporary fix: check import_package before writing #223
Conversation
Just FYI, this didn't work for me. Fails in the same way that master does.
|
@gabegundy you have to rebuild |
Hello, can you make an advice please RUN go get -v github.com/abiosoft/parent As i understand builder.sh is downloading here |
@jffin just replace #
# Builder
#
FROM abiosoft/caddy:builder
# add this line before you run `/bin/sh /usr/bin/builder.sh`
ADD https://raw.githubusercontent.com/jeffreystoke/caddy-docker/master/builder/builder.sh /usr/bin/builder.sh
# ...
#
# Final stage
#
FROM alpine:3.10
# ... |
it works |
Gets stuck forever here:
|
@tobiasmuehl that could happen since there is no limit to the retry, can you make sure your plugin is properly annotated with package here: https://github.com/caddyserver/caddy/blob/96579b97f687c95aeb85f09029d48122d84c668e/caddyhttp/httpserver/plugin.go#L626 Note: change the file version to match yours. |
@jeffreystoke That explains it, the redis plugin is missing from the list. Using the build service from caddyserver.com for now but would prefer to self-build. |
Redis is a clustering plugin so it probably belongs somewhere else, not in
|
@tobiasmuehl I see that now. Thanks. I reworked the build to be muti-stage (seems cleaner anyway) and it works great. Thanks. |
Unfortunately it doesn't seem to work anymore. I just tried it with the Dockerfile snippet and didn't have any luck. |
Hi, I am also running into the same issue. Can you please elaborate on the steps that you followed? |
Anyone managed to solve?
Got same error:
|
@sparampalli I'm not self building, using the commercial installer provided. Here's my dockerfile: FROM alpine
RUN apk update && apk add bash curl
RUN curl https://getcaddy.com | bash -s personal redis
ADD Caddyfile /etc/Caddyfile
ENTRYPOINT ["caddy"]
CMD ["--conf", "/etc/Caddyfile", "--agree=true"] |
Someone managed to solve this problem. It only works with the "cloudflare" plugin, but I need to include other plugins. Does anyone find a solution to this error? |
@oslah212 i found no way. I solved it bundling the pre-compiled Caddy executable in the docker container. Dirty fix but needed. |
hi @Guglio95 . How can I solve it this way? My goal is to use it with some additional plugins. |
When I want to use plugin namesilo, i build caddy in this way. Hope it would help.
|
Please note that this issue was created for Caddy 1, not Caddy 2. |
@oslah212 you should get the Caddy v1 binary, or compile it by yourself if you need additional plugins.
|
This pull request tries to fix
invalid import path: ""
(related issues: #222 #220 )I've noticed this behavior recently in my build pipline and tried
caddyplug package
alone: it fails for the first one or two times and works all the following try.I've checked the source code, but found nothing could result this behavior, so I decide to make this temporary fix, hope this will work for everyone else.