Skip to content

Commit

Permalink
Merge pull request #11 from ushios/feature/gomod
Browse files Browse the repository at this point in the history
Update go.mod
  • Loading branch information
ushios authored Jul 3, 2019
2 parents d90b541 + 5b403b2 commit f7a2384
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: '2'
version: "2"
jobs:
build:
working_directory: ~/receiver
Expand Down
9 changes: 5 additions & 4 deletions Dockerfile
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++
8 changes: 8 additions & 0 deletions Makefile
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 ./...
4 changes: 2 additions & 2 deletions docker-compose.yml
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}
2 changes: 2 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
module github.com/ushios/sumoll

go 1.12

0 comments on commit f7a2384

Please sign in to comment.