You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CommonTasks.md
+23-13Lines changed: 23 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,13 +2,13 @@
2
2
3
3
This page contains information on basic tasks that are used throughout the Steeltoe Samples. Use this page to quickly get your local development environment up and running.
4
4
5
-
Containers images produced by the Steeltoe team (all images hosted at `steeltoe.azurecr.io`) are *For local development purposes only*. Images are generally very basic and formal support should not be expected. To see how the images are built and/or participate in improving them, visit [this repository](https://github.com/SteeltoeOSS/Dockerfiles).
5
+
Container images produced by the Steeltoe team (all images hosted at `steeltoe.azurecr.io`) are *for local development purposes only*. Images are generally very basic and formal support should not be expected. To see how the images are built and/or participate in improving them, visit [this repository](https://github.com/SteeltoeOSS/Dockerfiles).
6
6
7
7
Feel free to modify these commands as needed, knowing that commands provided in this document will result in:
8
8
9
9
* The latest available (tag-matching) image being used: `--pull=always`
10
10
* Servers that are automatically removed when the container is stopped: `--rm`
11
-
* An attached pseudo-TTY with STDIN kept open: `-it`[read more](https://docs.docker.com/reference/cli/docker/container/run/#tty)
11
+
* An attached pseudo-TTY with STDIN that is kept open: `-it`[read more](https://docs.docker.com/reference/cli/docker/container/run/#tty)
12
12
* Published ports: `-p <hostPort>:<containerPort>`
13
13
* Named containers: `--name <name>`. If the command has Steeltoe-specific configuration and/or the image was built by the Steeltoe team, the name starts with 'steeltoe-'
14
14
@@ -22,7 +22,7 @@ To start a config server backed by the Spring Cloud Samples repo:
22
22
docker run --rm -it --pull=always -p 8888:8888 --name steeltoe-config steeltoe.azurecr.io/config-server
23
23
```
24
24
25
-
To start a config server backed by a folder on your local disk, start the docker image like this:
25
+
To start a config server backed by a folder on your local disk, start a Docker container like this:
26
26
27
27
```shell
28
28
# Note: Ensure Docker is configured to share host drive/volume so the mount below will work correctly!
@@ -45,17 +45,22 @@ To run a Spring Cloud Config Server without Docker:
45
45
1. Build the source: `.\mvnw install -DskipTests`
46
46
1. Start the server: `.\mvnw spring-boot:run`
47
47
48
-
The default configuration of the Config Server uses [this github repo](https://github.com/spring-cloud-samples/config-repo) for its source of configuration data.
48
+
The default configuration of the Config Server uses [this GitHub repo](https://github.com/spring-cloud-samples/config-repo) for its source of configuration data.
49
49
50
50
### Provision SCCS on Cloud Foundry
51
51
52
-
Use the [Cloud Foundry CLI](https://github.com/cloudfoundry/cli) to create a Spring Cloud Config Server in an org/space, backed by a given git repo. Many of the Steeltoe samples use the `spring-cloud-samples` repo, but you may need to alter the parameter used.
52
+
Use the [Cloud Foundry CLI](https://github.com/cloudfoundry/cli) to create a Spring Cloud Config Server instance in an org/space, backed by a given git repo. Many of the Steeltoe samples use the `spring-cloud-samples` repo, but you may need to alter the parameter used.
53
53
54
-
1.`cf target -o myorg -s myspace`
54
+
1. Choose a service plan
55
+
```shell
56
+
cf target -o your-org -s your-space
57
+
cf marketplace
58
+
cf marketplace -e your-offering
59
+
```
55
60
1. Use the correct escaping for your shell:
56
-
1. bash or PowerShell: `cf create-service p-config-server standard myConfigServerInstanceName -c '{"git":{"uri": "https://github.com/spring-cloud-samples/config-repo"}}'`
57
-
1.CMD: `cf create-service p.config-server standard myConfigServerInstanceName -c "{\"git\":{\"uri\":\"https://github.com/spring-cloud-samples/config-repo\"}}"`
58
-
1. Wait for service to be ready. (use `cf services` to check the status)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
54
+
tanzu service class-claim create sample-mongodb-service --class mongodb-unmanaged
53
55
```
54
56
55
57
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
72
+
tanzu service class-claim create sample-mysql-service --class mysql-unmanaged
71
73
```
72
74
73
75
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
71
+
tanzu service class-claim create sample-mysql-service --class mysql-unmanaged
70
72
```
71
73
72
74
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
72
+
tanzu service class-claim create sample-postgresql-service --class postgresql-unmanaged
71
73
```
72
74
73
75
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
71
+
tanzu service class-claim create sample-postgresql-service --class postgresql-unmanaged
70
72
```
71
73
72
74
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
56
+
tanzu service class-claim create sample-rabbitmq-service --class rabbitmq-unmanaged
55
57
```
56
58
57
59
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
Copy file name to clipboardExpand all lines: Connectors/src/Redis/README.md
+6-8Lines changed: 6 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -22,7 +22,7 @@ This sample uses [StackExchange.Redis](https://www.nuget.org/packages/StackExcha
22
22
and [Tanzu CLI](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/install-tanzu-cli.html)
23
23
24
24
> [!NOTE]
25
-
> Versions of ASP.NET before v9 require that Lua scripting is activated, which is disabled by default on Cloud Foundry, so check your plan settings.
25
+
> Versions of ASP.NET Core before v9 require that Lua scripting is activated, which is disabled by default on Cloud Foundry, so check your plan settings.
26
26
27
27
## Running locally
28
28
@@ -39,14 +39,12 @@ Upon startup, the app inserts a couple of key/value pairs into the bound Redis/V
39
39
1. Create a Redis service instance in an org/space
40
40
```shell
41
41
cf target -o your-org -s your-space
42
+
cf marketplace
43
+
cf marketplace -e your-offering
42
44
```
43
-
- When using Redis for Tanzu Application Service:
45
+
- When using Redis for Tanzu Application Service or Tanzu for Valkey on Cloud Foundry:
tanzu service class-claim create my-postgresql-service --class postgresql-unmanaged
76
+
tanzu service class-claim create example-redis-service --class redis-unmanaged
79
77
```
80
78
81
79
If you'd like to learn more about these services, see [claiming services](https://techdocs.broadcom.com/us/en/vmware-tanzu/standalone-components/tanzu-application-platform/1-12/tap/getting-started-claim-services.html)
0 commit comments