microservices-demo/src/adservice
Megan O'Keefe 90f9287f3a
Adds option to disable Stackdriver Export (#293)
2020-02-20 15:26:44 -05:00
..
gradle/wrapper Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
src/main Adds option to disable Stackdriver Export (#293) 2020-02-20 15:26:44 -05:00
.gitignore Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
Dockerfile Add Stackdriver Profiler Java agent to adservice (#210) 2019-05-08 19:31:33 -07:00
README.md Update README.md 2018-10-22 10:03:38 -07:00
build.gradle Add Stackdriver Profiler Java agent to adservice (#210) 2019-05-08 19:31:33 -07:00
genproto.sh Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
gradlew Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
gradlew.bat Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
settings.gradle Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00

README.md

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 the repository root, run:

docker build --file src/adservice/Dockerfile .