| 00:11 | * | kadaan is now known as kadaan |
| 01:26 | * | JustTB has joined |
| 01:28 | * | JustTB1 has quit (Ping timeout: 245 seconds) |
| 05:01 | * | kadaan_ is now known as kadaan_ |
| 05:47 | kadaan | @mstenta: So far, so good. Though I had to go to localhost/install.php?profile=farm to get to the install. The IP address identified by `docker inspect --format '{{ .NetworkSettings.Networks.farmos_default.IPAddress }}' farmos_www_1` timed out. |
| 05:53 | kadaan | It seems as if drush is modifying the farm modules and adding `; Information added by drush on 2016-06-08\nversion = "7.x-1.2+0-dev"\nproject = "farm_access"\ndatestamp = "1465413099"` to all the farm_*.info files. This make it a little bit more of a pain to work with these git repos, |
| 06:06 | * | kadaan is now known as kadaan |
| 06:40 | * | kadaan_ has quit (Quit: My MacBook has gone to sleep. ZZZzzz…) |
| 08:45 | * | M-DzzzzzzR has quit (Remote host closed the connection) |
| 08:58 | * | M-DzzzzzzR has joined |
| 13:04 | mstenta | farmBOT: tell kadaan github.com/farmOS/farmOS/issues/18 |
| 13:04 | farmBOT | mstenta: I'll pass that on when kadaan is around. |
| 13:05 | mstenta | farmBOT: tell kadaan Regarding the IP address... maybe that command doesn't work in all environments. If you just do "docker inspect farmos_www_1" - you should see the IP address down near the bottom. The --format piece is just a way to try to automatically filter it. But maybe the "NetworkSettings.Networks.farmos_default.IPAddress" path is different in your case? Can you check? |
| 13:05 | farmBOT | mstenta: I'll pass that on when kadaan is around. |
| 13:51 | * | JustTB has quit (Quit: Leaving.) |
| 16:05 | * | kadaan has joined |
| 16:19 | kadaan | Thanks for fixing the info file. |
| 16:19 | farmBOT | kadaan: 3 hours 15 min ago <mstenta> tell kadaan github.com/farmOS/farmOS/issues/18 |
| 16:19 | farmBOT | kadaan: 3 hours 14 min ago <mstenta> tell kadaan Regarding the IP address... maybe that command doesn't work in all environments. If you just do "docker inspect farmos_www_1" - you should see the IP address down near the bottom. The --format piece is just a way to try to automatically filter it. But maybe the "NetworkSettings.Networks.farmos_default.IPAddress" path is different in your case? Can you check? |
| 16:20 | kadaan | No, IP address is returned correctly, but I cannot use it to connect to the site. |
| 16:21 | mstenta | kadaan: oh |
| 16:21 | mstenta | huh |
| 16:21 | mstenta | does ping work? |
| 16:26 | kadaan | Ping does not work. |
| 16:27 | kadaan | FYI, connecting to the site via localhost works and I'm able to install. |
| 16:27 | kadaan | Which brings me to my other question. How long does the install take for you? For me it seems to be almost 1 hour. |
| 16:32 | kadaan | After that, the site seems to perform about as well as it did when I ran it in docker before. |
| 16:33 | kadaan | Should we include the git versions of components like `log`? |
| 16:35 | mstenta | yea, installation is ungodly slow for me too - i don't know why |
| 16:36 | mstenta | i enabled php's opcache, fyi, but it didn't make a difference |
| 16:36 | mstenta | you're on mac right? |
| 16:36 | mstenta | that's probably why it is slow for you... |
| 16:36 | mstenta | i am using mine inside a truecrypt container - which might explain the slowness for me... i'm going to test it outside of truecrypt |
| 16:36 | mstenta | weird that ping doesn't work, but localhost does |
| 16:36 | mstenta | i guess just use that |
| 16:37 | mstenta | i'm not sure how the networking all works on mac |
| 16:43 | kadaan | Cool. |
| 16:43 | mstenta | so one thing that might be worth trying on mac... |
| 16:44 | mstenta | er, well... |
| 16:44 | mstenta | hmm |
| 16:44 | mstenta | nevermind |
| 16:44 | mstenta | i was gonna say try running the database container without a volume... but i think it's baked into the Dockerfile for mysql |
| 16:44 | mstenta | i have a feeling it's the db container that's slowing you down |
| 16:45 | mstenta | more so than the apache container |
| 16:45 | mstenta | because drupal makes a lot of db calls |
| 16:45 | kadaan | I think it is that fact that the DB container is mapped as a volume. |
| 16:45 | mstenta | yea i do too |
| 16:45 | mstenta | i was gonna say to just comment that out in the docker-compose.yml... but i don't think that will do it |
| 16:46 | mstenta | because the mysql Dockerfile contains a VOLUME command... which means a volume will be created regardless |
| 16:46 | mstenta | i suppose you could build your own mysql image, and remove the VOLUME command |
| 16:46 | mstenta | that's a lot of extra work... but it would be a good way to test whether or not it is the volume |
| 16:55 | kadaan | Either way, you want the volume so that the DB is persisted across rebuilds, right? |
| 16:56 | mstenta | kadaan: well yes... |
| 16:57 | mstenta | but... you could probably get away with only rebuilding the www container, and leaving the mysql container alone |
| 16:57 | mstenta | if it helps to speed things up for you on mac |
| 16:57 | mstenta | again, this would be a workaround |
| 16:57 | mstenta | not something we would do in the official image |
| 16:57 | mstenta | i mean in the official docker-compose.yml |
| 16:57 | mstenta | but yea - if you then destroyed the mysql container, you would lose the database |
| 16:58 | mstenta | but if you're only using it for local development, maybe that's ok |
| 16:58 | mstenta | if it improves the speed |
| 16:58 | mstenta | a lot of "if"s |
| 16:59 | kadaan | hehehe |
| 17:00 | kadaan | I'll have a look later. |
| 17:00 | mstenta | ah ha! i think i solved my slowness issue! |
| 17:00 | mstenta | it was because i was running it from within a truecrypt container |
| 17:00 | kadaan | The other thing I was wondering is if we should include log in the git checkout. |
| 17:00 | mstenta | duh - makes sense :-) |
| 17:00 | kadaan | Totally |
| 17:00 | mstenta | re: log in git checkout... perhaps |
| 17:01 | mstenta | ps: i still need to review your time tracking stuff... |
| 17:01 | mstenta | but it relates to that... |
| 17:01 | mstenta | i think the time tracking data should be stored in Fields on the various log types... but not directly in the {log} table schema |
| 17:02 | mstenta | because the Log module is not specific to farmOS... and time tracking is not a general requirement for it |
| 17:02 | mstenta | ie: Log will be used in Ledger for bookkeeping entries... but you don't need to know how long you spent making a transaction |
| 17:02 | mstenta | so instead, we should add fields to the farmOS log types for tracking time spent |
| 17:04 | kadaan | Ewwwww |
| 17:04 | kadaan | It makes me feel gross to do it that way. |
| 17:04 | mstenta | why? |
| 17:05 | kadaan | Because it is changes in so many places. |
| 17:05 | kadaan | We already have farm_log, but it really isn't just a farm specific extension of log. |
| 17:05 | mstenta | yes, but that is how all other fields work |
| 17:06 | kadaan | A good compromise might be a farm specific version of log that adds time_spent. |
| 17:06 | kadaan | Or add the ability to enable time_spent for a specfic log type |
| 17:06 | kadaan | In the configuration of log. |
| 17:06 | mstenta | enabling time_spent per log type could work |
| 17:06 | mstenta | that could be an add-on module for Log |
| 17:07 | mstenta | with config to define which log types it applies to |
| 17:07 | kadaan | I'm not really sure how to do that. |
| 17:07 | mstenta | it is a bit more involved... but it makes sense if the time tracking needs to become more complicated in the future (and maybe it does) |
| 17:07 | mstenta | i could help spec up what that would look like |
| 17:08 | kadaan | I my ignorance, I would just add a config property (like the one that allows done to be automatically checked) which indicates whether time tracking is enabled. |
| 17:08 | mstenta | but we could also START with individual fields on the log types... and then if/when we make the log_time module (or whatever it is called), we could add an automated update code to migrate the data and remove thoe fields |
| 17:08 | kadaan | We could... |
| 17:09 | mstenta | yes, that's how it would work... but that config would be stored in a different database table than {log_type}... maybe {log_time_type} or something |
| 17:09 | mstenta | (because modules shouldn't modify other module's tables) |
| 17:09 | kadaan | Makes sense. |
| 17:09 | kadaan | I'd rather add the module than modify all the existing modules... |
| 17:09 | kadaan | But either way. |
| 17:10 | mstenta | ok - maybe we could start by specing it out |
| 17:10 | kadaan | I had already done it the first way. |
| 17:10 | kadaan | And really didn't like it. |
| 17:10 | kadaan | That is why I put it in Log. |
| 17:10 | mstenta | yea... :-( sorry i wish i had a chance to jump in before you did |
| 17:10 | kadaan | np |
| 17:10 | kadaan | I greatly prefer it in log. |
| 17:10 | kadaan | So I would greatly prefer it in log_time_tracking. |
| 17:11 | mstenta | ok - yea i think that would be great |
| 17:11 | kadaan | If done that way, making new modules or new log types becomes much easier. |
| 17:11 | mstenta | yes indeed |
| 17:11 | mstenta | brb need some lunch |
| 17:12 | kadaan | Is there an example of how to make a add-on module? |
| 17:12 | kadaan | np |
| 17:13 | mstenta | kadaan: this one wouldn't be too hard, i don't think |
| 17:14 | mstenta | brb |
| 17:17 | kadaan | np |
| 17:31 | mstenta | kadaan: another thought i had re: time tracking... |
| 17:31 | mstenta | we might want more than just the one field |
| 17:32 | mstenta | we might want to be able to have a whole "timesheet" on each log |
| 17:32 | mstenta | that multiple people could punch in/out on |
| 17:32 | mstenta | and it would record multiple sessions of time spent, potentially at different times of day, or different days |
| 17:33 | mstenta | then it could tally those up to give a total amount of time spent on the task... and maybe also how long each person spent on it |
| 17:33 | kadaan | I had thought about that too. |
| 17:33 | kadaan | Easier if it is a new table. |
| 17:33 | mstenta | (combined with a concept of how much each person's time is worth would allow for some pretty good cost calculations for man-hours) |
| 17:33 | mstenta | yea definitely easier |
| 17:33 | kadaan | I like it |
| 17:33 | mstenta | let's start brainstorming some of these things in the time tracking issue on drupal.org |
| 17:34 | mstenta | the one that @brucedawson is in on |
| 17:34 | mstenta | maybe the module could be called "log_timesheet" |
| 17:34 | mstenta | or something... "log_time_tracking" is good too... |
| 17:35 | mstenta | we can throw some ideas around for the name too (without splitting hairs too much - it doesn't matter a whole lot) |
| 17:36 | mstenta | also i'll need to decide if i want to include that module in the drupal.org/project/log project itself, or if maybe it should be its own project drupal.org/project/log_time_tracking |
| 17:36 | mstenta | i'm leaning towards a separate project... to keep the maintenence of both separate |
| 17:36 | mstenta | and i could make you co-maintainer of it so you could start building up your drupal.org commit counts :-) |
| 17:40 | mstenta | i'm updating the drupal.org issue with some of these thoughts... |
| 17:42 | kadaan | k |
| 17:43 | kadaan | I'll update there when I have tome. |
| 17:43 | kadaan | time |
| 18:33 | * | kadaan is now known as kadaan |
| 19:44 | * | kadaan_ is now known as kadaan_ |
| 21:59 | * | kadaan is now known as kadaan |
| 22:42 | * | JustTB has joined |
| 23:12 | * | Lil has quit |