From 2bb8e78112329a6d48c368e4be0ed543a91c03eb Mon Sep 17 00:00:00 2001 From: itsjdubois Date: Mon, 21 Apr 2025 16:47:32 -0400 Subject: [PATCH 1/2] fet: add option for github deployment --- docs/serverless/get-started.md | 29 +++++++++++++++++++++++++++-- 1 file changed, 27 insertions(+), 2 deletions(-) diff --git a/docs/serverless/get-started.md b/docs/serverless/get-started.md index 366654b..68ea742 100644 --- a/docs/serverless/get-started.md +++ b/docs/serverless/get-started.md @@ -187,12 +187,16 @@ CMD ["python3", "-u", "rp_handler.py"] docker push yourusername/serverless-test:latest ``` -## Step 7: Deploy your endpoint using the web interface +## Step 7: Deploy your endpoint + +You have a few options for deploying your custom endpoint: + +### Option 1: Deploy using a Docker image 1. Go to the [Serverless section](https://www.runpod.io/console/serverless) of the RunPod web interface. 2. Click **New Endpoint**. 3. Under **Custom Source**, select **Docker Image**, then click **Next**. -4. In the **Container Image** field, enter your Docker image URL: `docker.io/yourusername/serverless-test:latest` +4. In the **Container Image** field, enter your Docker image URL: `docker.io/yourusername/serverless-test:latest`. 5. (Optional) Enter a custom name for your endpoint, or use the randomly generated name. 6. Under **Worker Configuration**, check the box for **16 GB** GPUs. 7. Leave the rest of the settings at their defaults. @@ -200,6 +204,27 @@ CMD ["python3", "-u", "rp_handler.py"] You should be automatically redirected to a dedicated detail page for your new endpoint. +### Option 2: Deploy using a GitHub repository + +1. Go to the [Serverless section](https://www.runpod.io/console/serverless) of the RunPod web interface. +2. Click **New Endpoint**. +3. Under **Custom Source**, select **GitHub Repository**. +4. You will be prompted to connect your GitHub account if you haven't done so already. +5. Once connected, select the repository that contains your Dockerfile and handler code. +6. Specify the branch you want to use for deployment. +7. (Optional) Enter a custom name for your endpoint, or use the randomly generated name. +8. Under **Worker Configuration**, check the box for **16 GB** GPUs. +9. Leave the rest of the settings at their defaults. +10. Click **Create Endpoint**. + +The system will automatically build your Docker image from the specified GitHub repository and deploy your endpoint. + +You should be automatically redirected to a dedicated detail page for your new endpoint. + +:::note +For more information on GitHub integration, [read more here](/serverless/github-integration). +::: + ## Step 8: Test your endpoint on RunPod To test your endpoint, click the **Requests** tab in the endpoint detail page: From 83d3d7c194118e3fb58f2bc88956508af6f05bf0 Mon Sep 17 00:00:00 2001 From: itsjdubois Date: Mon, 21 Apr 2025 16:48:46 -0400 Subject: [PATCH 2/2] feat: add back web interface --- docs/serverless/get-started.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/serverless/get-started.md b/docs/serverless/get-started.md index 68ea742..2e9c7e4 100644 --- a/docs/serverless/get-started.md +++ b/docs/serverless/get-started.md @@ -187,7 +187,7 @@ CMD ["python3", "-u", "rp_handler.py"] docker push yourusername/serverless-test:latest ``` -## Step 7: Deploy your endpoint +## Step 7: Deploy your endpoint using the web interface You have a few options for deploying your custom endpoint: