Integrating with Gitpod and Codespaces
On the project pages of the Conveyor UI we can show links to online development environments. We support both Gitpod and GitHub Codespaces. The links will only show up when the git link is filled in and the integration is enabled. When you don't see those links, reach out to your Conveyor account admin.
The Conveyor cookiecutter templates come with pre-configuration for both integrations. When you want to add the Conveyor CLI to an existing configuration, we recommend the following configuration:
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
- name: Gitpod config (browser open, workspace bin path)
mkdir -p /workspace/bin
cat > /workspace/bin/open.sh <<'EOF'
exec gp preview --external "$@"
chmod +x /workspace/bin/open.sh
sudo update-alternatives --install /usr/bin/www-browser www-browser /workspace/bin/open.sh 100
- name: Install conveyor
init: curl -s https://static.conveyordata.com/cli-install/install.sh | bash
curl -s https://static.conveyordata.com/cli-install/update.sh | bash
// For format details, see https://aka.ms/devcontainer.json.
// Use 'postCreateCommand' to run commands after the container is created.
"postCreateCommand": "curl -s https://static.conveyordata.com/cli-install/install.sh | bash",
"postStartCommand": "curl -s https://static.conveyordata.com/cli-install/update.sh | bash",