-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use just and build release on ci (#5)
- Loading branch information
1 parent
c3c2270
commit b31c18c
Showing
5 changed files
with
37 additions
and
31 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
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
File renamed without changes.
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,28 @@ | ||
BASE_URL:="https://cdn.jsdelivr.net/npm/@ip-location-db/geo-whois-asn-country" | ||
IP4_FILE:="geo-whois-asn-country-ipv4-num.csv" | ||
IP6_FILE:="geo-whois-asn-country-ipv6-num.csv" | ||
|
||
download: | ||
curl "{{BASE_URL}}/{{IP4_FILE}}" > ip2country-service/{{IP4_FILE}} | ||
curl "{{BASE_URL}}/{{IP6_FILE}}" > ip2country-service/{{IP6_FILE}} | ||
cp ip2country-service/{{IP4_FILE}} ip2country-grpc/{{IP4_FILE}} | ||
cp ip2country-service/{{IP6_FILE}} ip2country-grpc/{{IP6_FILE}} | ||
|
||
docker-local: | ||
docker build -t extrawurst/ip2country:latest -f Dockerfile.local . | ||
|
||
docker-local-grpc: | ||
docker build -t extrawurst/ip2country-grpc:latest -f Dockerfile.grpc.local . | ||
|
||
docker-run: | ||
docker run -it -p 5000:5000 extrawurst/ip2country:latest | ||
|
||
test: | ||
# run this once the container runs locally (see above) | ||
xh 0.0.0.0:5000/172.217.16.78 | ||
|
||
build: | ||
cargo build -p ip2country-service --release | ||
|
||
check: | ||
cargo clippy --workspace |