1c057fcbd8
* log: change log format to JSON payload for better log in Stackdriver
change the log format in Go written service from text payload to
JSON payload using 3rd party logging library (logrus).
https://cloud.google.com/logging/docs/structured-logging
|
||
---|---|---|
.. | ||
gradle/wrapper | ||
src/main | ||
.gitignore | ||
build.gradle | ||
Dockerfile | ||
genproto.sh | ||
gradlew | ||
gradlew.bat | ||
README.md | ||
settings.gradle |
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 .