Skip to content

Commit

Permalink
adds initial volume support (#145)
Browse files Browse the repository at this point in the history
* adds initial volume support

- Uses statefulSet instead of deployment for anything with a volume assigned
- Remove unused templates that still exist from Aspire preview 2
- Also changed the default runtime identifier used when building containers to match the host machine running aspirate. Can be overridden with --runtime-identifier
- Sets verbosity to quiet for project builds.

* fix: fixes binding evaluation issue

if there are no bindings for a project the evaluation in PreSubstitutePlaceholders
causes a NRE.

this fix just makes use of pattern matching which corrects the order of evaluation
and gets around this issue.

---------

Co-authored-by: Mike <mikek@techsys.co.za>
  • Loading branch information
prom3theu5 and Mike authored Apr 11, 2024
1 parent 6b113ed commit 76d3d67
Show file tree
Hide file tree
Showing 25 changed files with 503 additions and 359 deletions.
8 changes: 1 addition & 7 deletions src/Aspirate.Cli/Aspirate.Cli.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,7 @@

<ItemGroup>
<None Include="nuget-icon.png" Pack="true" Visible="false" PackagePath="" />
<None Update="Templates\sqlserver.hbs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Templates\mysql.hbs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
<None Update="Templates\mongo-server.hbs">
<None Update="Templates\statefulset.hbs">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</None>
</ItemGroup>
Expand Down
6 changes: 3 additions & 3 deletions src/Aspirate.Cli/Properties/launchSettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"generate": {
"commandName": "Project",
"commandLineArgs": "generate",
"workingDirectory": "$(ProjectDir)/../../../aspire/samples/eShopLite/AppHost",
"workingDirectory": "/Users/prom3theu5/git/test-volumes/AspireSample/AspireSample.AppHost",
"hotReloadEnabled": false
},
"generate-non-interactive": {
Expand All @@ -39,7 +39,7 @@
"apply": {
"commandName": "Project",
"commandLineArgs": "apply",
"workingDirectory": "$(ProjectDir)/../../../aspire/samples/eShopLite/AppHost",
"workingDirectory": "/Users/prom3theu5/git/test-volumes/AspireSample/AspireSample.AppHost",
"hotReloadEnabled": false
},
"apply-non-interactive": {
Expand All @@ -51,7 +51,7 @@
"destroy": {
"commandName": "Project",
"commandLineArgs": "destroy",
"workingDirectory": "$(ProjectDir)/../../../aspire/samples/eShopLite/AppHost",
"workingDirectory": "/Users/prom3theu5/git/test-volumes/AspireSample/AspireSample.AppHost",
"hotReloadEnabled": false
},
"destroy-non-interactive": {
Expand Down
42 changes: 0 additions & 42 deletions src/Aspirate.Cli/Templates/mongo-server.hbs

This file was deleted.

53 changes: 0 additions & 53 deletions src/Aspirate.Cli/Templates/mysql.hbs

This file was deleted.

56 changes: 0 additions & 56 deletions src/Aspirate.Cli/Templates/postgres-server.hbs

This file was deleted.

55 changes: 0 additions & 55 deletions src/Aspirate.Cli/Templates/rabbitmq.hbs

This file was deleted.

46 changes: 0 additions & 46 deletions src/Aspirate.Cli/Templates/redis.hbs

This file was deleted.

64 changes: 0 additions & 64 deletions src/Aspirate.Cli/Templates/sqlserver.hbs

This file was deleted.

Loading

0 comments on commit 76d3d67

Please sign in to comment.