-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
78 additions
and
166 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
FROM alpine:3.6 AS builder | ||
|
||
ARG GOLANG_VERSION=1.8.4-r0 | ||
|
||
RUN apk update | ||
RUN apk add go=${GOLANG_VERSION} go-tools=${GOLANG_VERSION} git musl-dev | ||
RUN go version | ||
|
||
ENV GOPATH=/go | ||
ENV PATH=${PATH}:/go/bin | ||
ENV CGO_ENABLED=0 | ||
|
||
RUN go get -v github.com/tools/godep | ||
# RUN go get -u github.com/golang/lint/golint | ||
RUN go get github.com/ahmetb/govvv | ||
|
||
RUN mkdir -p /go/src/github.com/p1c2u/dnsdock | ||
|
||
WORKDIR /go/src/github.com/p1c2u/dnsdock | ||
|
||
RUN git clone https://github.com/p1c2u/dnsdock /go/src/github.com/p1c2u/dnsdock | ||
# RUN git checkout {{$GIT_COMMIT}} | ||
|
||
RUN mkdir /tmp/output | ||
|
||
WORKDIR /go/src/github.com/p1c2u/dnsdock | ||
|
||
ENV GIT_SSL_NO_VERIFY=true | ||
|
||
RUN godep restore | ||
|
||
ENV GOARCH=arm64 | ||
|
||
WORKDIR /go/src/github.com/p1c2u/dnsdock/src | ||
|
||
RUN govvv build -o /tmp/output/dnsdock | ||
|
||
FROM alpine:3.18.2 | ||
|
||
COPY --from=builder /tmp/output/dnsdock /bin/dnsdock | ||
|
||
ENTRYPOINT ["dnsdock"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
build: | ||
docker build -t dnsdock:latest . | ||
|
||
build-test: | ||
docker build -t dnsdock:test . --progress=plain --no-cache |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,9 @@ | ||
# /var/run/docker.sock does not seem to be available for fig | ||
# for this reason we violate LFHS and add the socket directly on /run | ||
dnsdock: | ||
image: conz27/dnsdock | ||
container_name: dnsdock | ||
command: -nameserver 192.168.0.1:53 -nameserver 8.8.8.8:53 | ||
volumes: | ||
- /var/run/docker.sock:/run/docker.sock | ||
ports: | ||
- 172.17.0.0:53:53/udp | ||
services: | ||
dnsdock: | ||
image: p1c2u/dnsdock | ||
container_name: dnsdock | ||
command: -nameserver 192.168.0.1:53 -nameserver 8.8.8.8:53 | ||
volumes: | ||
- /var/run/docker.sock:/run/docker.sock | ||
ports: | ||
- 172.17.0.0:53:53/udp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters