-
Notifications
You must be signed in to change notification settings - Fork 558
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[configmap] feat: add configmap document and code.
- Loading branch information
1 parent
0fb4f74
commit 7161f28
Showing
7 changed files
with
128 additions
and
241 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 |
---|---|---|
@@ -1,5 +1,16 @@ | ||
FROM ruby:2.6.1-alpine3.9 | ||
# Dockerfile | ||
FROM golang:1.16-buster AS builder | ||
RUN mkdir /src | ||
ADD . /src | ||
WORKDIR /src | ||
|
||
RUN apk add curl && gem install sinatra | ||
COPY app.rb . | ||
ENTRYPOINT ["ruby", "app.rb"] | ||
RUN go env -w GO111MODULE=auto | ||
RUN go build -o main . | ||
|
||
FROM gcr.io/distroless/base-debian10 | ||
|
||
WORKDIR / | ||
|
||
COPY --from=builder /src/main /main | ||
EXPOSE 3000 | ||
ENTRYPOINT ["/main"] |
This file was deleted.
Oops, something went wrong.
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,6 @@ | ||
apiVersion: v1 | ||
kind: ConfigMap | ||
metadata: | ||
name: hellok8s-config | ||
data: | ||
DB_URL: "http://DB_ADDRESS_TEST" |
Oops, something went wrong.