-
Notifications
You must be signed in to change notification settings - Fork 33
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #626 from ohsu-comp-bio/kube
Kubernetes Backend; Go Module Support
- Loading branch information
Showing
49 changed files
with
2,525 additions
and
1,431 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 |
---|---|---|
|
@@ -13,5 +13,4 @@ Dockerfile* | |
build | ||
website | ||
docs | ||
deployments | ||
storage/_test_download |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# build stage | ||
FROM golang:1.13.8-alpine AS build-env | ||
RUN apk add make git bash build-base | ||
ENV GOPATH=/go | ||
ENV PATH="/go/bin:${PATH}" | ||
ADD ./ /go/src/github.com/ohsu-comp-bio/funnel | ||
RUN cd /go/src/github.com/ohsu-comp-bio/funnel && make build | ||
|
||
# final stage | ||
FROM docker:stable-dind | ||
WORKDIR /opt/funnel | ||
VOLUME /opt/funnel/funnel-work-dir | ||
EXPOSE 8000 9090 | ||
ENV PATH="/app:${PATH}" | ||
COPY --from=build-env /go/src/github.com/ohsu-comp-bio/funnel/funnel /app/ | ||
ADD ./deployments/kubernetes/dind/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
ENTRYPOINT ["entrypoint.sh"] |
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,18 @@ | ||
# build stage | ||
FROM golang:1.13.8-alpine AS build-env | ||
RUN apk add make git bash build-base | ||
ENV GOPATH=/go | ||
ENV PATH="/go/bin:${PATH}" | ||
ADD ./ /go/src/github.com/ohsu-comp-bio/funnel | ||
RUN cd /go/src/github.com/ohsu-comp-bio/funnel && make build | ||
|
||
# final stage | ||
FROM docker:stable-dind-rootless | ||
WORKDIR /opt/funnel | ||
VOLUME /opt/funnel/funnel-work-dir | ||
EXPOSE 8000 9090 | ||
ENV PATH="/app:${PATH}" | ||
COPY --from=build-env /go/src/github.com/ohsu-comp-bio/funnel/funnel /app/ | ||
ADD ./deployments/kubernetes/dind-rootless/entrypoint.sh /usr/local/bin/entrypoint.sh | ||
|
||
ENTRYPOINT ["entrypoint.sh"] |
Oops, something went wrong.