< 082023-02-09⋎10 >

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
11:36*evered[m] has quit (Quit: Bridge terminating on SIGTERM)
11:36*paul121[m] has quit (Quit: Bridge terminating on SIGTERM)
11:36*jgaehring[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*mstenta[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*symbioquine[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*FarmerEd[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*wotnak[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*lordeddi[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*wildhavenfarm[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*r3c4ll[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*EricLarese[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*OctavioMartnDuar has quit (Quit: Bridge terminating on SIGTERM)
11:37*YashGoel[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*piegeux[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*monkeyflowerfarm has quit (Quit: Bridge terminating on SIGTERM)
11:37*pcambra[m] has quit (Quit: Bridge terminating on SIGTERM)
11:37*fosten[m] has quit (Quit: Bridge terminating on SIGTERM)
11:40*mstenta[m] has joined
11:49*dazinism[m] has joined
11:49*spitz234[m] has joined
11:49*EricLarese[m] has joined
11:49*piegeux[m] has joined
11:49*lordeddi[m] has joined
11:49*gbathree[m] has joined
11:49*paul121[m] has joined
11:49*evered[m] has joined
11:49*wotnak[m] has joined
11:49*symbioquine[m] has joined
11:49*r3c4ll[m] has joined
11:49*scrdcow[m] has joined
11:49*OctavioMartnDuar has joined
11:49*wildhavenfarm[m] has joined
11:49*monkeyflowerfarm has joined
11:49*FarmerEd[m] has joined
11:49*pcambra[m] has joined
11:49*jgaehring[m] has joined
11:49*YashGoel[m] has joined
11:49*fosten[m] has joined
12:06lordeddi[m]hi! created a small PR for farm.org
12:06lordeddi[m]s/org/OSorg monthly call page (riot is now element)/
12:06lordeddi[m]github.com/farmOS/farmOS.org/pull/66
12:13*gbathree[m] has quit (Ping timeout: 246 seconds)
12:13*piegeux[m] has quit (Ping timeout: 246 seconds)
12:13*lordeddi[m] has quit (Ping timeout: 246 seconds)
12:13*jgaehring[m] has quit (Ping timeout: 246 seconds)
12:13*YashGoel[m] has quit (Ping timeout: 246 seconds)
12:13*fosten[m] has quit (Ping timeout: 246 seconds)
12:14*paul121[m] has quit (Ping timeout: 256 seconds)
12:14*wotnak[m] has quit (Ping timeout: 248 seconds)
12:14*symbioquine[m] has quit (Ping timeout: 260 seconds)
12:14*r3c4ll[m] has quit (Ping timeout: 260 seconds)
12:14*scrdcow[m] has quit (Ping timeout: 260 seconds)
12:14*EricLarese[m] has quit (Ping timeout: 252 seconds)
12:14*evered[m] has quit (Ping timeout: 252 seconds)
12:14*mstenta[m] has quit (Ping timeout: 252 seconds)
12:14*pcambra[m] has quit (Ping timeout: 265 seconds)
12:14*OctavioMartnDuar has quit (Ping timeout: 264 seconds)
12:14*wildhavenfarm[m] has quit (Ping timeout: 264 seconds)
12:14*monkeyflowerfarm has quit (Ping timeout: 264 seconds)
12:14*FarmerEd[m] has quit (Ping timeout: 264 seconds)
12:14*dazinism[m] has quit (Ping timeout: 264 seconds)
12:15*spitz234[m] has quit (Ping timeout: 260 seconds)
12:32*paul121[m] has joined
12:34*lordeddi[m] has joined
12:34*piegeux[m] has joined
12:34*gbathree[m] has joined
12:35*symbioquine[m] has joined
12:35*r3c4ll[m] has joined
12:35*scrdcow[m] has joined
12:37*jgaehring[m] has joined
12:37*fosten[m] has joined
12:37*YashGoel[m] has joined
12:39*wotnak[m] has joined
12:40*EricLarese[m] has joined
12:40*evered[m] has joined
12:41*mstenta[m] has joined
12:41*pcambra[m] has joined
12:42*wildhavenfarm[m] has joined
12:42*OctavioMartnDuar has joined
12:42*FarmerEd[m] has joined
12:42*monkeyflowerfarm has joined
12:42*dazinism[m] has joined
13:15*spitz234[m] has joined
16:00*YashGoel[m] has quit (Quit: You have been kicked for being idle)
16:52symbioquine[m]Dev call in about 8 minutes!
17:01symbioquine[m]meet.jit.si/farmos-dev
18:16*botlfarm[m] has joined
18:16botlfarm[m]Hey, I have a problem that has been happening past few times I do an update, just have not had the time to ask questions in the past. When I do an update I change the version number in docker-compose.yml, shut down the image then restart it. When I run the update.php it shows I have missing modules. the missing modules are all ones I have installed by drush. For example the NRCS module I used composer require 'drupal/farm_nrcs:^2.1'. this
18:16botlfarm[m]is not a problem to reinstall these each time, but seems like I may be doing something wrong.
18:17paul121[m]symbioquine: you should add the asset link [docs](symbioquine.github.io/farmOS_asset_link/) to the [repo](github.com/symbioquine/farmOS_asset_link) ;-)
18:18paul121[m](unless I'm just not seeing it... tried following the "github-pages" environment link but goes to a 404)
18:23paul121[m]<botlfarm[m]> "Hey, I have a problem that has..." <- Ah.. so the default farmOS docker image won't keep any additional modules you add with composer. This is because our (recommended) docker instructions only persist the `opt/drupal/web/sites` directory, not `opt/drupal/web/modules`: farmos.org/hosting/install/#persistence
18:24paul121[m]And that is for good reason - if you were to persist /opt/drupal/web/modules then you would not get any module updates that the new version of farmOS may depend on
18:28botlfarm[m]thanks paul121: So I used to install modules by downloading the tar.gz to the sites/all/modules directory and manually installing it. Is this the preferred method to keep modules between updates or is there a better way to direct it to that folder with composer?
18:29paul121[m]Right! I was just remembering you had been using the packaged release... welcome to docker :-)
18:30paul121[m]Yes, you could manually copy the farm_nrcs module source into the sites/all/modules directory. That might be a hybrid approach
18:30paul121[m]But if there is an update to farm_nrcs you would need to bring in the update yourself
18:31paul121[m]With a composer based workflow composer would managed all of the dependencies - but I don't think there is a good way of doing that with the default farmOS image
18:33paul121[m]I'm not sure we have an "official recommendation" on how to solve this... perhaps we should.. but there is no 1 right answer..
18:33botlfarm[m]OK. I moved to using composer to keep the modules up to date. The old method of install worked fine, maybe I will switch back
18:35paul121[m]Here is where I have landed:
18:35paul121[m]- Started creating a custom docker image, based on core farmOS image, but includes custom dependencies: github.com/paul121/farmos-docker-site
18:35paul121[m]- Now I'm using platform.sh hosting (I'm not so interested in managing servers myself...) which is a pretty strict composer based workflow (no docker images to maintain): github.com/paul121/farmos-platform-templ
18:37mstenta[m]Yea it would be good to provide some guidance on a recommended composer-based setup
18:38paul121[m]<botlfarm[m]> "OK. I moved to using composer to..." <- As long as you remember to add your composer dependencies back after pulling new docker images... I think that's a fine approach! Although if your docker container entirely shuts down you might lose things that are not persisted... hmm.
18:40mstenta[m]I wonder if it would be worthwhile to provide "enhanced" images too, which just include a bunch of contrib modules
18:40lordeddi[m]symbioquine: sorry my internet cut out. I didnt get to hear why you where coming back from the idea of precaching data in asset link
18:40mstenta[m]farmos/farmos-plus:2.x :-)
18:41paul121[m]could a docker image read in a custom composer.custom.json when it starts up? and add those dependencies?
18:42paul121[m]it wouldn't be perfect because you would still need to manage the `composer.custom.json` versions yourself... but would automate the "add modules back in after pulling new docker versions"
18:42paul121[m]in fact, Morgan may have a custom docker-compose entrypoint that does just that
18:54mstenta[m]composer install is run during the building of the image itself... so would that require basically running composer install again as part of the startup process?
18:55mstenta[m]to check for that composer.custom.json file?
18:56mstenta[m]my gut says that we shouldn't try to be too clever ... probably best to just provide guidance on how to maintain your own docker image, if you want to have a composer-based workflow and use docker
18:56mstenta[m]those two things could be separated too... eg: "how to have a composer-based farmOS setup" (outside of docker) + "how to have a composer-based farmOS setup inside Docker" (which explains how to build your own Docker image)
18:59symbioquine[m]mstenta[m]: I'm doing `composer require` in my "overridden" entrypoint, so yeah...
19:10paul121[m]<mstenta[m]> "farmos/farmos-plus:2.x :-)" <- this could be a good option! will always have the question of what to include... but perhaps this image could be built using our proposed strategies... with an easy repo to clone and further customize..
19:13paul121[m]I wonder what format botlfarm would find easiest to follow for pursuing a composer based workflow.. I myself am not a good person to design it for :-)
19:17mstenta[m]Yea I'm happy to share how I do it for Farmier too, which has a set of contrib modules included. Basically it is a custom composer.json (originally created via composer create-project farmos/project) + a custom Dockerfile that is based on farmos/farmos which runs composer install during build
19:19mstenta[m]It's a tradeoff always... because with this approach you're essentially managing your own piece of software (which is a collection of farmOS + other packages)
19:19mstenta[m]Which isn't as "simple" of an ideas as just "run this docker container"
19:19mstenta[m]s/ideas/idea/
19:24botlfarm[m]> I wonder what format botlfarm would find easiest to follow for pursuing a composer based workflow.. I myself am not a good person to design it for :-)
19:24botlfarm[m]I honestly don't really know what that means. :) From this discussion it seems there is a difference between docker based and composer based flows. Over my head for now, but constantly learning.
19:25mstenta[m]Well... there's "composer based setup"... and then there's the option to wrap that in a Docker image :-)
19:26mstenta[m]Right now we "ship" farmOS in two ways: a tarball (which can be dropped into an Apache webroot), and a Docker image
19:26mstenta[m]BOTH use composer install to build them
19:26mstenta[m]That's our way of providing something without users needing to learn composer
19:27mstenta[m]But you can use composer directly to build your own codebase! That's what I'm referring to as the "composer based setup". That alone will give you a codebase that can be dropped into an Apache webroot.
19:28mstenta[m]You could then take it a step further and put it inside a Docker image
19:29mstenta[m]The conversation above is sort of starting there but then also thinking about ways of making the composer based setup more approachable, but providing additional automated options... but I'm not sure we should go that route (at least not "officially" - but folks could certainly make their own repos and offer them to the community to provide variations of solutions)
19:30mstenta[m]s/but/by/
19:30mstenta[m]I think the farmOS core docs should just cover: 1) tarball install, 2) Docker install, 3) how to use composer to build your own codebase
19:30mstenta[m]The docs already cover 1 and 2
20:57*keylum88[m] has joined
20:58keylum88[m]Hello, I just set up a trial account for farmos hosting
20:59keylum88[m]I have a local development environment running and I was wondering how I would be able to set it up so that the data from my local environment saves to the online one
21:00keylum88[m]I assume I would use farmOS-aggregator?
21:01mstenta[m]You could write a script that syncs data to the online one if you really wanted to
21:01mstenta[m]The aggregator isn't really the tool for that
21:02keylum88[m]ok
21:02keylum88[m]that sounds a lot more simple :)
21:02keylum88[m]the data from my local environment is in a postgreSQL db
21:02keylum88[m]which I am not familiar with. I have always used mySQL
21:03mstenta[m]If you write a general purpose script it could be useful to others!
21:03keylum88[m]so like in PHP?
21:03mstenta[m]I was imagining a script that interacts with the JSON API
21:03keylum88[m]ok
21:03mstenta[m]So could be any language
21:04mstenta[m]We have JS and Python libraries that might help
21:05mstenta[m]Still probably not very simple though :-)
21:05mstenta[m]> that sounds a lot more simple :)
21:06keylum88[m]yeah, I am realizing that lol
21:06mstenta[m]But it would be cool to have something like that for syncing two instances!
21:06mstenta[m]The real challenge is whether or not you want to allow writing in both
21:06mstenta[m]Or if the online one is just a copy/backup of the local one
21:06mstenta[m]Or vice versa
21:07mstenta[m]Maybe a bigger question to ask first is: why? What are you hoping to solve with two?
21:07keylum88[m]What I want is to use the online, but the local just be a backup if the internet goes down
21:07mstenta[m]Maybe you need something like asset link :-)
21:08mstenta[m]Offline capable client side JS app
21:08mstenta[m]symbioquine is working on that
21:09keylum88[m]that sounds awesome
21:09mstenta[m]Its a pretty big challenge to "sync" two instances I think (its sort of the same problem of syncing two databases generally... farmOS or not)
21:09symbioquine[m]farmos.discourse.group/t/asset-link-dev-
21:10mstenta[m]Easy if one is the "canonical" and the other is just a copy... but two "canonicals" is going to be real hairy 😅
21:11symbioquine[m]mstenta[m]: e.g. conflicting edits to the same asset/log
21:11keylum88[m]yeah, I understand
21:16keylum88[m]Thank you so much for the advice. I am gonna try some things out.
21:16keylum88[m]Very cool that you guys have this chat :)
21:17mstenta[m]Yea we have fun :-)
21:17mstenta[m]Welcome to the club!
21:18keylum88[m]thank you! ttyl :)

< 082023-02-09⋏10 >