4  Environment Setup

Setting up your development environment correctly is crucial for a smooth Tercen development experience. This chapter covers all the tools, accounts, and configurations you’ll need to start building operators, workflow templates, and applications for the Tercen platform.

4.1 Prerequisites

Before diving into Tercen development, ensure you have the following essential tools and accounts set up:

4.1.1 Required Tools

Git Version Control - Install Git for your operating system - Git is essential for version control and collaboration - Verify installation: git --version

Docker

Docker is required for local testing and deployment of operators. Installation varies by platform:

Windows: - Install Docker Desktop for Windows - Important: Select the WSL 2 backend option during installation for optimal performance - Requires Windows 10/11 with WSL 2 enabled

macOS: - Install Docker Desktop for Mac - Available for both Intel and Apple Silicon (M1/M2) Macs - Download the appropriate version for your chip architecture

Linux: - Install Docker Engine: Follow the official Docker installation guide for Linux - Or install Docker Desktop for Linux: Docker Desktop for Linux - Popular distributions have specific installation steps (Ubuntu, CentOS, Debian, etc.)

Verification (all platforms):

docker --version
docker run hello-world

Ensure the Docker daemon is running before starting development.

GitHub Account - Create a GitHub account if you don’t have one - Required for repository hosting and collaboration - If using alternative version control systems, please contact the Tercen team

Docker Configuration

Make sure Docker Desktop is running before starting development. On Windows, select the WSL 2 backend option during installation for optimal performance.

4.2 Development Environment

4.2.2 GitHub Repository Templates

Tercen provides pre-configured repository templates that include:

  • Development containers with all Tercen dependencies
  • Template code for operators in R and Python
  • CI/CD pipelines for automated testing and deployment
  • Documentation templates for consistent documentation

4.3 Tercen Instance Setup

You have two options for accessing Tercen during development:

4.3.2 Option 2: Local Tercen Studio (Advanced)

For advanced development and testing, you can set up a local Tercen instance:

Installation Steps:

  1. Clone Tercen Studio repository:
git clone https://github.com/tercen/tercen_studio.git
cd tercen_studio
  1. Create Docker network:
docker network create tercen
  1. Start Tercen Studio:
docker-compose up -d
  1. Access local instance:
Local vs Cloud Development
  • Cloud: Easier setup, shared resources, collaboration features
  • Local: Full control, offline development, testing isolation

Most developers start with cloud development and move to local setup for advanced use cases.

4.3.3 Troubleshooting Common Issues

Docker not starting: - Ensure Docker Desktop is running - Check system requirements for Docker - On Windows, verify WSL 2 is enabled

Git authentication issues: - Set up SSH keys for GitHub: GitHub SSH documentation - Or use GitHub CLI: gh auth login

VS Code extensions not working: - Restart VS Code after installing extensions - Check extension compatibility with your VS Code version - Ensure you have the latest version of VS Code

4.4 Next Steps

Your development environment is now ready for building powerful analytical tools on the Tercen platform!

You can now start developing a module. The next chapters cover module development. Each module type has dedicated sections in this guide with detailed instructions.