Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions community/samples/serving/helloworld-clojure/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ folder) you're ready to build and deploy the sample app.
Docker Hub, run these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-clojure .

Expand All @@ -126,7 +126,7 @@ folder) you're ready to build and deploy the sample app.
in `service.yaml` matches the container you built in the previous step. Apply
the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -148,7 +148,7 @@ folder) you're ready to build and deploy the sample app.
1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-clojure.default.1.2.3.4.sslip.io
Hello World!
```
Expand All @@ -157,6 +157,6 @@ folder) you're ready to build and deploy the sample app.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
10 changes: 5 additions & 5 deletions community/samples/serving/helloworld-dart/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ be created using the following instructions.
2. If you want to run locally, install dependencies. If you only want to run in
Docker or Knative, you can skip this step.

```shell
```bash
> pub get
```

Expand Down Expand Up @@ -111,7 +111,7 @@ folder) you're ready to build and deploy the sample app.
Docker Hub, run these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-dart .

Expand All @@ -124,7 +124,7 @@ folder) you're ready to build and deploy the sample app.
in `service.yaml` matches the container you built in the previous step. Apply
the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -146,7 +146,7 @@ folder) you're ready to build and deploy the sample app.
1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-dart.default.1.2.3.4.sslip.io
Hello Dart Sample v1
```
Expand All @@ -155,6 +155,6 @@ folder) you're ready to build and deploy the sample app.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
16 changes: 8 additions & 8 deletions community/samples/serving/helloworld-deno/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Follow the steps below to create the sample code and then deploy the app to your
cluster. You can also download a working copy of the sample, by running the
following commands:

```shell
```bash
git clone -b "{{< branch >}}" https://github.com/knative/docs knative-docs
cd knative-docs/docs/serving/samples/hello-world/helloworld-deno
```
Expand Down Expand Up @@ -87,7 +87,7 @@ folder) you're ready to build and deploy the sample app.
Docker Hub, run these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-deno .

Expand All @@ -100,7 +100,7 @@ folder) you're ready to build and deploy the sample app.
in `service.yaml` matches the container you built in the previous step. Apply
the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -113,27 +113,27 @@ folder) you're ready to build and deploy the sample app.

1. Run the following command to find the domain URL for your service:

```shell
```bash
kubectl get ksvc helloworld-deno --output=custom-columns=NAME:.metadata.name,URL:.status.url
```

Example:

```shell
```bash
NAME URL
helloworld-deno http://helloworld-deno.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-deno.default.1.2.3.4.sslip.io
```

Example:

```shell
```bash
curl http://helloworld-deno.default.1.2.3.4.sslip.io
[1] "Hello R Sample v1!"
```
Expand All @@ -144,6 +144,6 @@ folder) you're ready to build and deploy the sample app.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
12 changes: 6 additions & 6 deletions community/samples/serving/helloworld-elixir/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Now you can visit [`localhost:4000`](http://localhost:4000) from your browser.

1. Generate a new project.

```shell
```bash
mix phoenix.new helloelixir
```

Expand Down Expand Up @@ -127,7 +127,7 @@ above.
shell of an example on `config/prod.secret.exs.sample` and you can use the
following command to generate a new prod secrets file.

```shell
```bash
SECRET_KEY_BASE=$(elixir -e ":crypto.strong_rand_bytes(48) |> Base.encode64 |> IO.puts")
sed "s|SECRET+KEY+BASE|$SECRET_KEY_BASE|" config/prod.secret.exs.sample >config/prod.secret.exs
```
Expand All @@ -136,7 +136,7 @@ above.
Docker Hub, run these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-elixir .

Expand All @@ -149,7 +149,7 @@ above.
in `service.yaml` matches the container you built in the previous step.
Apply the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -172,7 +172,7 @@ above.
1. Now you can make a request to your app to see the results. Replace
`{IP_ADDRESS}` with the address you see returned in the previous step.

```shell
```bash
curl http://helloworld-elixir.default.1.2.3.4.sslip.io

...
Expand Down Expand Up @@ -294,6 +294,6 @@ above.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
8 changes: 4 additions & 4 deletions community/samples/serving/helloworld-haskell/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ folder) you're ready to build and deploy the sample app.
Docker Hub, enter these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-haskell .

Expand All @@ -152,7 +152,7 @@ folder) you're ready to build and deploy the sample app.
in `service.yaml` matches the container you built in the previous step. Apply
the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -174,7 +174,7 @@ folder) you're ready to build and deploy the sample app.
1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-haskell.default.1.2.3.4.sslip.io
Hello world: Haskell Sample v1
```
Expand All @@ -183,6 +183,6 @@ folder) you're ready to build and deploy the sample app.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
14 changes: 7 additions & 7 deletions community/samples/serving/helloworld-java-micronaut/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ your sample app to your cluster:
Docker Hub registry. You must replace the `{username}` variables in the
following commands with your Docker Hub username.

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-java-micronaut .

Expand All @@ -230,7 +230,7 @@ your sample app to your cluster:
1. Now that your container image is in the registry, you can deploy it to your
Knative cluster by running the `kubectl apply` command:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -253,27 +253,27 @@ To verify that your sample app has been successfully deployed:
1. Retrieve the URL for your service, by running the following `kubectl get`
command:

```shell
```bash
kubectl get ksvc helloworld-java-micronaut --output=custom-columns=NAME:.metadata.name,URL:.status.url
```

Example result:

```shell
```bash
NAME URL
helloworld-java-micronaut http://helloworld-java-micronaut.default.1.2.3.4.sslip.io
```

1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-java-micronaut.default.1.2.3.4.sslip.io
```

Example result:

```shell
```bash
Hello World: Micronaut Sample v1
```

Expand All @@ -284,6 +284,6 @@ Congratulations on deploying your sample Java app to Knative!
To remove the sample app from your cluster, run the following `kubectl delete`
command:

```shell
```bash
kubectl delete --filename service.yaml
```
18 changes: 9 additions & 9 deletions community/samples/serving/helloworld-java-quarkus/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ which you update and create the necessary build and configuration files:
1. From the console, create a new empty web project using the Maven archetype
commands:

```shell
```bash
mvn io.quarkus:quarkus-maven-plugin:0.13.3:create \
-DprojectGroupId=com.redhat.developer.demos \
-DprojectArtifactId=helloworld-java-quarkus \
Expand Down Expand Up @@ -129,13 +129,13 @@ which you update and create the necessary build and configuration files:
1. Remove `src/main/resources/META-INF/resources/index.html` file since it's
unncessary for this example.

```shell
```bash
rm src/main/resources/META-INF/resources/index.html
```

1. Remove `.dockerignore` file since it's unncessary for this example.

```shell
```bash
rm .dockerignore
```

Expand Down Expand Up @@ -206,7 +206,7 @@ which you update and create the necessary build and configuration files:

1. Run the application locally:

```shell
```bash
./mvnw compile quarkus:dev
```

Expand All @@ -221,7 +221,7 @@ folder) you're ready to build and deploy the sample app.
Docker Hub, run these commands replacing `{username}` with your Docker Hub
username:

```shell
```bash
# Build the container on your local machine
docker build -t {username}/helloworld-java-quarkus .

Expand All @@ -238,7 +238,7 @@ folder) you're ready to build and deploy the sample app.
in `service.yaml` matches the container you built in the previous step. Apply
the configuration using `kubectl`:

```shell
```bash
kubectl apply --filename service.yaml
```

Expand All @@ -251,7 +251,7 @@ folder) you're ready to build and deploy the sample app.

1. To find the URL for your service, use

```shell
```bash
kubectl get ksvc helloworld-java-quarkus

NAME URL
Expand All @@ -261,7 +261,7 @@ folder) you're ready to build and deploy the sample app.
1. Now you can make a request to your app and see the result. Replace
the URL below with the URL returned in the previous command.

```shell
```bash
curl http://helloworld-java-quarkus.default.1.2.3.4.sslip.io

Namaste Knative World!
Expand All @@ -271,6 +271,6 @@ folder) you're ready to build and deploy the sample app.

To remove the sample app from your cluster, delete the service record:

```shell
```bash
kubectl delete --filename service.yaml
```
Loading