-
Notifications
You must be signed in to change notification settings - Fork 53
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 #75 from sagikazarmark/updates
Various updates that bring the module up to modern standards
- Loading branch information
Showing
18 changed files
with
270 additions
and
126 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 |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
go: ["1.15", "1.16"] | ||
eureka: ["1.1.147", "1.3.1"] | ||
env: | ||
GOFLAGS: -mod=readonly | ||
|
||
steps: | ||
- name: Set up Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{ matrix.go }} | ||
|
||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Launch Eureka | ||
env: | ||
EUREKA_VERSION: ${{ matrix.eureka }} | ||
run: | | ||
cp docker-compose.override.yml.dist docker-compose.override.yml | ||
docker-compose up -d | ||
echo "Waiting for Eureka to come up" | ||
sleep 120 | ||
- name: Run tests | ||
run: go test -v ./... |
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,6 @@ | ||
*.test | ||
eureka | ||
.vagrant/ | ||
.idea/ | ||
.idea/ | ||
|
||
/docker-compose.override.yml |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2013 Hudl <@Hudl> | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to | ||
deal in the Software without restriction, including without limitation the | ||
rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | ||
sell copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in | ||
all copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS | ||
IN THE SOFTWARE. |
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
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,10 @@ | ||
version: "3.8" | ||
|
||
services: | ||
eureka1: | ||
ports: | ||
- "127.0.0.1:8081:8080" | ||
|
||
eureka2: | ||
ports: | ||
- "127.0.0.1:8082:8080" |
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,16 @@ | ||
version: "3.8" | ||
|
||
services: | ||
eureka1: | ||
build: | ||
dockerfile: Dockerfile-v${EUREKA_VERSION:-1.1.147} | ||
context: docker/ | ||
volumes: | ||
- $PWD/docker/eureka-client-test-docker.properties:/tomcat/webapps/eureka/WEB-INF/classes/eureka-client-test.properties | ||
|
||
eureka2: | ||
build: | ||
dockerfile: Dockerfile-v${EUREKA_VERSION:-1.1.147} | ||
context: docker/ | ||
volumes: | ||
- $PWD/docker/eureka-client-test-docker.properties:/tomcat/webapps/eureka/WEB-INF/classes/eureka-client-test.properties |
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,9 +1,9 @@ | ||
FROM golang:1.6 | ||
|
||
ENV GOROOT=/usr/local/go | ||
FROM golang:1.16 | ||
|
||
RUN go get github.com/tools/godep | ||
RUN go get github.com/hudl/fargo | ||
|
||
WORKDIR /go/src/github.com/hudl/fargo/ | ||
RUN godep restore | ||
RUN git clone https://github.com/hudl/fargo.git /usr/local/src/fargo | ||
|
||
WORKDIR /usr/local/src/fargo | ||
|
||
RUN go mod download |
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,2 @@ | ||
eureka.serviceUrl.default=http://eureka1:8080/eureka/v2/ | ||
eureka.vipAddress=eureka |
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,16 @@ | ||
module github.com/hudl/fargo | ||
|
||
go 1.16 | ||
|
||
require ( | ||
github.com/cenkalti/backoff/v4 v4.1.1 | ||
github.com/clbanning/mxj v1.8.4 | ||
github.com/franela/goblin v0.0.0-20210519012713-85d372ac71e2 // indirect | ||
github.com/franela/goreq v0.0.0-20171204163338-bcd34c9993f8 | ||
github.com/miekg/dns v1.1.43 | ||
github.com/onsi/gomega v1.13.0 // indirect | ||
github.com/op/go-logging v0.0.0-20160315200505-970db520ece7 | ||
github.com/smartystreets/goconvey v1.6.4 | ||
gopkg.in/gcfg.v1 v1.2.3 | ||
gopkg.in/warnings.v0 v0.1.2 // indirect | ||
) |
Oops, something went wrong.