-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix local deployment with docker compose
- Loading branch information
1 parent
64a2176
commit 4ebbb4d
Showing
9 changed files
with
71 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
ASPNETCORE_ENVIRONMENT=Development | ||
ASPNETCORE_Kestrel__Certificates__Default__Password=ncafe | ||
ASPNETCORE_Kestrel__Certificates__Default__Path=/https/ncafe-aspnetapp.pfx | ||
CONNECTIONSTRINGS__EVENTSTORE=esdb://eventstore:2113?tls=false | ||
CONNECTIONSTRINGS__RABBITMQ=host=rabbitmq;username=myuser;password=mypassword | ||
ADMIN_BASE_ADDRESS=http://localhost:5010 | ||
CASHIER_BASE_ADDRESS=http://localhost:5020 | ||
BARISTA_BASE_ADDRESS=http://localhost:5030 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
$projectPaths = @( | ||
'.\src\Admin\NCafe.Admin.Api' | ||
'.\src\Barista\NCafe.Barista.Api' | ||
'.\src\Cashier\NCafe.Cashier.Api' | ||
'.\src\UI\NCafe.Web' | ||
) | ||
|
||
Write-Host "Restoring packages for all projects..." | ||
dotnet restore | ||
|
||
foreach ($projectPath in $projectPaths) { | ||
Write-Host "Building project $($projectPath)..." | ||
dotnet build -c Release --no-restore $projectPath | ||
} | ||
|
||
foreach ($projectPath in $projectPaths) { | ||
Write-Host "Publishing project $($projectPath)..." | ||
dotnet publish -c Release --no-restore -o "$($projectPath)\output" $projectPath | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
projectPaths=("src/Admin/NCafe.Admin.Api" "src/Barista/NCafe.Barista.Api" "src/Cashier/NCafe.Cashier.Api" "src/UI/NCafe.Web") | ||
|
||
echo "Restoring packages for all projects..." | ||
dotnet restore | ||
|
||
for projectPath in "${projectPaths[@]}" | ||
do | ||
echo "Building project $projectPath..." | ||
dotnet build -c Release --no-restore $projectPath | ||
done | ||
|
||
for projectPath in "${projectPaths[@]}" | ||
do | ||
echo "Publishing project $projectPath..." | ||
dotnet publish -c Release --no-restore -o "$projectPath/output" $projectPath | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"sdk": { | ||
"version": "8.0.300" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version: '3.4' | ||
|
||
services: | ||
eventstore: | ||
image: eventstore/eventstore:20.10.0-buster-slim | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters