Skip to content

Commit 26a4f45

Browse files
committed
Add debug script and docker file
1 parent 00fba33 commit 26a4f45

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

Dockerfile-code

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
FROM golang:1.21.4-alpine
2+
ENV GO111MODULE=on
3+
4+
RUN apk add --no-cache git
5+
COPY . /workspace
6+
WORKDIR /workspace
7+
RUN go mod download
8+
ENTRYPOINT ["/bin/sleep", "43200"]

alidns/client.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ func (c *Client) getHostedZone(zone string) (string, error) {
2929
request.SearchMode = "EXACT"
3030

3131
response, err := c.dnsc.DescribeDomains(request)
32+
fmt.Println(response)
3233
if err != nil {
3334
return "", err
3435
}

go-run.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#!/bin/sh
2+
3+
go run main.go \
4+
--tls-cert-file=/tls/tls.crt \
5+
--tls-private-key-file=/tls/tls.key

0 commit comments

Comments
 (0)