< 012024-07-02⋎03 >

Topic for #farmOS is: farmOS (farmos.org) is a free and open source, web-based farm management system. User guide: farmos.org/guide/ - Forum: farmOS.discourse.groupSet by mstenta on 2021-06-15 at 12:52
04:16*farmBOT has joined
04:16*ChanServ changed the topic to
16:34*Samsonite[m] has joined
16:35Samsonite[m]Hey all, hopefully I have a simple enough question - I'm very familiar with self hosting but not familiar at all with Drupal
16:36Samsonite[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
16:41Samsonite[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
16:43Samsonite[m]-bash: /usr/bin/composer: No such file or directory
16:43Samsonite[m]i apt installed composer and tried again but then it said:
16:43*uploaded an image: (77KiB) < matrix.org/_matrix/media/v3/download/mat >
16:44Samsonite[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
16:54*paul121[m] has joined
16:54paul121[m]Hey Samsonite ! First question I have is: how are you hosting farmOS? Docker image or packaged release?
16:54Samsonite[m]docker-compose on debian 12
16:55paul121[m]Cool, and you are using the docker image provided by farmOS?
16:57Samsonite[m]yes, i'm using the docker-compose file from the tutorial, it is pulling farmos/farmos:latest
16:57Samsonite[m]s/tutorial/install guide/
16:58Samsonite[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
16:58Samsonite[m]but i think it should be fine just for my use case
16:59paul121[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
16:59paul121[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.
17:00Samsonite[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
17:00Samsonite[m]www.drupal.org/project/openid_connect
17:00paul121[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: farmos.org/hosting/composer/
17:02paul121[m]Samsonite[m]: You can download it here: www.drupal.org/project/openid_connect/re
17:02paul121[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
17:02paul121[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
17:02paul121[m]I gtg now... will be back later.
17:05*uploaded an image: (33KiB) < matrix.org/_matrix/media/v3/download/mat >
17:08Samsonite[m]maybe i just need to do the manual install instead of docker
17:08Samsonite[m]docker seems to make stuff more complicated if you want to customize anything
18:07paul121[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
18:08paul121[m](I'm seeing the forum looks like it might be down right now... maybe the past 30 minutes... it must be updating)
18:29paul121[m]Forum is back up
18:50*symbioquine[m] has joined
18:50symbioquine[m]<paul121[m]> "Re: keycloak... you should ask..." <- farmos.discourse.group/t/how-to-implemen
18:53Samsonite[m]I did see that link already when searching, just got stumped when the composer commands didn't work
18:54Samsonite[m]Will possibly try building without docker
18:55Samsonite[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

< 012024-07-02⋏03 >