- Introduction
- Getting started
- Configuration
- Dev Container
- Automations
- Editors
- VS Code
- Cursor
- JetBrains
- Zed
- Gitpod Desktop
- Self-Hosted Runner
- AWS
- Azure
Coming soon
- GCP
Coming soon
- Linux
Coming soon
- Source Control
- GitHub
- GitLab
Coming soon
- Bitbucket
Coming soon
- Integrations
- Port sharing
- Personal access tokens
- Administration
- Organizations
- Projects
- Billing
- Reference
- CLI
Optimizing Your Environment
There are several ways to optimize the startup of your environment:
Place stable dependencies in the Dockerfile: For tools that rarely change (e.g., build tools, system dependencies), include them directly in the custom Dockerfile.
Use prebuilt Docker images: Build your image, and push it to a container registry. Reference this image in your devcontainer.json file to avoid rebuilding from scratch each time.
Use automations for dynamic dependencies: For frequently changing tools and dependencies, such as npm modules, use Automations to handle installations during the environment’s startup process.
Install dependencies in the background: Consider setting waitFor to onCreateCommand to run updateContentCommand in the background. You can monitor this process through the environment logs.
Gitpod environments may take some time to start initially, but they’re quick to stop and restart after setup, and they automatically stop when disconnected. Here’s how you can leverage these to speed up your workflows:
Reuse environments: Accelerate recurring tasks by reusing environments. For instance, eliminate the need to repeatedly repopulate databases or download dependencies.
Use multiple environments: Organize your work by maintaining separate environments for different tasks, such as code reviews and feature development for. This enables faster context switching within the same repository.