Skip to content
Permalink
Browse files

Deploy with up

  • Loading branch information...
s32x committed Apr 6, 2019
1 parent 24d9968 commit 42133dc5625f1fbe40d3d106dced3c0617662e04
Showing with 40 additions and 17 deletions.
  1. +1 −2 .gitignore
  2. +13 −10 Makefile
  3. BIN db/asn.tar.gz
  4. BIN db/city.tar.gz
  5. +2 −2 go.mod
  6. +12 −3 go.sum
  7. +12 −0 up.json
@@ -1,3 +1,2 @@
vendor
bin
run.sh
bin
@@ -1,19 +1,22 @@
clean:
-rm -rf ./vendor ./db go.sum

init:
-rm -rf vendor
-rm -f go.mod
-rm -f go.sum
go clean
-rm -rf ./vendor go.mod go.sum
GO111MODULE=on go mod init

deps:
-rm -rf vendor
-rm -rf db
-rm -f go.sum
-rm -rf ./vendor go.sum
GO111MODULE=on go mod vendor

db:
-rm -rf ./db
mkdir db
wget -O ./db/city.tar.gz http://geolite.maxmind.com/download/geoip/database/GeoLite2-City.tar.gz
wget -O ./db/asn.tar.gz http://geolite.maxmind.com/download/geoip/database/GeoLite2-ASN.tar.gz

test:
go test ./...
install:
make deps
go install

deploy: deps db test
up
BIN +3.12 KB (100%) db/asn.tar.gz
Binary file not shown.
BIN -119 KB (100%) db/city.tar.gz
Binary file not shown.
4 go.mod
@@ -4,7 +4,7 @@ go 1.12

require (
github.com/labstack/echo/v4 v4.0.1-0.20190313005416-e3717be4beda
github.com/mmcloughlin/geohash v0.0.0-20181009053802-f7f2bcae3294
github.com/oschwald/maxminddb-golang v1.3.1-0.20190227002334-fc04c43d3c69
github.com/mmcloughlin/geohash v0.9.0
github.com/oschwald/maxminddb-golang v1.3.1-0.20190405235037-45a75c13cdc3
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6
)
15 go.sum
@@ -1,19 +1,28 @@
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumCAMpl/TFQ4/5kLM=
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/labstack/echo/v4 v4.0.1-0.20190313005416-e3717be4beda h1:jdIL1o6i2sCWMsnCrShsiuEW0vmMA4Lz8V+zJ0nPDD0=
github.com/labstack/echo/v4 v4.0.1-0.20190313005416-e3717be4beda/go.mod h1:tZv7nai5buKSg5h/8E6zz4LsD/Dqh9/91Mvs7Z5Zyno=
github.com/labstack/gommon v0.2.8 h1:JvRqmeZcfrHC5u6uVleB4NxxNbzx6gpbJiQknDbKQu0=
github.com/labstack/gommon v0.2.8/go.mod h1:/tj9csK2iPSBvn+3NLM9e52usepMtrd5ilFYA+wQNJ4=
github.com/mattn/go-colorable v0.0.9 h1:UVL0vNpWh04HeJXV0KLcaT7r06gOH2l4OW6ddYRUIY4=
github.com/mattn/go-colorable v0.0.9/go.mod h1:9vuHe8Xs5qXnSaW/c/ABM9alt+Vo+STaOChaDxuIBZU=
github.com/mattn/go-isatty v0.0.4 h1:bnP0vzxcAdeI1zdubAl5PjU6zsERjGZb7raWodagDYs=
github.com/mattn/go-isatty v0.0.4/go.mod h1:M+lRXTBqGeGNdLjl/ufCoiOlB5xdOkqRJdNxMWT7Zi4=
github.com/mmcloughlin/geohash v0.0.0-20181009053802-f7f2bcae3294/go.mod h1:oNZxQo5yWJh0eMQEP/8hwQuVx9Z9tjwFUqcTB1SmG0c=
github.com/oschwald/maxminddb-golang v1.3.1-0.20190227002334-fc04c43d3c69 h1:ACWBsRVn/fmhyKve4uNMxR8icpWdiGT9E0Nz298AGhI=
github.com/oschwald/maxminddb-golang v1.3.1-0.20190227002334-fc04c43d3c69/go.mod h1:3jhIUymTJ5VREKyIhWm66LJiQt04F0UCDdodShpjWsY=
github.com/mmcloughlin/geohash v0.9.0 h1:FihR004p/aE1Sju6gcVq5OLDqGcMnpBY+8moBqIsVOs=
github.com/mmcloughlin/geohash v0.9.0/go.mod h1:oNZxQo5yWJh0eMQEP/8hwQuVx9Z9tjwFUqcTB1SmG0c=
github.com/oschwald/maxminddb-golang v1.3.1-0.20190405235037-45a75c13cdc3 h1:QG92+JVvnZKL4YiuX0FnSD4nZWXAJfUL7Zfw57ZVmEM=
github.com/oschwald/maxminddb-golang v1.3.1-0.20190405235037-45a75c13cdc3/go.mod h1:3jhIUymTJ5VREKyIhWm66LJiQt04F0UCDdodShpjWsY=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/valyala/bytebufferpool v1.0.0 h1:GqA5TC/0021Y/b9FG4Oi9Mr3q7XYx6KllzawFIhcdPw=
github.com/valyala/bytebufferpool v1.0.0/go.mod h1:6bBcMArwyJ5K/AmCkWv1jt77kVWyCJ6HpOuEn7z0Csc=
github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4 h1:gKMu1Bf6QINDnvyZuTaACm9ofY+PRh+5vFz4oxBZeF8=
github.com/valyala/fasttemplate v0.0.0-20170224212429-dcecefd839c4/go.mod h1:50wTf68f99/Zt14pr046Tgt3Lp2vLyFZKzbFXTOabXw=
golang.org/x/crypto v0.0.0-20190130090550-b01c7a725664 h1:YbZJ76lQ1BqNhVe7dKTSB67wDrc2VPRR75IyGyyPDX8=
golang.org/x/crypto v0.0.0-20190130090550-b01c7a725664/go.mod h1:6SG95UA2DQfeDnfUPMdvaQW0Q7yPrPDi9nlGo2tz2b4=
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6 h1:bjcUS9ztw9kFmmIxJInhon/0Is3p+EHBKNgquIzo1OI=
golang.org/x/sync v0.0.0-20190227155943-e225da77a7e6/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc h1:WiYx1rIFmx8c0mXAFtv5D/mHyKe1+jmuP7PViuwqwuQ=
golang.org/x/sys v0.0.0-20190129075346-302c3dd5f1cc/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
12 up.json
@@ -0,0 +1,12 @@
{
"name": "ipdata",
"profile": "default",
"regions": [
"us-east-1"
],
"stages": {
"production": {
"domain": "ipdata.info"
}
}
}

0 comments on commit 42133dc

Please sign in to comment.
You can’t perform that action at this time.