-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
v0.5.1: Rebase on a helm+kubectl Docker image. Document docker example.
- Loading branch information
Joshua M. Dotson
committed
Jun 7, 2018
1 parent
02b9a01
commit 0131ee3
Showing
5 changed files
with
29 additions
and
17 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,12 +1,6 @@ | ||
export AWS_PROFILE=myprofile | ||
export PROJECT=$(basename "${PWD}") | ||
|
||
export DOCKER_REGISTRY="myregistry.amazonaws.com"" | ||
export DOCKER_NAMESPACE="arch" | ||
export DOCKER_REPOSITORY="${DOCKER_REGISTRY}/${DOCKER_NAMESPACE}/${PROJECT}" | ||
export DOCKER_REPOSITORY=ciscosso/mh | ||
export DOCKER_TAG=$(grep 'versionNumber = ' cmd/root.go | cut -d\" -f2) | ||
|
||
export DOCKER_IMAGE="${DOCKER_REPOSITORY}:${DOCKER_TAG}" | ||
eval `aws ecr get-login --no-include-email` |
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,12 +1,11 @@ | ||
FROM golang:latest | ||
FROM golang:latest AS golang | ||
WORKDIR /go/src/github.com/cisco-sso/mh | ||
RUN go get -u github.com/golang/dep/cmd/dep | ||
COPY . . | ||
RUN dep ensure \ | ||
&& CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o mh . | ||
|
||
FROM alpine:latest | ||
RUN apk --no-cache add ca-certificates | ||
FROM dtzar/helm-kubectl:2.8.0 | ||
WORKDIR /root/ | ||
COPY --from=0 /go/src/github.com/cisco-sso/mh/mh . | ||
COPY --from=golang /go/src/github.com/cisco-sso/mh/mh . | ||
ENTRYPOINT ["./mh"] |
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