Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix dropped events #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 2 additions & 12 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,18 @@
version: 2

defaults: &defaults
working_directory: /go/src/github.com/mercari/grpc-http-proxy
working_directory: /project

golang: &golang
<<: *defaults
docker:
- image: golang:1.11-stretch
- image: golang:1.13-stretch

jobs:
test:
<<: *golang
steps:
- checkout
- run:
name: Install dependencies and vendor
command: |
go get -u github.com/golang/dep/cmd/dep
make dep
- run:
name: Run test
command: |
Expand All @@ -32,11 +27,6 @@ jobs:
<<: *golang
steps:
- checkout
- run:
name: Install dependencies and vendor
command: |
go get -u github.com/golang/dep/cmd/dep
make dep
- run:
name: Run lint
command: |
Expand Down
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/.git
9 changes: 4 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,20 +1,19 @@
FROM golang:1.11 AS build-env
FROM golang:1.13 AS build-env

ARG VERSION

ENV GO111MODULE=on

WORKDIR /go/src/github.com/mercari/grpc-http-proxy

ADD . /go/src/github.com/mercari/grpc-http-proxy

RUN go get github.com/golang/dep/cmd/dep

RUN dep ensure -v
RUN CGO_ENABLED=0 GOOS=linux go install -v \
-ldflags="-w -s" \
-ldflags "-X main.version=${VERSION}" \
github.com/mercari/grpc-http-proxy/cmd/proxy

FROM alpine:latest
FROM alpine:3.10.2

COPY --from=build-env /go/bin/proxy /proxy
RUN chmod a+x /proxy
Expand Down
Loading