-
Notifications
You must be signed in to change notification settings - Fork 1
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
1 parent
c798ffb
commit fecd718
Showing
5 changed files
with
33 additions
and
11 deletions.
There are no files selected for viewing
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,2 +1,3 @@ | ||
.git | ||
vendor/ | ||
cmd/k8s-copier/debug |
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,15 +1,7 @@ | ||
.DS_Store | ||
.idea | ||
/acmesolver | ||
/controller | ||
/ingress-shim | ||
/hack/build/dockerfiles/cert-manager-*_*_* | ||
.vscode | ||
.venv | ||
bazel-* | ||
/.settings/ | ||
/.project | ||
vendor/ | ||
debug | ||
k8s-copier | ||
|
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,15 @@ | ||
{ | ||
// Use IntelliSense to learn about possible attributes. | ||
// Hover to view descriptions of existing attributes. | ||
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 | ||
"version": "0.2.0", | ||
"configurations": [ | ||
{ | ||
"name": "Launch file", | ||
"type": "go", | ||
"request": "launch", | ||
"mode": "debug", | ||
"program": "${workspaceFolder}/cmd/k8s-copier/main.go" | ||
}, | ||
] | ||
} |
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,11 +1,24 @@ | ||
# build stage | ||
FROM golang:alpine AS build-env | ||
RUN apk add git gcc | ||
ADD . /src | ||
RUN cd /src && go build -o k8s-copier | ||
|
||
WORKDIR $GOPATH/src/github.com/michaelfig/k8s-copier | ||
COPY . . | ||
|
||
# Download all the dependencies | ||
RUN GO111MODULE=on go mod vendor | ||
|
||
# Install the binaries | ||
RUN go install -v ./cmd/k8s-copier | ||
|
||
WORKDIR /app | ||
RUN cp $GOPATH/bin/k8s-copier /app/ | ||
|
||
# final stage | ||
FROM alpine | ||
|
||
LABEL maintainer="Michael FIG <[email protected]>" | ||
|
||
WORKDIR /app | ||
COPY --from=build-env /src/k8s-copier /app/ | ||
COPY --from=build-env /app/k8s-copier /app/ | ||
CMD ./k8s-copier |
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 @@ | ||
debug |