16 references to WithVolume
Aspire.Hosting.Azure.Tests (2)
AzureContainerAppsTests.cs (2)
1186.WithVolume("vol1", "/path1") 1187.WithVolume("vol2", "/path2")
Aspire.Hosting.Containers.Tests (3)
ContainerResourceTests.cs (3)
226.WithVolume("myvolume", "/mount/here") 227.WithVolume("myreadonlyvolume", "/mount/there", isReadOnly: true) 228.WithVolume(null! /* anonymous volume */, "/mount/everywhere");
Aspire.Hosting.Elasticsearch (1)
ElasticsearchBuilderExtensions.cs (1)
120return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/usr/share/elasticsearch/data");
Aspire.Hosting.Milvus (1)
MilvusBuilderExtensions.cs (1)
159return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/var/lib/milvus", isReadOnly);
Aspire.Hosting.MySql (1)
MySqlBuilderExtensions.cs (1)
206return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/var/lib/mysql", isReadOnly);
Aspire.Hosting.Oracle (1)
OracleDatabaseBuilderExtensions.cs (1)
85=> builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/opt/oracle/oradata", false);
Aspire.Hosting.PostgreSQL (1)
PostgresBuilderExtensions.cs (1)
363return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"),
Aspire.Hosting.Qdrant (1)
QdrantBuilderExtensions.cs (1)
104return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/qdrant/storage",
Aspire.Hosting.RabbitMQ (1)
RabbitMQBuilderExtensions.cs (1)
99return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/var/lib/rabbitmq", isReadOnly)
Aspire.Hosting.SqlServer (1)
SqlServerBuilderExtensions.cs (1)
94return builder.WithVolume(name ?? VolumeNameGenerator.Generate(builder, "data"), "/var/opt/mssql", isReadOnly);
Aspire.Hosting.Tests (3)
DistributedApplicationTests.cs (1)
628.WithVolume("test-volume-name", "/path-here");
PublishAsDockerfileTests.cs (2)
161c.WithVolume("vol", "/app/node_modules"); 221c.WithVolume("vol", "/app/shared");