Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

create dc.Dockerfile, dc.Makefile and tag v1.5.0-dc for dns-resolution-check #7

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions cmd/dns-resolution-check/dc.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
ARG GO_VERSION=1.17
FROM docker-hub-remote.dr.corp.adobe.com/golang:${GO_VERSION}-alpine AS builder
WORKDIR /build
COPY go.* /build/
RUN go mod download

COPY . /build
WORKDIR /build/cmd/dns-resolution-check
ENV CGO_ENABLED=0
RUN go build -v
FROM scratch
COPY --from=builder /etc/passwd /etc/passwd
USER user
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
COPY --from=builder /build/cmd/dns-resolution-check/dns-resolution-check /app/dns-resolution-check
ENTRYPOINT ["/app/dns-resolution-check"]
13 changes: 13 additions & 0 deletions cmd/dns-resolution-check/dc.Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
.PHONY: build.docker

BINARY ?= dns-resolution-check
VERSION ?= $(shell git describe --tags --always)
IMAGE ?= docker-dc-micro-release.dr.corp.adobe.com/kuberhealthy/$(BINARY)
TAG ?= ${VERSION}
DOCKERFILE ?= dc.Dockerfile
GIT_ROOT ?= $(shell git rev-parse --show-toplevel)

default: build.docker

build.docker:
docker build -t ${IMAGE}:${TAG} -f $(DOCKERFILE) --build-arg VERSION=$(VERSION) $(GIT_ROOT)
27 changes: 22 additions & 5 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
module github.com/kuberhealthy/kuberhealthy/v2

require (
cloud.google.com/go v0.96.0 // indirect
github.com/Azure/go-autorest/autorest v0.11.21 // indirect
github.com/Azure/go-autorest/autorest/adal v0.9.16 // indirect
github.com/Pallinder/go-randomdata v1.1.0
github.com/armon/consul-api v0.0.0-20180202201655-eb2c6b5be1b6 // indirect
github.com/aws/aws-sdk-go v1.25.24
Expand All @@ -14,36 +17,50 @@ require (
github.com/docker/docker v0.7.3-0.20190327010347-be7ac8be2ae0 // indirect
github.com/docker/spdystream v0.0.0-20160310174837-449fdfce4d96 // indirect
github.com/fatih/color v1.12.0 // indirect
github.com/form3tech-oss/jwt-go v3.2.5+incompatible // indirect
github.com/ghodss/yaml v1.0.0
github.com/go-ini/ini v1.49.0 // indirect
github.com/go-logr/logr v1.1.0 // indirect
github.com/go-openapi/validate v0.19.5 // indirect
github.com/gobuffalo/flect v0.2.3 // indirect
github.com/golang-jwt/jwt/v4 v4.1.0 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/uuid v1.1.2
github.com/google/gofuzz v1.2.0 // indirect
github.com/google/uuid v1.3.0
github.com/gophercloud/gophercloud v0.1.0 // indirect
github.com/gorhill/cronexpr v0.0.0-20180427100037-88b0669f7d75
github.com/imdario/mergo v0.3.12 // indirect
github.com/influxdata/influxdb1-client v0.0.0-20190402204710-8ff2fc3824fc
github.com/integrii/flaggy v1.2.2
github.com/json-iterator/go v1.1.12 // indirect
github.com/onsi/gomega v1.14.0 // indirect
github.com/pkg/errors v0.9.1
github.com/pkg/sftp v1.10.1 // indirect
github.com/sirupsen/logrus v1.7.0
github.com/sirupsen/logrus v1.8.1
github.com/smartystreets/goconvey v1.6.4 // indirect
github.com/spf13/cobra v1.2.1 // indirect
github.com/ugorji/go v1.1.4 // indirect
github.com/ugorji/go/codec v0.0.0-20181204163529-d75b2dcb6bc8 // indirect
github.com/xordataexchange/crypt v0.0.3-0.20170626215501-b2862e3d0a77 // indirect
golang.org/x/crypto v0.0.0-20210921155107-089bfa567519 // indirect
golang.org/x/net v0.0.0-20210929193557-e81a3d93ecf6 // indirect
golang.org/x/sys v0.0.0-20210927094055-39ccf1dd6fa6 // indirect
golang.org/x/term v0.0.0-20210927222741-03fcf44c2211 // indirect
golang.org/x/text v0.3.7 // indirect
golang.org/x/tools v0.1.5 // indirect
gopkg.in/yaml.v2 v2.4.0
gotest.tools v2.2.0+incompatible // indirect
k8s.io/api v0.21.3
k8s.io/api v0.22.2
k8s.io/apiextensions-apiserver v0.21.3 // indirect
k8s.io/apimachinery v0.21.3
k8s.io/client-go v0.21.3
k8s.io/apimachinery v0.22.2
k8s.io/client-go v0.22.2
k8s.io/klog v1.0.0 // indirect
k8s.io/klog/v2 v2.20.0 // indirect
k8s.io/kops v1.11.0
k8s.io/utils v0.0.0-20210820185131-d34e5cb4466e // indirect
sigs.k8s.io/controller-tools v0.6.2 // indirect
sigs.k8s.io/structured-merge-diff/v3 v3.0.0 // indirect
sigs.k8s.io/yaml v1.3.0 // indirect
)

go 1.15
Loading