microservices-demo/src/adservice
Daniel Sanche c4d86703c5
Add licenses (#367)
2020-07-15 11:56:37 -07:00
..
gradle/wrapper Migrate to Gradle 6 (#281) 2020-03-28 00:16:31 -07:00
src/main Add licenses (#367) 2020-07-15 11:56:37 -07:00
.gitignore Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
Dockerfile Add licenses (#367) 2020-07-15 11:56:37 -07:00
README.md Update container build instructions (#296) 2020-03-26 14:32:37 -07:00
build.gradle 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
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 src/adservice/, run:

docker build ./