abiosoft / caddy-docker

Docker container for Caddy
https://hub.docker.com/r/abiosoft/caddy/
MIT License
768 stars 315 forks source link

caddyserver/builds repo is missing #177

Closed victor141516 closed 5 years ago

victor141516 commented 5 years ago

I just tried to buid caddy using the following command:

> docker build -t my-caddy --build-arg plugins=prometheus github.com/abiosoft/caddy-docker.git

And at some point it fails with:

Cloning into '/go/src/github.com/caddyserver/builds'...
fatal: could not read Username for 'https://github.com': No such device or address

Here is the line: https://github.com/abiosoft/caddy-docker/blob/master/builder/builder.sh#L49

And the linking repo is missing: https://github.com/caddyserver/builds

abiosoft commented 5 years ago

Yeah, it was a decision made in the past few days. I've already fixed it locally, will push the update any moment.

abiosoft commented 5 years ago

Going forward caddy -version for versions prior to 1.0.0 will no longer reflect the version.

abiosoft commented 5 years ago

Pushed. Should be live within the next hour when Docker Cloud CI finishes.

olegstepura commented 5 years ago

The issue persists somehow:

docker build -t my-caddy --build-arg plugins=prometheus github.com/abiosoft/caddy-docker.git
...
fetching missing dependencies: caddy, dnsproviders, hook.pluginloader
chdir /root/lib/caddy/gopath/src/github.com/mholt/caddy: no such file or directory
Cloning into '/go/src/github.com/caddyserver/builds'...
fatal: could not read Username for 'https://github.com': No such device or address
stat build.go: no such file or directory
The command '/bin/sh -c VERSION=${version} PLUGINS=${plugins} /bin/sh /usr/bin/builder.sh' returned a non-zero code: 1
abiosoft commented 5 years ago

@olegstepura try docker rmi abiosoft/caddy:builder and try again.

olegstepura commented 5 years ago

@abiosoft Thanks! This worked. Seems like it's a known issues that the builder container is cached and not updated? Maybe it's worth updating readme?