Skip to content

Commit baa5b11

Browse files
authored
Update code fences in READMEs (#396)
1 parent cbf7c00 commit baa5b11

File tree

14 files changed

+109
-109
lines changed

14 files changed

+109
-109
lines changed

Configuration/src/ConfigurationProviders/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ This is an ASP.NET Core application that shows how to use various `IConfiguratio
1717

1818
1. Start a Config Server [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
1919
1. Run the sample
20-
```
20+
```shell
2121
dotnet run
2222
```
2323

@@ -32,12 +32,12 @@ This sample expects the config server to be backed by the `spring-cloud-samples`
3232
### App deployment
3333

3434
1. Login to your Cloud Foundry environment and target your org/space
35-
```
35+
```shell
3636
cf target -o your-org -s your-space
3737
```
3838
1. Run the `cf push` command to deploy from source
3939
- When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
40-
```
40+
```shell
4141
dotnet publish -r win-x64 --self-contained
4242
cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
4343
```
@@ -50,7 +50,7 @@ YAML files for creating the needed resources are included with this project, and
5050
but you are encouraged to review and/or customize the contents of the files before applying them.
5151

5252
To create configuration objects (ConfigurationSource, ConfigurationSlice, ResourceClaim), run:
53-
```
53+
```shell
5454
kubectl config set-context --current --namespace=your-namespace
5555
kubectl apply -f ./config/application-configuration-service
5656
```
@@ -60,12 +60,12 @@ For complete instructions, follow the [documentation](https://techdocs.broadcom.
6060
### App deployment
6161

6262
To deploy from local source code:
63-
```
63+
```shell
6464
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
6565
```
6666

6767
Alternatively, from locally built binaries:
68-
```
68+
```shell
6969
dotnet publish -r linux-x64 --no-self-contained
7070
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
7171
```

Connectors/src/CosmosDb/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ for connecting to a CosmosDB database.
1212
1. Start the [Azure CosmosDB Emulator](https://learn.microsoft.com/azure/cosmos-db/how-to-develop-emulator)
1313
1. Update your local primary key in `appsettings.development.json` at `Steeltoe:Client:CosmosDb:Default:ConnectionString`
1414
1. Run the sample
15-
```
15+
```shell
1616
dotnet run
1717
```
1818

Connectors/src/MongoDb/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ for connecting to a MongoDB database.
1717

1818
1. Start a MongoDB [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
1919
1. Run the sample
20-
```
20+
```shell
2121
dotnet run
2222
```
2323

@@ -26,14 +26,14 @@ Upon startup, the app inserts a couple of objects into the bound MongoDB databas
2626
## Running on Tanzu Platform for Cloud Foundry
2727

2828
1. Create a MongoDB service instance in an org/space
29-
```
29+
```shell
3030
cf target -o your-org -s your-space
3131
cf create-service csb-azure-mongodb your-plan sampleMongoDbService
3232
```
3333
1. Wait for the service to become ready (you can check with `cf services`)
3434
1. Run the `cf push` command to deploy from source (you can monitor logs with `cf logs mongodb-connector-sample`)
3535
- When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
36-
```
36+
```shell
3737
dotnet publish -r win-x64 --self-contained
3838
cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
3939
```
@@ -47,7 +47,7 @@ In order to connect to MongoDB for this sample, you must have a class claim avai
4747
The commands listed below will create the claim, and the claim will be bound to the application via the definition
4848
in the `workload.yaml` that is included in the `config` folder of this project.
4949

50-
```
50+
```shell
5151
kubectl config set-context --current --namespace=your-namespace
5252
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
5353
```
@@ -58,12 +58,12 @@ and [consuming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standa
5858
### App deployment
5959
6060
To deploy from local source code:
61-
```
61+
```shell
6262
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
6363
```
6464
6565
Alternatively, from locally built binaries:
66-
```
66+
```shell
6767
dotnet publish -r linux-x64 --no-self-contained
6868
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
6969
```

Connectors/src/MySql/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There is also an additional sample that illustrates how to use Entity Framework
2424

2525
1. Start a MySQL [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
2626
1. Run the sample
27-
```
27+
```shell
2828
dotnet run
2929
```
3030

@@ -33,25 +33,25 @@ Upon startup, the app inserts a couple of rows into the bound MySQL database. Th
3333
## Running on Tanzu Platform for Cloud Foundry
3434

3535
1. Create a MySQL service instance in an org/space
36-
```
36+
```shell
3737
cf target -o your-org -s your-space
3838
```
3939
- When using Tanzu for MySQL on Cloud Foundry:
40-
```
40+
```shell
4141
cf create-service p.mysql db-small sampleMySqlService
4242
```
4343
- When using Tanzu Cloud Service Broker for GCP:
44-
```
44+
```shell
4545
cf create-service csb-google-mysql your-plan sampleMySqlService
4646
```
4747
- When using Tanzu Cloud Service Broker for AWS:
48-
```
48+
```shell
4949
cf create-service csb-aws-mysql your-plan sampleMySqlService
5050
```
5151
1. Wait for the service to become ready (you can check with `cf services`)
5252
1. Run the `cf push` command to deploy from source (you can monitor logs with `cf logs mysql-connector-sample`)
5353
- When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
54-
```
54+
```shell
5555
dotnet publish -r win-x64 --self-contained
5656
cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
5757
```
@@ -65,7 +65,7 @@ In order to connect to MySQL for this sample, you must have a class claim availa
6565
The commands listed below will create the claim, and the claim will be bound to the application via the definition
6666
in the `workload.yaml` that is included in the `config` folder of this project.
6767

68-
```
68+
```shell
6969
kubectl config set-context --current --namespace=your-namespace
7070
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
7171
```
@@ -76,12 +76,12 @@ and [consuming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standa
7676
### App deployment
7777
7878
To deploy from local source code:
79-
```
79+
```shell
8080
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
8181
```
8282
8383
Alternatively, from locally built binaries:
84-
```
84+
```shell
8585
dotnet publish -r linux-x64 --no-self-contained
8686
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
8787
```

Connectors/src/MySqlEFCore/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There is also an additional sample that illustrates how to use a `MySqlConnectio
2323

2424
1. Start a MySQL [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
2525
1. 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 MySQL database. Th
3232
## Running on Tanzu Platform for Cloud Foundry
3333

3434
1. Create a MySQL service instance in an org/space
35-
```
35+
```shell
3636
cf target -o your-org -s your-space
3737
```
3838
- When using Tanzu for MySQL on Cloud Foundry:
39-
```
39+
```shell
4040
cf create-service p.mysql db-small sampleMySqlService
4141
```
4242
- When using Tanzu Cloud Service Broker for GCP:
43-
```
43+
```shell
4444
cf create-service csb-google-mysql your-plan sampleMySqlService
4545
```
4646
- When using Tanzu Cloud Service Broker for AWS:
47-
```
47+
```shell
4848
cf create-service csb-aws-mysql your-plan sampleMySqlService
4949
```
5050
1. Wait for the service to become ready (you can check with `cf services`)
5151
1. Run the `cf push` command to deploy from source (you can monitor logs with `cf logs mysql-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 MySQL for this sample, you must have a class claim availa
6464
The commands listed below will create the claim, and the claim will be bound to the application via the definition
6565
in the `workload.yaml` that is included in the `config` folder of this project.
6666

67-
```
67+
```shell
6868
kubectl config set-context --current --namespace=your-namespace
6969
tanzu 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
7777
To deploy from local source code:
78-
```
78+
```shell
7979
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
8080
```
8181
8282
Alternatively, from locally built binaries:
83-
```
83+
```shell
8484
dotnet publish -r linux-x64 --no-self-contained
8585
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
8686
```

Connectors/src/PostgreSql/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ There is also an additional sample that illustrates how to use Entity Framework
2424

2525
1. Start a PostgreSQL [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
2626
1. Run the sample
27-
```
27+
```shell
2828
dotnet run
2929
```
3030

@@ -33,25 +33,25 @@ Upon startup, the app inserts a couple of rows into the bound PostgreSQL databas
3333
## Running on Tanzu Platform for Cloud Foundry
3434

3535
1. Create a PostgreSQL service instance in an org/space
36-
```
36+
```shell
3737
cf target -o your-org -s your-space
3838
```
3939
- When using Tanzu for Postgres on Cloud Foundry:
40-
```
40+
```shell
4141
cf create-service postgres small samplePostgreSqlService
4242
```
4343
- When using Tanzu Cloud Service Broker for GCP:
44-
```
44+
```shell
4545
cf create-service csb-google-postgres your-plan samplePostgreSqlService
4646
```
4747
- When using Tanzu Cloud Service Broker for AWS:
48-
```
48+
```shell
4949
cf create-service csb-aws-postgresql your-plan samplePostgreSqlService
5050
```
5151
1. Wait for the service to become ready (you can check with `cf services`)
5252
1. Run the `cf push` command to deploy from source (you can monitor logs with `cf logs postgresql-connector-sample`)
5353
- When deploying to Windows, binaries must be built locally before push. Use the following commands instead:
54-
```
54+
```shell
5555
dotnet publish -r win-x64 --self-contained
5656
cf push -f manifest-windows.yml -p bin/Release/net8.0/win-x64/publish
5757
```
@@ -65,7 +65,7 @@ In order to connect to PostgreSQL for this sample, you must have a class claim a
6565
The commands listed below will create the claim, and the claim will be bound to the application via the definition
6666
in the `workload.yaml` that is included in the `config` folder of this project.
6767

68-
```
68+
```shell
6969
kubectl config set-context --current --namespace=your-namespace
7070
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
7171
```
@@ -76,12 +76,12 @@ and [consuming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standa
7676
### App deployment
7777
7878
To deploy from local source code:
79-
```
79+
```shell
8080
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
8181
```
8282
8383
Alternatively, from locally built binaries:
84-
```
84+
```shell
8585
dotnet publish -r linux-x64 --no-self-contained
8686
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
8787
```

Connectors/src/PostgreSqlEFCore/README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ There is also an additional sample that illustrates how to use a `NpgsqlConnecti
2323

2424
1. Start a PostgreSQL [docker container](https://github.com/SteeltoeOSS/Samples/blob/main/CommonTasks.md)
2525
1. 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

3434
1. 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
```
5050
1. Wait for the service to become ready (you can check with `cf services`)
5151
1. 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
6464
The commands listed below will create the claim, and the claim will be bound to the application via the definition
6565
in the `workload.yaml` that is included in the `config` folder of this project.
6666

67-
```
67+
```shell
6868
kubectl config set-context --current --namespace=your-namespace
6969
tanzu 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
7777
To deploy from local source code:
78-
```
78+
```shell
7979
tanzu app workload apply --local-path . --file ./config/workload.yaml -y
8080
```
8181
8282
Alternatively, from locally built binaries:
83-
```
83+
```shell
8484
dotnet publish -r linux-x64 --no-self-contained
8585
tanzu app workload apply --local-path ./bin/Release/net8.0/linux-x64/publish --file ./config/workload.yaml -y
8686
```

0 commit comments

Comments
 (0)