Closed ikifar2012 closed 5 years ago
Any update on this?
Php is not a plugin.
You should do this instead.
docker build --build-arg \
plugins=git,cloudflare\
github.com/abiosoft/caddy-docker.git#:php
Still gives an error:
Sending build context to Docker daemon 9.728kB
Step 1/30 : FROM abiosoft/caddy:builder as builder
---> 12cfe83bf812
Step 2/30 : ARG version="0.11.5"
---> Using cache
---> 8c73882425f8
Step 3/30 : ARG plugins="git,filebrowser,cors,realip,expires,cache"
---> Using cache
---> 13104eb53953
Step 4/30 : RUN go get -v github.com/abiosoft/parent
---> Using cache
---> 57fc6a488b9f
Step 5/30 : RUN VERSION=${version} PLUGINS=${plugins} /bin/sh /usr/bin/builder.s h
---> Running in 8c65065b87ca
Cloning into '/go/src/github.com/mholt/caddy'...
Note: checking out '80dfb8b2a7f89b120a627bc4d866a1dc5ed3d92f'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
Switched to a new branch 'v0.11.5'
github.com/abiosoft/caddyplug (download)
github.com/abiosoft/errs (download)
github.com/fatih/color (download)
Fetching https://golang.org/x/sys/unix?go-get=1
Parsing meta tags from https://golang.org/x/sys/unix?go-get=1 (status code 200)
get "golang.org/x/sys/unix": found meta tag get.metaImport{Prefix:"golang.org/x/ sys", VCS:"git", RepoRoot:"https://go.googlesource.com/sys"} at https://golang.o rg/x/sys/unix?go-get=1
get "golang.org/x/sys/unix": verifying non-authoritative meta tag
Fetching https://golang.org/x/sys?go-get=1
Parsing meta tags from https://golang.org/x/sys?go-get=1 (status code 200)
golang.org/x/sys (download)
github.com/abiosoft/errs
github.com/fatih/color/vendor/github.com/mattn/go-isatty
github.com/abiosoft/caddyplug/internal
github.com/fatih/color/vendor/github.com/mattn/go-colorable
golang.org/x/sys/unix
github.com/fatih/color
github.com/abiosoft/caddyplug/caddyplug
fetching missing dependencies: caddy, dnsproviders, hook.pluginloader
github.com/mholt/caddy/vendor/github.com/flynn/go-shlex
github.com/mholt/caddy/vendor/github.com/google/uuid
github.com/mholt/caddy/telemetry
github.com/mholt/caddy/caddyfile
github.com/mholt/caddy
Cloning into '/root/lib/caddy/gopath/src/github.com/caddyserver/dnsproviders'...
github.com/abiosoft/caddyplug (download)
github.com/abiosoft/caddyplug/internal
github.com/abiosoft/caddyplug
done fetching depedencies.
github.com/abiosoft/caddy-git (download)
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/golang.org/x/crypto/curve25519
github.com/abiosoft/caddy-git/gitos
github.com/mholt/caddy/vendor/github.com/flynn/go-shlex
github.com/mholt/caddy/vendor/github.com/google/uuid
github.com/mholt/caddy/vendor/github.com/hashicorp/go-syslog
github.com/mholt/caddy/telemetry
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/bifurcation/mint/syntax
github.com/mholt/caddy/caddyfile
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/golang.org/x/crypto/hkdf
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/bifurcation/mint
github.com/mholt/caddy
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/cheekybits/genny/generic
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/protocol
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/utils
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/congestion
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/hashicorp/golang-lru/simplelru
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/hashicorp/golang-lru
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/lucas-clemente/aes12
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/vendor/github.com/lucas-clemente/quic-go-certificates
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/qerr
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/flowcontrol
github.com/mholt/caddy/vendor/golang.org/x/text/transform
github.com/mholt/caddy/vendor/golang.org/x/text/unicode/bidi
github.com/mholt/caddy/vendor/golang.org/x/text/secure/bidirule
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/crypto
github.com/mholt/caddy/vendor/golang.org/x/text/unicode/norm
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/handshake
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/wire
github.com/mholt/caddy/vendor/golang.org/x/net/idna
github.com/mholt/caddy/vendor/golang.org/x/net/http/httpguts
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/internal/ackhandler
github.com/mholt/caddy/vendor/golang.org/x/net/http2/hpack
github.com/mholt/caddy/vendor/golang.org/x/net/lex/httplex
github.com/mholt/caddy/vendor/golang.org/x/net/http2
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go
github.com/mholt/caddy/caddyhttp/staticfiles
github.com/mholt/caddy/vendor/github.com/lucas-clemente/quic-go/h2quic
github.com/mholt/caddy/vendor/github.com/klauspost/cpuid
github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/crypto/ocsp
github.com/mholt/caddy/vendor/github.com/cenkalti/backoff
github.com/mholt/caddy/vendor/github.com/xenolf/lego/certcrypto
github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/api/internal/sender
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/crypto/ed25519/internal/edwards25519
github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/api/internal/nonces
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/crypto/pbkdf2
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/gopkg.in/square/go-jose.v2/cipher
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/gopkg.in/square/go-jose.v2/json
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/crypto/ed25519
github.com/mholt/caddy/vendor/github.com/xenolf/lego/log
github.com/mholt/caddy/vendor/github.com/xenolf/lego/challenge
github.com/mholt/caddy/vendor/github.com/xenolf/lego/platform/wait
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/text/transform
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/text/unicode/bidi
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/gopkg.in/square/go-jose.v2
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/text/secure/bidirule
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/text/unicode/norm
github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/api/internal/secure
github.com/mholt/caddy/vendor/github.com/xenolf/lego/acme/api
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/idna
github.com/mholt/caddy/vendor/github.com/xenolf/lego/challenge/http01
github.com/mholt/caddy/vendor/github.com/xenolf/lego/challenge/tlsalpn01
github.com/mholt/caddy/vendor/github.com/xenolf/lego/certificate
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/bpf
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/internal/iana
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/internal/socket
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/sys/unix
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/ipv4
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/golang.org/x/net/ipv6
github.com/mholt/caddy/vendor/github.com/xenolf/lego/registration
github.com/mholt/caddy/vendor/golang.org/x/crypto/ocsp
github.com/mholt/caddy/vendor/github.com/xenolf/lego/vendor/github.com/miekg/dns
github.com/mholt/caddy/vendor/github.com/russross/blackfriday
github.com/mholt/caddy/vendor/gopkg.in/natefinch/lumberjack.v2
github.com/mholt/caddy/vendor/github.com/xenolf/lego/challenge/dns01
github.com/mholt/caddy/vendor/github.com/xenolf/lego/challenge/resolver
github.com/mholt/caddy/vendor/github.com/xenolf/lego/lego
github.com/mholt/caddy/vendor/github.com/mholt/certmagic
github.com/mholt/caddy/caddytls
# github.com/mholt/caddy/caddytls
caddytls/config.go:410:31: undefined: tls.VersionTLS13
caddytls/config.go:433:12: undefined: tls.VersionTLS13
github.com/caddyserver/dnsproviders (download)
github.com/xenolf/lego (download)
github.com/go-acme/lego (download)
github.com/go-acme/lego/vendor/golang.org/x/net/internal/iana
github.com/xenolf/lego/vendor/github.com/pkg/errors
github.com/mholt/caddy/caddytls
# github.com/mholt/caddy/caddytls
caddytls/config.go:410:31: undefined: tls.VersionTLS13
caddytls/config.go:433:12: undefined: tls.VersionTLS13
github.com/xenolf/lego/vendor/golang.org/x/time/rate
github.com/go-acme/lego/acme
github.com/go-acme/lego/vendor/github.com/cenkalti/backoff
github.com/xenolf/lego/vendor/github.com/cloudflare/cloudflare-go
github.com/go-acme/lego/acme/api/internal/sender
github.com/go-acme/lego/acme/api/internal/nonces
github.com/go-acme/lego/vendor/golang.org/x/crypto/ed25519/internal/edwards25519
github.com/go-acme/lego/vendor/golang.org/x/crypto/ed25519
github.com/go-acme/lego/vendor/golang.org/x/crypto/pbkdf2
github.com/go-acme/lego/vendor/gopkg.in/square/go-jose.v2/cipher
github.com/go-acme/lego/vendor/gopkg.in/square/go-jose.v2/json
github.com/go-acme/lego/vendor/golang.org/x/crypto/ocsp
github.com/go-acme/lego/certcrypto
github.com/go-acme/lego/log
github.com/go-acme/lego/challenge
github.com/go-acme/lego/platform/wait
github.com/go-acme/lego/vendor/golang.org/x/net/bpf
github.com/go-acme/lego/vendor/gopkg.in/square/go-jose.v2
github.com/go-acme/lego/vendor/golang.org/x/net/internal/socket
github.com/go-acme/lego/vendor/golang.org/x/net/ipv4
github.com/go-acme/lego/acme/api/internal/secure
github.com/go-acme/lego/acme/api
github.com/go-acme/lego/vendor/golang.org/x/net/ipv6
github.com/go-acme/lego/vendor/golang.org/x/sys/unix
github.com/go-acme/lego/platform/config/env
github.com/go-acme/lego/vendor/github.com/miekg/dns
github.com/go-acme/lego/challenge/dns01
github.com/xenolf/lego/providers/dns/cloudflare
Cloning into '/go/src/github.com/caddyserver/builds'...
# github.com/mholt/caddy/caddytls
../caddytls/config.go:410:31: undefined: tls.VersionTLS13
../caddytls/config.go:433:12: undefined: tls.VersionTLS13
2019/03/22 20:54:53 exit status 2
exit status 1
The command '/bin/sh -c VERSION=${version} PLUGINS=${plugins} /bin/sh /usr/bin/builder.sh' returned a non-zero code: 1
That's because you have an older cached version of builder.
Try docker rmi -f abiosoft/caddy:builder
and try again.
Thanks it works!!!
This is the command I ran:
Here is the output: