Skip to content

Commit

Permalink
Docker
Browse files Browse the repository at this point in the history
  • Loading branch information
Atralupus committed Feb 20, 2025
1 parent 0399eac commit 4916f75
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 27 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ jobs:
docker:
- repo: planetariumhq/arena-service
dockerfile: Dockerfile
- repo: planetariumhq/arena-service-backoffice
dockerfile: Dockerfile.BackOffice
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
12 changes: 0 additions & 12 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
"ASPNETCORE_ENVIRONMENT": "Local"
}
},
{
"name": "Debug ArenaService.Admin",
"type": "coreclr",
"request": "launch",
"preLaunchTask": "build-admin",
"program": "${workspaceFolder}/ArenaService.Admin/bin/Debug/net8.0/ArenaService.Admin.dll",
"cwd": "${workspaceFolder}/ArenaService.Admin",
"stopAtEntry": false,
"env": {
"ASPNETCORE_ENVIRONMENT": "Local"
}
},
{
"name": "Debug ArenaService.BackOffice",
"type": "coreclr",
Expand Down
12 changes: 0 additions & 12 deletions .vscode/tasks.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,18 +13,6 @@
],
"problemMatcher": "$msCompile"
},
{
"label": "build-admin",
"command": "dotnet",
"type": "process",
"args": [
"build",
"${workspaceFolder}/ArenaService.Admin/ArenaService.Admin.csproj",
"/property:GenerateFullPaths=true",
"/consoleloggerparameters:NoSummary"
],
"problemMatcher": "$msCompile"
},
{
"label": "build-backoffice",
"command": "dotnet",
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile.Admin → Dockerfile.BackOffice
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ echo "TARGETPLATFROM=$TARGETPLATFORM"
echo "BUILDPLATFORM=$BUILDPLATFORM"
if [[ "$TARGETPLATFORM" = "linux/amd64" ]]
then
dotnet publish ArenaService.Admin/ArenaService.Admin.csproj \
dotnet publish ArenaService.BackOffice/ArenaService.BackOffice.csproj \
-c Release \
-r linux-x64 \
-o out \
--self-contained
elif [[ "$TARGETPLATFORM" = "linux/arm64" ]]
then
dotnet publish ArenaService.Admin/ArenaService.Admin.csproj \
dotnet publish ArenaService.BackOffice/ArenaService.BackOffice.csproj \
-c Release \
-r linux-arm64 \
-o out \
Expand All @@ -41,4 +41,4 @@ RUN apt-get update \
libc6-dev jq curl \
&& rm -rf /var/lib/apt/lists/*

ENTRYPOINT ["dotnet", "ArenaService.Admin.dll"]
ENTRYPOINT ["dotnet", "ArenaService.BackOffice.dll"]

0 comments on commit 4916f75

Please sign in to comment.