@@ -23,7 +23,7 @@ There is also an additional sample that illustrates how to use a `NpgsqlConnecti
2323
24241 . Start a PostgreSQL [ docker container] ( https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md )
25251 . Run the sample
26- ```
26+ ``` shell
2727 dotnet run
2828 ```
2929
@@ -32,25 +32,25 @@ Upon startup, the app inserts a couple of rows into the bound PostgreSQL databas
3232## Running on Tanzu Platform for Cloud Foundry
3333
34341 . Create a PostgreSQL service instance in an org/space
35- ```
35+ ``` shell
3636 cf target -o your-org -s your-space
3737 ```
3838 - When using Tanzu for Postgres on Cloud Foundry:
39- ```
39+ ``` shell
4040 cf create-service postgres small samplePostgreSqlService
4141 ```
4242 - When using Tanzu Cloud Service Broker for GCP:
43- ```
43+ ` ` ` shell
4444 cf create-service csb-google-postgres your-plan samplePostgreSqlService
4545 ` ` `
4646 - When using Tanzu Cloud Service Broker for AWS:
47- ```
47+ ` ` ` shell
4848 cf create-service csb-aws-postgresql your-plan samplePostgreSqlService
4949 ` ` `
50501. Wait for the service to become ready (you can check with ` cf services` )
51511. Run the ` cf push` command to deploy from source (you can monitor logs with ` cf logs postgresql-efcore-connector-sample` )
5252 - When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
53- ```
53+ ` ` ` shell
5454 dotnet publish -r win-x64 --self-contained
5555 cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
5656 ` ` `
@@ -64,7 +64,7 @@ In order to connect to PostgreSQL for this sample, you must have a class claim a
6464The commands listed below will create the claim, and the claim will be bound to the application via the definition
6565in the ` workload.yaml` that is included in the ` config` folder of this project.
6666
67- ```
67+ ` ` ` shell
6868kubectl config set-context --current --namespace=your-namespace
6969tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
7070` ` `
@@ -75,12 +75,12 @@ and [consuming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standa
7575### App deployment
7676
7777To deploy from local source code:
78- ```
78+ ```shell
7979tanzu app workload apply --local-path . --file ./config/workload.yaml -y
8080```
8181
8282Alternatively, from locally built binaries:
83- ```
83+ ```shell
8484dotnet publish -r linux-x64 --no-self-contained
8585tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
8686```
0 commit comments