-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1/feature] Implement the docker base
> current branch: master, issue link: #1 .docker/app/Dockerfile .docker/app/root/entrypoint.sh .docker/tevun/go-cli/Dockerfile .docker/tevun/go/Dockerfile
- Loading branch information
Showing
4 changed files
with
25 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
FROM tevun/go-cli | ||
|
||
COPY root / | ||
|
||
WORKDIR /go/client-go/src | ||
|
||
RUN chmod +x /entrypoint.sh | ||
|
||
# ENTRYPOINT ["/entrypoint.sh"] | ||
# CMD ["dlv", "debug", "--headless", "--listen=:2345", "--api-version=2", "--accept-multiclient"] | ||
|
||
# CMD ["go", "run", "main.go"] |
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,4 @@ | ||
#!/usr/bin/env sh | ||
|
||
cd /go/client-go/src | ||
exec "$@" |
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,5 @@ | ||
# docker build -t tevun/go-cli . | ||
FROM tevun/go | ||
|
||
RUN go get github.com/derekparker/delve/cmd/dlv | ||
RUN go get github.com/rivo/tview |
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,4 @@ | ||
# docker build -t tevun/go . | ||
FROM golang:1.12.5-alpine3.9 | ||
|
||
RUN apk add bash git openssh |