diff --git a/Makefile b/Makefile deleted file mode 100644 index 930b698..0000000 --- a/Makefile +++ /dev/null @@ -1,49 +0,0 @@ -CONFIGURATION ?= Release -CONSOLE_FRAMEWORK ?= netcoreapp2.0 -DOTNETCORE ?= 1 -MAXMIND_BENCHMARK_DB = /project/MaxMind.GeoIP2.Benchmark/GeoLite2-City.mmdb - -define update_project - @docker run \ - -it \ - --rm \ - -v $$(pwd)/$(1):/project \ - geoip2-dotnet \ - dotnet outdated -u -endef - -benchmark: - @docker run \ - -it \ - --rm \ - -v $$(pwd)/$(1):/project \ - -e "DOTNETCORE=$(DOTNETCORE)" \ - -e "MAXMIND_BENCHMARK_DB=$(MAXMIND_BENCHMARK_DB)" \ - geoip2-dotnet \ - /bin/sh -c "dotnet run \ - -c $(CONFIGURATION) \ - -f $(CONSOLE_FRAMEWORK) \ - -p ./MaxMind.GeoIP2.Benchmark/MaxMind.GeoIP2.Benchmark.csproj" - -build-image: - docker build -t geoip2-dotnet . - -init: build-image - git submodule update --init --recursive - -test: - @docker run \ - -it \ - --rm \ - -v $$(pwd)/$(1):/project \ - -e "DOTNETCORE=$(DOTNETCORE)" \ - geoip2-dotnet \ - /bin/sh -c "dotnet restore ./MaxMind.GeoIP2.sln && dotnet test \ - -c $(CONFIGURATION) \ - -f $(CONSOLE_FRAMEWORK) \ - ./MaxMind.GeoIP2.sln" - -update_dependencies: - $(call update_project,MaxMind.GeoIP2) - $(call update_project,MaxMind.GeoIP2.Benchmark) - $(call update_project,MaxMind.GeoIP2.UnitTests) diff --git a/README.dev.md b/README.dev.md index b818459..04b06a4 100644 --- a/README.dev.md +++ b/README.dev.md @@ -15,23 +15,3 @@ NuGet, and make a GitHub release. 5. Update GitHub Release page for the release. 6. Verify the release on [NuGet](https://www.nuget.org/packages/MaxMind.GeoIP2/). - -## Using Docker - -A Dockerfile is included to build an image that can assist in updating dependencies, running benchmarks and running tests. - -A `Makefile` is also included to act as a task runner for the tasks mentioned above. Below are the targets and their descriptions. - -```Makefile -# Initialize the repo by installing git submodules and building the `geoip2-dotnet` Docker image -make init - -# Run benchmarks -make benchmark - -# Run tests -make test - -# Update dependencies -make update_dependencies -``` \ No newline at end of file