File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 1
- ARG GOLANG_VERSION=1.17
1
+ ARG GOLANG_VERSION=1.19
2
2
ARG ALPINE_VERSION=3.15
3
3
4
4
# Use a builder to build caddy with the DNS plugin
@@ -11,11 +11,9 @@ WORKDIR /go/src/github.com/caddyserver/xcaddy/cmd/xcaddy
11
11
RUN apk add --no-cache git gcc build-base; \
12
12
go install github.com/caddyserver/xcaddy/cmd/xcaddy@latest;
13
13
14
- # this last with can probably be removed, it's temp due to an ambigous import!
15
14
RUN xcaddy build \
16
15
--output /go/src/github.com/caddyserver/xcaddy/cmd/caddy \
17
- --with github.com/caddy-dns/cloudflare \
18
- --with github.com/antlr/antlr4=github.com/antlr/antlr4/runtime/Go/
[email protected]
16
+ --with github.com/caddy-dns/cloudflare
19
17
20
18
# Final Image
21
19
FROM alpine:${ALPINE_VERSION}
Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ checkContainer() {
50
50
inspect=` docker inspect $id `
51
51
52
52
# get the hostname and config from our labels from the container!
53
- read hostname name network ports labels< <( echo $( echo ${inspect} | jq --raw-output ' .[0] | .Name as $name | .NetworkSettings as $network | .Config.ExposedPorts as $ports | .Config.Labels | . as $labels | to_entries[] | select(.key == "subway.hostname") | "\(.value) \($name) \($network) \($ports) \($labels)"' ) )
53
+ read hostname name network ports labels< <( echo $( echo ${inspect} | jq --raw-output ' .[0] | .Name as $name | .NetworkSettings as $network | .Config.ExposedPorts as $ports | .Config.Labels | . as $labels | to_entries[] | select(.key == "subway.hostname") | "\(.value) \($name) \($network) \($ports) \($labels)"' ) | sed -r ' s/\\"/\\\\"/g ' )
54
54
if [[ $hostname ]]
55
55
then
56
56
echo " $( date -u +' %Y-%m-%dT%H:%M:%SZ' ) SUBWAY Container ${name: 1} found with status ${action} and subway.hostname ${hostname} ..."
You can’t perform that action at this time.
0 commit comments