Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add how-to guide on rad run applications #793

Merged
merged 1 commit into from
Sep 26, 2023
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
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ type: docs
title: "How-To: Deploy an application with Github Actions"
linkTitle: "Deploy via GitHub Actions"
description: "Learn about adding your Radius apps to your deployment pipelines with GitHub Actions"
weight: 200
weight: 300
categories: "How-To"
tags: ["CI/CD"]
---
Expand Down
Original file line number Diff line number Diff line change
@@ -1,35 +1,31 @@
---
type: docs
title: "Overview: Deploying applications into a Radius environment"
title: "How-To: Deploying applications into a Radius environment"
linkTitle: "Deploy via CLI"
description: "Learn how to deploy a Radius application"
weight: 100
categories: "Overview"
weight: 200
categories: "How-To"
tags: ["deployments"]
---

## Run an application
## Pre-requisites
- [An authored Radius application]({{< ref author-apps >}})

Once you have [authored an application]({{< ref author-apps >}}), you can run an application using the [`rad run`]({{< ref rad_run >}}) command.
## Step 1 : Deploy an application into a Radius environment

```bash
rad run app.bicep
```

This will deploy the application to your environment, create port-forwards for all container ports, and stream container logs to the console.

## Deploy an application
{{< tabs Deploy-app Deploy-app-with-parameters >}}

{{% codetab %}}
An application can be deployed to an environment with [`rad deploy`]({{< ref rad_deploy>}}):

```bash
rad deploy app.bicep
```
This will deploy the application to the created Radius environment.
{{% /codetab %}}

### Parameters

Parameters can be included as part of `rad run` or `rad deploy` via the `-p/--parameters` flag:
{{% codetab %}}
Parameters can be included as part of `rad deploy` via the `-p/--parameters` flag:

```bash
rad deploy app.bicep -p param1=value1 -p param2=value2
Expand All @@ -38,4 +34,9 @@ Parameters can be included as part of `rad run` or `rad deploy` via the `-p/--pa
This will deploy the application to the created Radius environment injecting the parameters into the application.

You can find more examples of deploying applications with parameters [here]({{< ref "rad_deploy#examples" >}}).

{{% /codetab %}}

{{< /tabs >}}

> Follow the [how-to guide]({{< ref troubleshooting-radius >}}) for guidance on troubleshooting your Radius application

Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
---
type: docs
title: "How-To: Run applications on Radius"
linkTitle: "Run apps"
description: "Learn how to run applications on Radius"
weight: 100
categories: "How-To"
tags: ["deployments"]
---

## Pre-requisites
- [An authored Radius application]({{< ref author-apps >}})

## Step 1: Run an application

{{< tabs Run-app Run-app-with-parameters >}}

{{% codetab %}}
You can run an application using the [`rad run`]({{< ref rad_run >}}) command.

```bash
rad run app.bicep
```

This will deploy the application to your environment, create port-forwards for all container ports, and stream container logs to the console.
{{% /codetab %}}

{{% codetab %}}
Parameters can be included as part of `rad run` via the `-p/--parameters` flag:

```bash
rad run app.bicep -p param1=value1 -p param2=value2
```

This will deploy the application to the created Radius environment injecting the parameters into the application.

You can find more examples of deploying applications with parameters [here]({{< ref "rad_run#examples" >}}).
{{% /codetab %}}

{{< /tabs >}}

> Follow the [how-to guide]({{< ref troubleshooting-radius >}}) for guidance on troubleshooting your apps
Loading