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: docs/tutorials/deploy-with-gpu.mdx
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,7 @@ sidebar_position: 500
5
5
6
6
# Deploy a GPU-Powered Application With Defang
7
7
8
-
This tutorial guides you to create and deploy a GPU-powered application on AWS using Defang and Mistral. We will walk you through the whole deployment process based on this [Deploying Mistral with vLLM](https://github.com/DefangLabs/defang/tree/main/samples/other/vllm) sample.
8
+
This tutorial guides you to create and deploy a GPU-powered application on AWS using Defang and Mistral. We will walk you through the whole deployment process based on this [Deploying Mistral with vLLM](https://github.com/DefangLabs/samples/tree/main/samples/vllm) sample.
9
9
10
10
<iframewidth="560"height="315"src="https://www.youtube.com/embed/kynFa2zU7hQ?si=qdV0xa6vkhMFJ6qv"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
11
11
@@ -25,11 +25,11 @@ This process can take a few days for AWS to approve.
25
25
26
26
This sample requires a HugoingFace token to download the model. You can get a token by signing up at [HuggingFace](https://huggingface.co/join) and then going to [your settings](https://huggingface.co/settings/tokens) to get your token.
27
27
28
-
## Step 1: Clone the sample project
28
+
## Step 1 - Clone the sample project
29
29
30
-
You'll need to clone [this sample](https://github.com/DefangLabs/defang/tree/main/samples/other/vllm) to go through this tutorial.
30
+
You'll need to clone [this sample](https://github.com/DefangLabs/samples/tree/main/samples/vllm) to go through this tutorial.
31
31
32
-
## Step 2: Check your [Defang BYOC](../concepts/defang-byoc.md) settings
32
+
## Step 2 - Check your [Defang BYOC](../concepts/defang-byoc.md) settings
33
33
34
34
* Make sure you [install the latest version of the Defang CLI](../getting-started/installing.md)
35
35
* Then, make sure you have properly [authenticated your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). The Defang CLI makes use of AWS environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`, so make sure the correct values are set for those.
@@ -40,7 +40,7 @@ aws sts get-caller-identity
40
40
```
41
41
42
42
43
-
## Step 2: Prepare your Environment
43
+
## Step 3 - Prepare your Environment
44
44
* Log into your Defang account
45
45
```bash
46
46
defang login
@@ -54,7 +54,7 @@ defang config set --name HF_TOKEN
54
54
[Configuration](../concepts/configuration.md) stores your sensitive information such as API keys, passwords, and other credentials for you.
55
55
56
56
57
-
## Step 3: Explore the Compose File
57
+
## Step 4 - Explore the Compose File
58
58
59
59
The `compose.yml` file is where you define your services and their configurations.
60
60
@@ -153,10 +153,10 @@ You can see here how Defang's [networking](../concepts//networking.mdx) works. T
153
153
```
154
154
155
155
156
-
## Step 4: Deploy to Your Own AWS Account with Defang
156
+
## Step 5 - Deploy to Your Own AWS Account with Defang
Copy file name to clipboardExpand all lines: docs/tutorials/use-your-own-domain-name.mdx
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,7 @@ In our latest version of [Defang BYOC](https://docs.defang.io/docs/concepts/defa
10
10
<iframewidth="560"height="315"src="https://www.youtube.com/embed/n4RlMpsdTbs?si=_Ru6tobSbi9LT4Q1"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
11
11
12
12
13
-
## Step 1 : Check your [Defang BYOC](../concepts/defang-byoc.md) settings
13
+
## Step 1 - Check your [Defang BYOC](../concepts/defang-byoc.md) settings
14
14
15
15
* Make sure you [install the latest version of the Defang CLI](../getting-started/installing.md)
16
16
* Then, make sure you have properly [authenticated your AWS account](https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html). The Defang CLI makes use of AWS environment variables like `AWS_PROFILE`, `AWS_REGION`, `AWS_ACCESS_KEY_ID`, and `AWS_SECRET_ACCESS_KEY`, so make sure the correct values are set for those.
@@ -21,7 +21,7 @@ aws sts get-caller-identity
21
21
```
22
22
23
23
24
-
## Step 2: Setup a Hosted Zone in AWS Route 53
24
+
## Step 2 - Setup a Hosted Zone in AWS Route 53
25
25
26
26
:::info
27
27
**If you purchased your domain with AWS, you can skip this step.**
@@ -32,7 +32,7 @@ For Defang to be able to manage your domain, you need to create a [public hosted
32
32
<imgsrc="/img/domains-tutorial/zone.png"alt="Hosted Zone UI Screenshot"style={{maxWidth: 650}} />
33
33
34
34
35
-
## Step 3: Configure your DNS settings in your domain registrar
35
+
## Step 3 - Configure your DNS settings in your domain registrar
36
36
37
37
:::info
38
38
**If you purchased your domain with AWS, you can skip this step.**
@@ -43,7 +43,7 @@ You'll need to create NS records in your domain registrar that point to the AWS
43
43

44
44
45
45
46
-
## Step 4: Set up Your Compose File
46
+
## Step 4 - Set up Your Compose File
47
47
In your compose file, specify the domain name you want to use, for example
Copy file name to clipboardExpand all lines: docs/tutorials/using-codespaces-gitpod.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,69 +3,69 @@ title: Using Codespaces and Gitpod
3
3
sidebar_position: 700
4
4
---
5
5
6
-
# Defang with Codespaces and GitPod
6
+
# Defang With Codespaces and GitPod
7
7
8
8
<iframewidth="560"height="315"src="https://www.youtube.com/embed/71pmCfLdxTg?si=Q9YIESYEUNTBFBIy"title="YouTube video player"frameborder="0"allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"referrerpolicy="strict-origin-when-cross-origin"allowfullscreen></iframe>
9
9
10
10
This tutorial will guide you to set up Defang in both Codespaces and Gitpod.
11
11
12
12
## Getting Started with Github Codespaces and Defang
13
13
14
-
### Step 1: Clone the Defang Codespace Project
14
+
### Step 1 - Clone the Defang Codespace Project
15
15
Start by cloning the [Defang Github-Codespace](https://github.com/DefangLabs/github-codespace) repo and pushing it to your own account. This repository is configured with a Codespace that has Defang pre-installed.
16
16
17
17
18
-
### Step 2: Create a Codespace
18
+
### Step 2 - Create a Codespace
19
19
Once you've pushed to your own GitHub repo, you'll be able to create a Codespace by clicking the Code button, selecting the Codespaces tab, and clicking the + icon. This will set up a development environment with Defang already installed, which might take a few minutes.
For the `defang login` command to work correctly, you must open the Codespace in VS Code desktop. This is required because the login process is designed to run on localhost.
26
26
27
27
28
28

29
29
30
30
31
-
### Step 4: Run Defang Login
31
+
### Step 4 - Run Defang Login
32
32
Within a VS Code desktop terminal, execute the following command.
33
33
```bash
34
34
defang login
35
35
```
36
36
Although it may initially refuse to connect on your localhost, going back will show a "successfully logged in" message, confirming that you're logged into Defang.
37
37
38
38
39
-
### Step 5: Verify Running Services
39
+
### Step 5 - Verify Running Services
40
40
Now that you're logged in, you can use Defang commands. You can test that everything is working properly by running `defang ls` to list your running services.
41
41
42
42
43
43
## Getting Started with GitPod Workspace with Defang
44
44
45
-
### Step 1: Clone the Defang GitPod Workspace Project
45
+
### Step 1 - Clone the Defang GitPod Workspace Project
46
46
Start by cloning the [Defang Gitpod-Workspace](https://github.com/DefangLabs/gitpod-workspace) repo and pushing it to your own GitHub, GitLab, or BitBucket account. This repository includes a Workspace configuration that pre-installs Defang.
47
47
48
48
49
-
### Step 2: Initialize GitPod Workspace
49
+
### Step 2 - Initialize GitPod Workspace
50
50
Navigate `https://gitpod.io/#<your-repo-url>` to create your new workspace.
51
51
In the repository, we have a yaml file indicating that we are using a pre-built dockerfile which installs Defang CLI for you.
52
52
53
53
54
-
### Step 3: Lauch VS Code from GitPod
54
+
### Step 3 - Lauch VS Code from GitPod
55
55
Open VS Code from GitPod, you will likely need to have the GitPod VS Code extension installed.
56
56
57
57

58
58
59
59

60
60
61
61
62
-
### Step 4: Run Defang Login
62
+
### Step 4 - Run Defang Login
63
63
Within a VS Code desktop terminal, execute the following command.
64
64
65
65
```bash
66
66
defang login
67
67
```
68
68
69
69
70
-
### Step 5: Verify Running Services
70
+
### Step 5 - Verify Running Services
71
71
Now that you're logged in, you can use Defang commands. You can test that everything is working properly by running `defang ls` to list your running services.
0 commit comments