Skip to content

Commit

Permalink
Rename 'error-reporting' server as 'game-support' server (#12132)
Browse files Browse the repository at this point in the history
* Add NGINX to docker-compose

* Remove placeholder build.gradle files (not yet clear if this is what we want)

* Update error report server to use context path of '/game-support'

* Move 'error-reporting' client to 'servers/error-report/client'

* Rename 'servers/error-reporting' -> 'servers/game-support'

* Build game installers whenever any http 'client' folder is updated
  • Loading branch information
DanVanAtta authored Nov 26, 2023
1 parent ac5a642 commit c10971f
Show file tree
Hide file tree
Showing 46 changed files with 18 additions and 62 deletions.
7 changes: 5 additions & 2 deletions .docker/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@ services:
volumes:
- ./init.sql:/docker-entrypoint-initdb.d/01-init.sql
ports:
- 5432:5432

- "5432:5432"
nginx:
image: nginx:stable-alpine-perl
ports:
- "80:80"
3 changes: 2 additions & 1 deletion .github/workflows/upload-game-installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ on:
branches:
- master
paths:
- 'build.gradle'
- 'game-app/**'
- 'http-clients/**'
- 'lib/**'
- 'build.gradle'
- 'servers/*/client/**'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
jobs:
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

/** Http client to upload error reports to the http lobby server. */
public interface ErrorReportClient {
String ERROR_REPORT_PATH = "/error-report";
String CAN_UPLOAD_ERROR_REPORT_PATH = "/error-report-check";
String ERROR_REPORT_PATH = "/game-support/error-report";
String CAN_UPLOAD_ERROR_REPORT_PATH = "/game-support/error-report-check";
int MAX_REPORTS_PER_DAY = 5;

/** Creates an error report uploader clients, sends error reports and gets a response back. */
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,9 @@ configurations {
dependencies {
implementation "io.dropwizard:dropwizard-core:$dropwizardVersion"
implementation "io.dropwizard:dropwizard-jdbi3:$dropwizardVersion"
implementation project(':http-clients:error-reporting-client')
implementation project(':http-clients:github-client')
implementation project(':lib:http-client-lib')
implementation project(':servers:game-support:client')
implementation project(':servers:server-lib')

runtimeOnly "org.postgresql:postgresql:$postgresqlVersion"
Expand Down
File renamed without changes.
3 changes: 0 additions & 3 deletions servers/lobby-games/README.md

This file was deleted.

Empty file.
Empty file.
5 changes: 5 additions & 0 deletions servers/lobby-chat/README.md → servers/lobby/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,8 @@

This service keeps a list of chatters and sends chat messages between them.
When logging into the lobby, a person is logging into this service.


## Lobby-Games Server - Overview

This service is responsible for keeping a list of ongoing lobby games and their status.
File renamed without changes.
File renamed without changes.
Empty file.
Empty file.
2 changes: 1 addition & 1 deletion servers/maps-index/README.md → servers/maps/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Maps-Index Server - Overview
# Maps Server - Overview

The maps-index server indexes all of the maps and provides an API
for game-clients to get a listing of maps and to interact with
Expand Down
File renamed without changes.
File renamed without changes.
42 changes: 0 additions & 42 deletions servers/nginx/README.md

This file was deleted.

8 changes: 0 additions & 8 deletions servers/nginx/docker-run.sh

This file was deleted.

4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ include 'game-app:game-headless'
include 'game-app:game-relay-server'
include 'game-app:map-data'
include 'game-app:smoke-testing'
include 'http-clients:error-reporting-client'
include 'http-clients:github-client'
include 'http-clients:lobby-client'
include 'lib:feign-common'
Expand All @@ -19,7 +18,8 @@ include 'lib:test-common'
include 'lib:websocket-client'
include 'lib:websocket-server'
include 'lib:xml-reader'
include 'servers:error-reporting'
include 'servers:game-support:client'
include 'servers:game-support:server'
include 'servers:server-lib'
include 'servers:server-test-support'
include 'spitfire-server:database'
Expand Down

0 comments on commit c10971f

Please sign in to comment.