microservices-demo/src/adservice
Jonas-Taha El Sesiy 23ad0169c2
Migrate to Gradle 6 (#281)
Update build.gradle to use plugin DSL instead of outdated buildscript
Update gradle wrapper to 6.3
Update jackson, opencensus, grpc & other dependencies to recent versions
Fix code warnings
Properly format source files using goJF task
Add default port to AdService
2020-03-28 00:16:31 -07:00
..
gradle/wrapper Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
src/main Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
.gitignore Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
build.gradle Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
Dockerfile Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
genproto.sh Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
gradlew Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
gradlew.bat Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
README.md Update container build instructions (#296) 2020-03-26 14:32:37 -07:00
settings.gradle Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00

Ad Service

The Ad service provides advertisement based on context keys. If no context keys are provided then it returns random ads.

Building locally

The Ad service uses gradlew to compile/install/distribute. Gradle wrapper is already part of the source code. To build Ad Service, run:

./gradlew installDist

It will create executable script src/adservice/build/install/hipstershop/bin/AdService

Upgrading gradle version

If you need to upgrade the version of gradle then run

./gradlew wrapper --gradle-version <new-version>

Building docker image

From src/adservice/, run:

docker build ./