-
Notifications
You must be signed in to change notification settings - Fork 6
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
setup.sh failing on Ubuntu 24.04 #46
Comments
Just tested it on my mac and it works fine. |
cannot reproduce this on Ubuntu 22.04. |
Determined this is being caused by Apparently this
I am highly in favor of option two. I feel we should not be forcing people to use a certain IDE in order to easily develop in the Islandora drupal stack. Mounting the codebase in dev is how I have modified the site template docker compose to work in our local instance. |
Discussed in the Tech Call today. @nigelgbanks and @rosiel (not present) were noted as users of the code server. @Natkeeran mentioned others have used it for debugging PHP issues. It might be good to keep it around if someone can update that setup script to address this issue. |
I tried looking through the chat and I didn't really see how Though I've observed that |
@nigelgbanks - this docker compose override requires the environment variable. When it's not set on linux, the script fails here: https://github.com/Islandora-Devops/isle-site-template/blob/main/generate-secrets.sh#L52 |
@seth-shaw-asu - thanks for bringing this up at the tech call. I am sure folks have used the codeserver given this repo is designed such that it's the only way you can write Drupal code against an islandora repo running in this environment. My question for @rosiel and @nigelgbanks is whether they find it's a better developer experience than editing Drupal code from the host system. I personally find it is not, so just wanted to double check we're adding this feature for reasons other Drupal developers are finding enjoyable. If it's a desirable DX, I'm sure we can find a path forward. @Natkeeran - if there are debugging libraries like xdebug we want to enable, that could be done without forcing an IDE choice on developers. |
Ah I see, for me on Ubuntu 24.04 this is the output.
The failure comes from the specified bind mount options mounting no location. I think I can put a fix for this in. |
This fixes it: #73 |
As to for this:
For me, very much so. I don't have a license for PHP Storm or the like, I don't even have PHP installed on my host system. Something like code server allows me to get in and write something with intellisense, xDebug, etc. Also, editing in the container avoids numerous problems with file permissions being different on the host, for example when doing development from Windows. |
It's not forced, it's just an easy to start with default. Especially for those folks that are not primarily developers, and do not maintain their own setup on their host system. This is a template and when forking you're free to remove the IDE, Fedora or whatever. |
Thanks for the PRs, @nigelgbanks. I think once #71 merges we can close this issue. Though just to spell out my reasoning here (which is beyond the scope of this issue):
I would argue it's a difficult to start with default for most Drupal developers. The most popular local development options for Drupal (e.g. ddev) use the host IDE.
I think folks who are primarily developers is who I have in mind when talking about this. Having a different IDE when modifying code running in the site template I find much to be wanting. Most Drupal developers are working on many sites, so having one site that's special in this way I think will cause head scratching.
Yes, technically using the codeserver is not "forced" as you can edit the docker compose YAML. One of the first things I did after installing the site template was make that change. Though I also have a solid understanding of docker fundamentals, which I wouldn't want to make a hard requirement when onboarding/introducing Drupal devs into this ecosystem. Though maybe that skillset is already baked in for most developers at this point, and this is less of a concern than I am thinking. |
I see your point. Though when I've done talks at IslandoraCon, there is often a group of non-developers wanting to learn a thing or two, and it's been useful, especially in a group setting.
By the way, you can use your host IDE with the current setup (or at least you could at one point, I don't have PHPStorm to test anymore). The By all means though feel free to raise a pull request adding support for |
Not my issue, but https://islandora.slack.com/archives/CM6F4C4VA/p1721069130479709?thread_ts=1719794457.302669&cid=CM6F4C4VA
The text was updated successfully, but these errors were encountered: