-
Notifications
You must be signed in to change notification settings - Fork 13
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 #163 from plunder-app/makefile_0_5
Update of Makefile for v0.5
- Loading branch information
Showing
3 changed files
with
37 additions
and
3 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 |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#!/bin/sh | ||
|
||
echo "Scooping up recent copy of code" | ||
|
||
tar -cf plunder.tar ../../cmd ../../pkg ../../main.go ../../Makefile ../../go.mod ../../go.sum | ||
|
||
docker build -t plunder:build . | ||
|
||
docker run -it --rm plunder:build /go/bin/plunder version | ||
|
||
echo "" | ||
echo "Remove the code copy rm plunder.tar" | ||
echo "Remove the local test docker container docker rmi plunder:build" |
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 @@ | ||
FROM golang:1.12.5 | ||
|
||
# Install the linter | ||
RUN go get -u golang.org/x/lint/golint | ||
|
||
RUN mkdir -p /go/src/github.com/plunder-app/plunder/dockerfile/build | ||
|
||
WORKDIR /go/src/github.com/plunder-app/plunder/dockerfile/build | ||
|
||
COPY plunder.tar . | ||
|
||
RUN tar -P -xvf plunder.tar | ||
|
||
WORKDIR /go/src/github.com/plunder-app/plunder | ||
|
||
RUN make | ||
|
||
#RUN /go/bin/plunder version |