mirror of
https://github.com/OpenLiberty/liberty-bikes.git
synced 2025-01-18 10:23:58 +08:00
Make singleParty mode enabled by default
This commit is contained in:
parent
d100ed9eb8
commit
fd0deadb4d
13
README.md
13
README.md
@ -14,11 +14,6 @@ Builds all microservice applications and deploys them to locally running liberty
|
||||
./gradlew start frontend:open
|
||||
```
|
||||
|
||||
For a local setting, use single-party mode:
|
||||
```
|
||||
./gradlew start frontend:open -DsingleParty=true
|
||||
```
|
||||
|
||||
Any code changes that are made in an eclipse environment with auto-build enabled will automatically publish content to the loose application, meaning no server restarts should be required between code changes.
|
||||
|
||||
To stop all liberty servers, issue the command:
|
||||
@ -43,12 +38,6 @@ To stop and remove the containers, use:
|
||||
./gradlew dockerStop
|
||||
```
|
||||
|
||||
To use single-party mode, set the variable before running `dockerStart`
|
||||
|
||||
```
|
||||
export singleParty=true
|
||||
```
|
||||
|
||||
# Technologies used
|
||||
|
||||
- Java EE 8
|
||||
@ -63,7 +52,7 @@ export singleParty=true
|
||||
- JWT (auth-service, game-service, player-service)
|
||||
- [Rest Client](#microprofile-rest-client) (game-service)
|
||||
- [OpenAPI](#microprofile-openapi) (auth-service, game-service, player-service)
|
||||
- Metrics (auth-service, game-service, player-service, frontend)
|
||||
- [Metrics](#monitoring) (auth-service, game-service, player-service, frontend)
|
||||
- Angular 7 (frontend)
|
||||
- Prometheus for metric collection
|
||||
- Grafana for metric visualization
|
||||
|
@ -20,7 +20,6 @@ services:
|
||||
- "8080:8080"
|
||||
environment:
|
||||
- org_libertybikes_restclient_PlayerService_mp_rest_url=http://player:8081
|
||||
- singleParty
|
||||
player:
|
||||
build: player-service
|
||||
image: libertybikes-player
|
||||
|
@ -16,7 +16,7 @@ liberty {
|
||||
bootstrapProperties = ['httpPort': httpPort, 'httpsPort': httpsPort]
|
||||
configDirectory = file('src/main/liberty/config')
|
||||
jvmOptions = ['-Dorg.libertybikes.restclient.PlayerService/mp-rest/url=http://localhost:8081/',
|
||||
'-DsingleParty=' + System.getProperty('singleParty', 'false')]
|
||||
'-DsingleParty=' + System.getProperty('singleParty', 'true')]
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -40,7 +40,7 @@ public class PartyService {
|
||||
private final Map<String, Party> allParties = new ConcurrentHashMap<>();
|
||||
|
||||
@Inject
|
||||
@ConfigProperty(name = "singleParty", defaultValue = "false")
|
||||
@ConfigProperty(name = "singleParty", defaultValue = "true")
|
||||
private boolean isSingleParty;
|
||||
|
||||
@Resource
|
||||
|
Loading…
Reference in New Issue
Block a user