-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
UPDATE: Helm configurations and error handling (#48)
* add namespaces for helm chart * add better error handling * add DOCKER_CONFIG env
- Loading branch information
Showing
21 changed files
with
163 additions
and
83 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,32 +1,39 @@ | ||
FROM golang:1.18 AS starlight-proxy-build | ||
######################################################################### | ||
# starlight-proxy | ||
######################################################################### | ||
FROM golang:1.20 AS starlight-proxy-build | ||
|
||
WORKDIR /go/src/app | ||
COPY . . | ||
|
||
ENV GO111MODULE=on | ||
ENV PRODUCTION=true | ||
|
||
RUN make change-version-number set-production starlight-proxy-for-alpine | ||
|
||
#CMD ["/go/src/app/out/starlight-proxy"] | ||
######################################################################### | ||
FROM alpine:3.12 AS starlight-proxy | ||
|
||
COPY --from=starlight-proxy-build /go/src/app/out/ /opt/ | ||
WORKDIR /opt | ||
EXPOSE 8090 | ||
CMD ["/opt/starlight-proxy"] | ||
|
||
FROM golang:1.18 AS starlight-cli-build | ||
######################################################################### | ||
# ctr-starlight | ||
######################################################################### | ||
FROM golang:1.20 AS starlight-cli-build | ||
|
||
WORKDIR /go/src/app | ||
COPY . . | ||
|
||
ENV GO111MODULE=on | ||
ENV PRODUCTION=true | ||
|
||
RUN make change-version-number set-production ctr-starlight-for-alpine | ||
|
||
######################################################################### | ||
FROM alpine:3.12 AS starlight-cli | ||
|
||
COPY --from=starlight-cli-build /go/src/app/out/ /opt/ | ||
WORKDIR /opt | ||
EXPOSE 8090 | ||
CMD ["/opt/ctr-starlight"] | ||
CMD ["/opt/ctr-starlight"] |
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
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
Oops, something went wrong.