Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compile go binaries outside from containers
- Loading branch information
Andres
committed
Sep 4, 2018
1 parent
e1b1294
commit 0f605ee
Showing
9 changed files
with
14 additions
and
24 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
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 @@ | ||
apprepository-controller-static |
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,9 +1,7 @@ | ||
FROM quay.io/deis/go-dev:v1.8.2 as builder | ||
COPY . /go/src/github.com/kubeapps/kubeapps | ||
WORKDIR /go/src/github.com/kubeapps/kubeapps | ||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo ./cmd/apprepository-controller | ||
FROM alpine:3.6 as builder | ||
RUN apk --no-cache add ca-certificates | ||
|
||
FROM scratch | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /go/src/github.com/kubeapps/kubeapps/apprepository-controller /apprepository-controller | ||
COPY ./apprepository-controller-static /apprepository-controller | ||
CMD ["/apprepository-controller"] |
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 +1,2 @@ | ||
chart-repo-sync | ||
chart-repo-static |
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,7 @@ | ||
FROM quay.io/deis/go-dev:v1.8.2 as builder | ||
COPY . /go/src/github.com/kubeapps/kubeapps | ||
WORKDIR /go/src/github.com/kubeapps/kubeapps | ||
RUN dep ensure | ||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo ./cmd/chart-repo | ||
FROM alpine:3.6 as builder | ||
RUN apk --no-cache add ca-certificates | ||
|
||
FROM scratch | ||
COPY --from=builder /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ | ||
COPY --from=builder /go/src/github.com/kubeapps/kubeapps/chart-repo /chart-repo | ||
COPY ./chart-repo-static /chart-repo | ||
CMD ["/chart-repo"] |
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 @@ | ||
chartsvc-static |
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,9 +1,3 @@ | ||
FROM quay.io/deis/go-dev:v1.8.2 as builder | ||
COPY . /go/src/github.com/kubeapps/kubeapps | ||
WORKDIR /go/src/github.com/kubeapps/kubeapps | ||
RUN CGO_ENABLED=0 go build -a -installsuffix cgo ./cmd/chartsvc | ||
|
||
FROM scratch | ||
COPY --from=builder /go/src/github.com/kubeapps/kubeapps/chartsvc /chartsvc | ||
EXPOSE 8080 | ||
COPY ./chartsvc-static /chartsvc | ||
CMD ["/chartsvc"] |
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 @@ | ||
proxy-static | ||
tiller-proxy | ||
tiller-proxy-static |
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