microservices-demo/src/adservice
Yoshi Yamaguchi 1c057fcbd8 aligning function name and log message to the official product name (#229)
* 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
33a1e118e1/json_formatter.go (L40-L49)

Effected services are frontend, productcatalogservice, checkoutservice,
and shippinservice.

Also change target container registry and locust scenario for testing.

* revert kubernetes manifests to point to the original container registry URLs

* revert skaffold.yaml to point to the original registry

* loadgenerator: revert locust settings

* align all function names and messages to the official product name "Stackdriver"
2019-06-13 00:46:33 -07:00
..
gradle/wrapper Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
src/main aligning function name and log message to the official product name (#229) 2019-06-13 00:46:33 -07:00
.gitignore Initial commit for Ads Service. (#21) 2018-08-22 17:02:46 -07:00
build.gradle Add Stackdriver Profiler Java agent to adservice (#210) 2019-05-08 19:31:33 -07:00
Dockerfile 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
README.md Update README.md 2018-10-22 10:03:38 -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 the repository root, run:

docker build --file src/adservice/Dockerfile .