Skip to content
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

Building with Cloudflare plugin is broken #195

Closed
riker09 opened this issue Jun 6, 2019 · 2 comments
Closed

Building with Cloudflare plugin is broken #195

riker09 opened this issue Jun 6, 2019 · 2 comments

Comments

@riker09
Copy link

riker09 commented Jun 6, 2019

Or the documentation is outdated. When I do this:

docker build -t caddy --build-arg plugins=cors,realip,expires,cache,cloudflare github.com/abiosoft/caddy-docker.git

I get this error:

...
go: finding golang.org/x/time v0.0.0-20190308202827-9d24e82272b4
go: finding cloud.google.com/go v0.34.0
go: error loading module requirements
error at 'building caddy'
The command '/bin/sh -c VERSION=${version} PLUGINS=${plugins} ENABLE_TELEMETRY=${enable_telemetry} /bin/sh /usr/bin/builder.sh' returned a non-zero code: 1

Building without the Cloudflare plugin works. 🤔

@abiosoft
Copy link
Owner

abiosoft commented Jun 6, 2019

This has been fixed now. docker rmi abiosoft/caddy:builder and try again.

@abiosoft abiosoft closed this as completed Jun 6, 2019
@riker09
Copy link
Author

riker09 commented Jun 11, 2019

The funny thing about this was that I have a build pipeline established and it was failing for several weeks now. It was only for an uncritical system within our deployment, so I didn't gave it much attention. But when I did I tried building locally and got the same error. I tried pulling the image, of course, but although I could see a newer version in Docker Hub I wasn't able to pull it. docker pull said that I already had the latest version.

This was the reason why I opened this ticket and this is also the reason why I'm commenting on this closed issue. For the record. 🙂

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

No branches or pull requests

2 participants