Update README.md
This commit is contained in:
parent
73ebd4debb
commit
781b6df8a0
1 changed files with 9 additions and 7 deletions
|
@ -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 .
|
||||||
|
|
Loading…
Reference in a new issue