IRC logs for #farmOS, 2024-07-02 (GMT)

2024-07-01
2024-07-03
TimeNickMessage
[00:16:17]* farmBOT has joined #farmos
[00:16:17]* ChanServ has changed the topic to
[12:34:04]* Samsonite[m] has joined #farmos
[12:35:53]<Samsonite[m]>Hey all, hopefully I have a simple enough question - I'm very familiar with self hosting but not familiar at all with Drupal
[12:36:45]<Samsonite[m]>I want to integrate this self hosted app with my SSO, so I see there's an openid_connect module. I'm having a hell of a time trying to figure out how to install that though. There doesn't seem to be a .tar.gz file I can upload to Administratio n-> Extend
[12:41:36]<Samsonite[m]>And the command line it says to use "composer require 'drupal/openid_connect:^1.4'" isn't doing anything on my system despite having farmos installed
[12:43:03]<Samsonite[m]>-bash: /usr/bin/composer: No such file or directory
[12:43:50]<Samsonite[m]>i apt installed composer and tried again but then it said:
[12:43:56]<Samsonite[m]>ACTION uploaded an image: (77KiB) < https://matrix.org/_matrix/media/v3/download/matrix.org/aqQcVgQEJHdItvOw... >
[12:44:27]<Samsonite[m]>all i want is to not have yet another login lol, i just want to use my keycloak sso for my family and myself
[12:54:29]* paul121[m] has joined #farmos
[12:54:30]<paul121[m]>Hey Samsonite ! First question I have is: how are you hosting farmOS? Docker image or packaged release?
[12:54:38]<Samsonite[m]>docker-compose on debian 12
[12:55:19]<paul121[m]>Cool, and you are using the docker image provided by farmOS?
[12:57:05]<Samsonite[m]>yes, i'm using the docker-compose file from the tutorial, it is pulling farmos/farmos:latest
[12:57:20]<Samsonite[m]>s/tutorial/install guide/
[12:58:12]<Samsonite[m]>i added the database to the docker-compose file which isn't recommended for "production" because i guess it assumes you are managing the database separately in production
[12:58:37]<Samsonite[m]>but i think it should be fine just for my use case
[12:59:14]<paul121[m]>The issue you're having is that you need to run `composer require ...` within that docker image, not your host system. Composer will be installed there and should install the module you're looking for.... but there is a big issue with this: the additional module will not be saved/persisted in that docker image/container after restarting. There are some ways around this issue.. You can download a tarball release of the drupal module and
[12:59:14]<paul121[m]>mount it into your docker container *BUT* when updating your site you will need to manage & update this other module manually and make sure it continues to be compatible with the base farmOS/Drupal versions you are using.
[13:00:04]<Samsonite[m]>i just couldn't even find the tar.gz for it, if i could find it i was just going to upload it in the web gui
[13:00:17]<Samsonite[m]>https://www.drupal.org/project/openid_connect
[13:00:49]<paul121[m]>Composer is nice because it will manage all of your module dependencies and versions. No need to download tarball releases. But this would require a custom "composer project" and thus a custom docker image, too. More info: https://farmos.org/hosting/composer/
[13:02:15]<paul121[m]>Samsonite[m]: You can download it here: https://www.drupal.org/project/openid_connect/releases/3.0.0-alpha3
[13:02:16]<paul121[m]>But I'm not familiar with this "upload modules" feature and not sure how it works. You might have the same issue where these uploads won't be persisted in your docker container
[13:02:43]<paul121[m]>Re: keycloak... you should ask symbioquine ! iirc they have done this exact thing. There might even be some posts on the forum about this
[13:02:56]<paul121[m]>I gtg now... will be back later.
[13:05:18]<Samsonite[m]>ACTION uploaded an image: (33KiB) < https://matrix.org/_matrix/media/v3/download/matrix.org/EcQYrPwRdguEpWcP... >
[13:08:23]<Samsonite[m]>maybe i just need to do the manual install instead of docker
[13:08:38]<Samsonite[m]>docker seems to make stuff more complicated if you want to customize anything
[14:07:46]<paul121[m]><Samsonite[m]> "docker seems to make stuff..." <- correct. docker makes it convenient to deploy/host. but it's hard for us to provide a single docker image that can be customized and "work for everyone". you could create your own docker image or extend ours and make modifications tho! there is some info on these approaches on the forum
[14:08:19]<paul121[m]>(I'm seeing the forum looks like it might be down right now... maybe the past 30 minutes... it must be updating)
[14:29:35]<paul121[m]>Forum is back up
[14:50:52]* symbioquine[m] has joined #farmos
[14:50:53]<symbioquine[m]><paul121[m]> "Re: keycloak... you should ask..." <- https://farmos.discourse.group/t/how-to-implement-single-sign-on/1323/13
[14:53:45]<Samsonite[m]>I did see that link already when searching, just got stumped when the composer commands didn't work
[14:54:42]<Samsonite[m]>Will possibly try building without docker
[14:55:29]<Samsonite[m]>Although not any time soon, need to dedicate time to it as a project instead of a simple self hodt app deployment like I normally spin up