I finally got to test the preview feature of root access.
Here’s what I am trying to achieve:
- Install ddev
I want ddev installation to be part of a prebuild, to speed up development, and when a developer opens the workspace it should already be after
ddev start command.
After setting this up, when I open the workspace, ddev is not installed.
How can I get it to work, that what was installed with
brew will be available for anyone that uses the workspace?
Here’s the copy of gitpod.yml:
# Use 'lock file' to delay running ddev until it is installed
- name: ddev_install
brew tap drud/ddev && brew install ddev
- name: docker_up
command: sudo docker-up
- name: ddev_run
init: sleep 1 && while [ -f /tmp/.ddev-lock ]; do sleep 1; done
command: ddev start
# enable for the master/default branch (defaults to true)
# enable for all branches in this repo (defaults to false)
# enable for pull requests coming from this repo (defaults to true)
# enable for pull requests coming from forks (defaults to false)
# add a check to pull requests (defaults to true)
# add a "Review in Gitpod" button as a comment to pull requests (defaults to false)
# add a "Review in Gitpod" button to the pull request's description (defaults to false)
# add a label once the prebuild is ready to pull requests (defaults to false)
This is the repo:
Here’s a snapshot of the workspace: