Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run DrupalPod locally #10

Open
shaal opened this issue Jul 5, 2021 · 6 comments
Open

Run DrupalPod locally #10

shaal opened this issue Jul 5, 2021 · 6 comments
Labels
ddev enhancement New feature or request help wanted Extra attention is needed

Comments

@shaal
Copy link
Owner

shaal commented Jul 5, 2021

Is your feature request related to a problem? Please describe

Users would sometimes prefer not using Gitpod, and work locally instead.

Describe the solution you'd like

Users who don't want to use Gitpod, can git clone DrupalPod, and thanks to ddev - run the project locally.

  • follow up with adding this feature to the browser extension

Describe alternatives you've considered

Additional context

@shaal shaal added enhancement New feature or request help wanted Extra attention is needed ddev labels Jul 5, 2021
@tyler36
Copy link
Contributor

tyler36 commented Jul 27, 2021

Just started using DrupalPod extention but can see myself running out of GitPod hours quickly.

I'm only jkust starting my Docker journey but if there's something I can test for ...

@shaal
Copy link
Owner Author

shaal commented Jul 27, 2021

@tyler36 If you need more Gitpod hours, I would suggest applying for their professional open-source plan. It is what I did and it works great for me - https://www.gitpod.io/docs/professional-open-source/

Regarding this PR, since it's based on DDEV, it should be fairly simple to make a local version of it (and update the extension to display the command line to run to get same results locally).
Another option - one could start a Gitpod workspace, go to Gitpod dashboard, click on the 3 vertical dots on the right of the workspace you just opened, click Download, and a 3GB file will be downloaded to your machine.
I didn't have a chance to play with that option, but interested to know how it works.

@tyler36
Copy link
Contributor

tyler36 commented Jul 28, 2021

Thanks for the update. Although the Profession Open Source options seem generous, I don't yet qualify.

Regarding this PR, since it's based on DDEV
Um ... which PR?

Unforunately, the download option does work for me ... I get "Oh, no! Something went wrong! Error". I've logged an issue with them

@tyler36
Copy link
Contributor

tyler36 commented Jul 28, 2021

So I had a though ... VSCode has an offical extention called Remote: Containers which basically run the setup in a seperated Docker instance. This is what we want right?

I tried cloning https://github.com/shaal/ddev-gitpod.git ,

  • then in VSCode I selected "Remote Containers: open folder in container"
  • this appears to detect the .docker file and pull down images

Between the .Docker file and a ./.devcontainer/devcontainer.json, I feel like we have all the pieces to make a dockerized & consistent VSCode environment. I'm unsure how to "pull-it-all-together" though.

DevContainers help: https://github.com/microsoft/vscode-dev-containers/tree/v0.177.0/containers/docker-existing-dockerfile

@shaal
Copy link
Owner Author

shaal commented Jul 28, 2021

Let me know if you want to get on a call, so I can show you how simple this is.

Because DrupalPod is based on ddev, in order to run it locally, all you need to do is install docker, and then install ddev (I recommend using the homebrew installation) - https://ddev.readthedocs.io/en/stable/#installation

Once ddev is installed on your machine - git clone drupalpod repo, and type ddev start. That's all.
The issue was created, to modify the extension so people who use it locally can run a command, to get the same setup as they would get when using DrupalPod in Gitpod.
You do not need any special vscode environments or extensions.

Please let me know if you have any questions.

@tyler36
Copy link
Contributor

tyler36 commented Jul 28, 2021

Ahh ... thanks.

I have DDEV, WSL2 setup and working.

I read the issue as a "Make DrupalPod work locally by allowing people to click the DrupalPod extension on a Drupal issue page and automatically build the environment locally". Therefore I was thinking you need to dynamically write a script that builds a docker environment and sets up Drupal, profile & patch as required.

Big dreams, I know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ddev enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants