Skip to content

Commit

Permalink
Move to new repo
Browse files Browse the repository at this point in the history
  • Loading branch information
howardjohn committed Mar 19, 2021
1 parent 63183e0 commit c087251
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 1 deletion.
18 changes: 18 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
FROM golang:1.16.0-alpine AS base
WORKDIR /src
ENV CGO_ENABLED=0
COPY go.* .
RUN --mount=type=cache,target=/go/pkg/mod \
go mod download

FROM base AS build
RUN --mount=target=. \
--mount=type=cache,target=/go/pkg/mod \
--mount=type=cache,target=/root/.cache/go-build \
go build -o /out/istio-ingress-migrate .

FROM alpine

COPY --from=build /out/istio-ingress-migrate /usr/bin/istio-ingress-migrate

ENTRYPOINT ["/usr/bin/istio-ingress-migrate"]
24 changes: 24 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
.ONESHELL:
SHELL := /bin/bash
GOBIN ?= $(GOPATH)/bin
MODULE = github.com/istio-ecosystem/istio-ingress-migrate
HUB ?= gcr.io/istio-release
VERSION ?= 0.0.1
export GO111MODULE ?= on

.PHONY: format
format: $(GOBIN)/goimports
@go mod tidy
@goimports -l -w -local $(MODULE) .

.PHONY: install
install:
@go install

.PHONY: docker
docker:
docker buildx build . -t ${HUB}/istio-ingress-migrate -t ${HUB}/istio-ingress-migrate:${VERSION} --load

.PHONY: push
push:
docker buildx build . -t ${HUB}/istio-ingress-migrate -t ${HUB}/istio-ingress-migrate:${VERSION} --push
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/howardjohn/istio-ingress-migrate
module github.com/istio-ecosystem/istio-ingress-migrate

go 1.16

Expand Down

0 comments on commit c087251

Please sign in to comment.