Skip to content

Commit

Permalink
[#1/feature] Implement the docker base
Browse files Browse the repository at this point in the history
> 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
wilcorrea committed May 25, 2019
1 parent 0978447 commit 209d79e
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .docker/app/Dockerfile
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"]
4 changes: 4 additions & 0 deletions .docker/app/root/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh

cd /go/client-go/src
exec "$@"
5 changes: 5 additions & 0 deletions .docker/tevun/go-cli/Dockerfile
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
4 changes: 4 additions & 0 deletions .docker/tevun/go/Dockerfile
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

0 comments on commit 209d79e

Please sign in to comment.