Skip to content

Commit

Permalink
Updated lobbies (#68)
Browse files Browse the repository at this point in the history
  • Loading branch information
deesejohn committed Jul 10, 2021
1 parent 408f9f7 commit 5e3fc95
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 14 deletions.
2 changes: 1 addition & 1 deletion services/lobbies-spa/skaffold.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
apiVersion: skaffold/v2beta16
apiVersion: skaffold/v2beta18
kind: Config
metadata:
name: lobbies-spa
Expand Down
13 changes: 2 additions & 11 deletions services/lobbies/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS base
RUN apt-get update && apt-get install -y ca-certificates && update-ca-certificates
FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
WORKDIR /app
COPY *.sln .
COPY src/*/*.csproj ./
Expand All @@ -10,16 +9,8 @@ COPY tests/*/*.csproj ./
RUN for file in $(ls *.csproj); \
do mkdir -p tests/${file%.*}/ && mv $file tests/${file%.*}/; \
done
RUN dotnet restore

FROM base AS test
WORKDIR /app
COPY . .
RUN dotnet test -c "Test" --collect:"XPlat Code Coverage"

FROM test AS build
WORKDIR /app
RUN dotnet publish -c release -o out --no-restore
RUN dotnet publish -c release -o out

FROM mcr.microsoft.com/dotnet/aspnet:5.0
WORKDIR /app
Expand Down
4 changes: 2 additions & 2 deletions services/lobbies/src/api/Controllers/LobbiesController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ public LobbiesController(LobbyService lobbyService, PlayerServiceClient playerSe
}

[HttpGet("/{lobbyId}")]
public Task<Lobby> GetAsync(string lobbyId)
public Task<Lobby> GetAsync(string lobbyId, CancellationToken cancellationToken)
{
return _lobbyService.GetAsync(lobbyId);
return _lobbyService.GetAsync(lobbyId, cancellationToken);
}

[HttpPost]
Expand Down

0 comments on commit 5e3fc95

Please sign in to comment.