Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
4117262
added migration
Sahu97494 May 8, 2025
71aaa06
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
a79b00a
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
77fdc37
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
48c6e68
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
e479984
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
36f98a6
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
30b7ab9
Documentation edits made through Mintlify web editor
muhsinking May 9, 2025
440d918
update svg
muhsinking May 9, 2025
08925f4
Add square icon
muhsinking May 9, 2025
55c9d2a
Switch to square logo
muhsinking May 9, 2025
b4fc7af
Add console to sidebar
muhsinking May 13, 2025
5655a9c
Update light theme color
muhsinking May 14, 2025
f1a26b3
Add pricing page
muhsinking May 14, 2025
da63d28
Rebuild introduction page using cards
muhsinking May 14, 2025
21124f9
Fix links
muhsinking May 14, 2025
8890577
update
muhsinking May 14, 2025
e4c9cc5
Remove gradient blur
muhsinking May 14, 2025
4f10bdd
Test lucide icons
muhsinking May 14, 2025
6fe6c49
Experiment with solid/duotone icons
muhsinking May 14, 2025
fe699eb
Remove triple quotes, update code colors
muhsinking May 14, 2025
a1e20eb
Update colors and comments
muhsinking May 14, 2025
d475f50
Update colors, text willow theme
muhsinking May 15, 2025
7e6230e
Convert markdown steps to mintlify steps
muhsinking May 15, 2025
39f0f79
Update CSS
muhsinking May 15, 2025
0d26414
Remove file names
muhsinking May 15, 2025
138f5fd
Revert lgoo
muhsinking May 16, 2025
5d51030
Use old logo
muhsinking May 16, 2025
e49c3ac
Update kapa logo href
muhsinking May 16, 2025
65709d8
Update colors using brand book
muhsinking May 16, 2025
fe3f837
Documentation edits made through Mintlify web editor
mintlify[bot] May 17, 2025
f91b341
Documentation edits made through Mintlify web editor
muhsinking May 19, 2025
3fa66ff
Documentation edits made through Mintlify web editor
muhsinking May 19, 2025
cbfbe2b
Documentation edits made through Mintlify web editor
muhsinking May 19, 2025
672de11
Fix broken links
muhsinking May 19, 2025
b5263de
Test descriptions
muhsinking May 19, 2025
0bfdc6e
Update description
muhsinking May 19, 2025
b01e1f6
Update descriptions
muhsinking May 19, 2025
ce1530a
Add readme
muhsinking May 19, 2025
2556d44
re-add GPU/CPU type helpers
muhsinking May 19, 2025
74f7a30
Merge branch 'main' into mintlify-migration
muhsinking May 19, 2025
bdca749
Fix typo
muhsinking May 19, 2025
eec1f63
Minor writing changes
muhsinking May 19, 2025
b3964e9
Update API ref code background color
muhsinking May 20, 2025
9f66073
Add hub docs
muhsinking May 20, 2025
bc89eab
Update
muhsinking May 20, 2025
e74df8f
Add screenshots
muhsinking May 20, 2025
b6a576b
Add hub deployment info to serverless overview
muhsinking May 20, 2025
b25fa0c
Merge branch 'main' into hub-docs-mintlify
muhsinking May 20, 2025
d7d6612
Merge branch 'main' into hub-docs-mintlify
muhsinking May 20, 2025
3d89390
Update beta flags
muhsinking May 21, 2025
32cf73f
Update doc descriptions
muhsinking May 21, 2025
2b27b6f
update description
muhsinking May 21, 2025
6a31e3f
Update beta flag
muhsinking May 21, 2025
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
Prev Previous commit
Next Next commit
Convert markdown steps to mintlify steps
  • Loading branch information
muhsinking committed May 15, 2025
commit 7e6230e026a3833b76a35074caa2b603bfdee4e3
91 changes: 47 additions & 44 deletions serverless/workers/custom-worker.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -28,38 +28,38 @@ In this tutorial you'll learn how to:
## Step 1: Create a Python virtual environment

First, set up a virtual environment to manage your project dependencies.

1. Run this command in your local terminal:

```sh
# Create a Python virtual environment
python3 -m venv venv
```

2. Then activate the virtual environment:

<Tabs>
<Tab title="macOS/Linux">
```sh
source venv/bin/activate
```

</Tab>

<Tab title="Windows">
```sh
venv\Scripts\activate
```

</Tab>

</Tabs>

3. Finally, install the RunPod SDK:

```sh
pip install runpod
```
<Steps>
<Step title="Create a virtual environment">
Run this command in your local terminal:

```sh
# Create a Python virtual environment
python3 -m venv venv
```
</Step>

<Step title="Activate the virtual environment">
<Tabs>
<Tab title="macOS/Linux">
```sh
source venv/bin/activate
```
</Tab>

<Tab title="Windows">
```sh
venv\Scripts\activate
```
</Tab>
</Tabs>
</Step>

<Step title="Install the RunPod SDK">
```sh
pip install runpod
```
</Step>
</Steps>

## Step 2: Create a handler file

Expand Down Expand Up @@ -165,18 +165,21 @@ Instead of building and pushing your image via Docker Hub, you can also [deploy
</Info>

Before you can deploy your worker on RunPod Serverless, you need to push it to Docker Hub:

1. Build your Docker image, specifying the platform for RunPod deployment, replacing `[YOUR_USERNAME]` with your Docker username:

```sh
docker build --platform linux/amd64 --tag [YOUR_USERNAME]/serverless-test .
```

2. Push the image to your container registry:

```sh
docker push yourusername/serverless-test:latest
```
<Steps>
<Step title="Build your Docker image">
Build your Docker image, specifying the platform for RunPod deployment, replacing `[YOUR_USERNAME]` with your Docker username:

```sh
docker build --platform linux/amd64 --tag [YOUR_USERNAME]/serverless-test .
```
</Step>

<Step title="Push the image to your container registry">
```sh
docker push [YOUR_USERNAME]/serverless-test:latest
```
</Step>
</Steps>

## Step 7: Deploy your worker using the RunPod console

Expand Down