-
Notifications
You must be signed in to change notification settings - Fork 1
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 #11 from ushios/feature/gomod
Update go.mod
- Loading branch information
Showing
5 changed files
with
18 additions
and
7 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
version: '2' | ||
version: "2" | ||
jobs: | ||
build: | ||
working_directory: ~/receiver | ||
|
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,14 +1,15 @@ | ||
|
||
FROM golang:1.8-alpine | ||
FROM golang:1.12-alpine | ||
LABEL maintainer "UshioShugo<ushio.s@gmail.com>" | ||
|
||
|
||
ENV APP_PATH=${GOPATH}/src/github.com/ushios/sumoll | ||
ENV APP_PATH=/app | ||
|
||
COPY . ${APP_PATH} | ||
WORKDIR ${APP_PATH} | ||
|
||
RUN apk add --no-cache --virtual .goget \ | ||
git && \ | ||
go get -v ./... && \ | ||
go get -v && \ | ||
apk del .goget | ||
|
||
RUN apk add --no-cache gcc g++ |
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,8 @@ | ||
|
||
.PHONY: test build | ||
|
||
build: | ||
docker-compose build | ||
|
||
test: | ||
docker-compose run app go test -cover ./... |
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,10 +1,10 @@ | ||
version: '2' | ||
version: "2" | ||
services: | ||
app: | ||
build: | ||
context: . | ||
dockerfile: Dockerfile | ||
volumes: | ||
- .:/go/src/github.com/ushios/sumoll | ||
- .:/app | ||
environment: | ||
- SUMOLL_TEST_HTTP_SOURCE_URL=${SUMOLL_TEST_HTTP_SOURCE_URL} |
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 +1,3 @@ | ||
module github.com/ushios/sumoll | ||
|
||
go 1.12 |