Skip to content

Commit

Permalink
patch: trim container image
Browse files Browse the repository at this point in the history
  • Loading branch information
GZTimeWalker committed Apr 5, 2023
1 parent f656cae commit d9aed1c
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 18 deletions.
2 changes: 1 addition & 1 deletion GZCTF/CTFServer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@

<ItemGroup>
<PackageReference Include="Docker.DotNet" Version="3.125.13" />
<PackageReference Include="KubernetesClient" Version="10.1.4" />
<PackageReference Include="KubernetesClient" Version="10.1.19" />
<PackageReference Include="Microsoft.AspNetCore.Identity.EntityFrameworkCore" Version="7.0.4" />
<PackageReference Include="Microsoft.AspNetCore.SignalR.Protocols.Json" Version="7.0.4" />
<PackageReference Include="Microsoft.AspNetCore.SpaProxy" Version="7.0.4" />
Expand Down
2 changes: 1 addition & 1 deletion GZCTF/ClientApp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@
"@typescript-eslint/eslint-plugin": "^5.57.1",
"@typescript-eslint/parser": "^5.57.1",
"@vitejs/plugin-react": "^3.1.0",
"axios": "^1.3.4",
"axios": "^1.3.5",
"babel-plugin-prismjs": "^2.1.0",
"eslint": "8.37.0",
"form-data": "~4.0.0",
Expand Down
30 changes: 15 additions & 15 deletions GZCTF/ClientApp/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion GZCTF/Models/Data/Challenge.cs
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ internal Challenge Update(ChallengeUpdateModel model)
CPUCount = model.CPUCount ?? CPUCount;
MemoryLimit = model.MemoryLimit ?? MemoryLimit;
StorageLimit = model.StorageLimit ?? StorageLimit;
ContainerImage = model.ContainerImage ?? ContainerImage;
ContainerImage = model.ContainerImage?.Trim() ?? ContainerImage;
PrivilegedContainer = model.PrivilegedContainer ?? PrivilegedContainer;
ContainerExposePort = model.ContainerExposePort ?? ContainerExposePort;
OriginalScore = model.OriginalScore ?? OriginalScore;
Expand Down

0 comments on commit d9aed1c

Please sign in to comment.