Setting Up the Development Environment
Creating a custom channel for Rendered.ai is a Python-based development task. The channels are Docker containers and the development process is simplified by Rendered.ai maintained Development Containers that can be used with VSCode's Remote-Containers extension. This document will take you through installing Docker and the VSCode Remote-Containers extension so you can begin channel development on your local machine.
This process has been tested on several Linux distributions and Windows 11 with WSL2, there have been reported issues with M1 Macbooks with Docker – if you do have issues we recommend using Remote Development with AWS EC2 for a better experience.
If you run into any issues or need additional help, email the Support team at support@rendered.ai.
Installing Docker
To install Docker for your local machine, follow the official installation instructions at https://docs.docker.com/engine/install/.
After installing, we recommend running the hello-world test command to ensure Docker is running as expected. The following command will pull a test Docker image and print out hello world message.
docker run hello-world
![]() |
---|
Successful Test of Docker Engine |
Installing VSCode and Extensions
Visual Studio Code is free code editor that allows users to install extensions from an extension marketplace. The Rendered.ai Development Environment uses several extensions from the marketplace to simplify the developer experience. VSCode can be installed by following the official installation guide at https://code.visualstudio.com/Download.
Extension Marketplace
To reach the Extension Marketplace, click the Extensions symbol on the left-hand side of the window.
![](../__attachments/1576501249/vscode-Page-11.drawio.png?inst-v=8a137d1e-5919-4abf-b9d8-875c13f397aa)
Extensions Marketplace
Next we’ll install two extensions: Docker and Dev Containers. The Docker extensions can be helpful in seeing the Docker images and Docker containers that are currently running. The Dev Containers extension allows us to use the Docker container as a full-featured development environment from within VSCode – this helps ensure that the environment we are developing in is as close as possible to what gets deployed to the platform.
![](../__attachments/1576501249/vscode-docker.png?inst-v=8a137d1e-5919-4abf-b9d8-875c13f397aa)
Docker Extension
![](../__attachments/1576501249/devcontainers.png?inst-v=8a137d1e-5919-4abf-b9d8-875c13f397aa)
Dev Containers Extension
After we have the extensions installed, we are ready to pull the code and start our development.
Testing Dev Containers
We recommend following the Run and Deploy the Toybox Channel tutorial to ensure your development environment is configured correctly. This will take you through cloning Rendered.ai’s Example channel, starting the Development Container then testing the execution of the channel.
Troubleshooting
Here we have compiled a list of common issues users may run into while configuring their development environment.
Docker not foundWhen starting the Development container in VSCode the following message may appear. Start the Docker Desktop application. |
---|
Allow your non-root user to execute dockerWhen starting the Development Container in VSCode the following message may appear. ![]() This is due to VSCode having insufficient permissions to access the docker daemon on your behalf. You will need to ensure that the user has access to the docker daemon, on Linux operating systems you can add the current user to the docker group.
CODE
Important: Log out and log back in again to refresh group membership. |
Failure to pull Public ImageWhen starting the Development Container in VSCode the following message may appear. ![]() |