Update README.md

This commit is contained in:
Ahmet Alp Balkan 2018-10-22 10:03:38 -07:00 committed by GitHub
parent 73ebd4debb
commit 781b6df8a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,23 +2,25 @@
The Ad service provides advertisement based on context keys. If no context keys are provided then it returns random ads. The Ad service provides advertisement based on context keys. If no context keys are provided then it returns random ads.
## Local Build ## 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:
The Ad service uses gradlew to compile/install/distribute. Gradle wrapper is already part of the source code. To build Ad Service, run
``` ```
cd src/adservice; ./gradlew installDist ./gradlew installDist
``` ```
It will create executable script src/adservice/build/install/hipstershop/bin/AdService It will create executable script src/adservice/build/install/hipstershop/bin/AdService
### Upgrade gradle version ### Upgrading gradle version
If you need to upgrade the version of gradle then run If you need to upgrade the version of gradle then run
``` ```
cd src/adservice ; ./gradlew wrapper --gradle-version <new-version> ./gradlew wrapper --gradle-version <new-version>
``` ```
## Docker Build ## Building docker image
From repository root, run: From the repository root, run:
``` ```
docker build --file src/adservice/Dockerfile . docker build --file src/adservice/Dockerfile .