Commit Graph
54 Commits
Author SHA1 Message Date
David Coppit e65260ff52 Move to Alpine linux
Based on https://github.com/sanjeevan/baseimage

Image size reduced from 232MB to 90MB

Also make the change monitors more like services that restart if they crash
2018-08-17 21:20:10 -04:00
David Coppit 67c5a43987 Don't hard-code the Python interpreter 2018-08-17 20:58:35 -04:00
David Coppit f23c63ce0d Fix README formatting 2018-08-17 20:18:32 -04:00
David Coppit ea20522b36 Fix empty continuation line warning. 2018-01-21 12:56:13 -05:00
David Coppit 1d4b941873 Fix hard-coded user and group IDs
Thanks to dth202 for the fix here: https://github.com/coppit/docker-filebot/issues/17
2018-01-21 11:26:54 -05:00
David Coppit c9e9c8b980 Don't create a user if one with user ID exists
Programs that do things like getting the home dir end up getting the home dir of the other user by accident.

Use an existing user if the user ID and group ID match. Error out if the group ID matches, or if there are multiple
users with the same user ID.
2017-08-26 12:03:05 -04:00
David Coppit 502596a8da Switch to phusion's init and service run system 2017-05-14 23:23:17 -04:00
David Coppit 439b1f0789 Add an icon 2017-05-14 23:18:08 -04:00
David Coppit 1401a636bb Allow user env vars to override the config file 2017-04-02 22:46:48 -04:00
David Coppit 48a6348b05 Use subprocess.call for Python 3.4 compatibility 2017-04-02 22:03:36 -04:00
David Coppit 8deae24312 Fix error checking for undefined config values 2017-04-02 22:03:12 -04:00
David Coppit 75522314aa Merge branch 'master' of https://github.com/coppit/docker-inotify-command 2017-04-01 23:23:52 -04:00
David Coppit 7ed3d92e8b New implementation using Python and "watchdog"
This version collects the events in a separate thread, and doesn't gobble up events. So hopefully it's more robust, in
addition to being easier to read.

One downside of using the "watchdog" module is that it only exposes file/dir modification events. So if I ever want to
keep track of opened files, I'll have to call inotifywait again.
2017-04-01 23:23:05 -04:00
David Coppit d0b25a4ed4 Improve the format of the timestamp 2017-04-01 23:17:28 -04:00
David Coppit 6630a0e57d Set the locale to utf-8
Helps programs to deal with non-ascii filenames
2017-04-01 23:05:27 -04:00
David Coppit 982026ee9c Minor Dockerfile cleanup 2017-04-01 23:05:09 -04:00
David Coppit 6e641bb562 Bump the version of the Phusion base image 2017-04-01 23:04:42 -04:00
David Coppit 0fc87b7b80 Improve the format of the timestamp 2017-04-01 22:40:11 -04:00
David Coppit 5a61aaee7d Improve the format of the timestamp 2017-04-01 22:38:09 -04:00
David Coppit 6cfa84ee47 Add an eval for more flexibility
Can now provide a command argument like: "/bin/bash -c '/bin/sleep 5'"
2017-04-01 22:35:19 -04:00
coppit 4b58da35bc Merge pull request #2 from Starbix/patch-1
Bump baseimage
2017-02-04 14:39:18 -05:00
Cédric L f74d712357 Update Dockerfile 2017-02-03 22:12:07 +01:00
David Coppit 934be98685 Add more logging
Also use a more cross-platform method for parsing times
2017-01-22 11:23:01 -05:00
David Coppit a301031a63 Bump base image to 0.9.17 2015-10-18 14:41:35 -04:00
David Coppit 7be05137c3 Fix DEBUG config var 2015-06-27 15:45:08 -04:00
David Coppit 51bb83d62f Display more information, including the path 2015-06-27 15:41:00 -04:00
David Coppit 99f51ecc05 Add support for DEBUG flag 2015-06-27 13:30:15 -04:00
David Coppit 33c19314b3 Fix octal check 2015-06-26 01:10:33 -04:00
David Coppit dd981dc799 Add umask support 2015-06-26 01:08:53 -04:00
David Coppit 3888123dcd Generate the user and group names
Also check if the the user already exists.
2015-06-26 00:19:25 -04:00
David Coppit 44f8af4a50 Split up the mapping of IDs from "runas".
Also have config files specify their user/group IDs for the commands.
2015-06-25 23:41:40 -04:00
David Coppit 59a0e2a55c Update README 2015-06-25 23:41:19 -04:00
David Coppit b2f4e7feba Space 2015-06-25 23:32:28 -04:00
David Coppit 521f0364a1 Update shebang line to be more portable 2015-06-25 23:16:22 -04:00
David Coppit 6b7b211392 Fix formatting 2015-06-24 14:15:22 -04:00
David Coppit 9b917885c2 Create home dir for programs that need one 2015-06-24 13:36:15 -04:00
David Coppit 16de1d2b38 Fix UGID env var 2015-06-24 13:08:48 -04:00
David Coppit f75dd2f419 Fix arg processing bug 2015-06-24 13:08:38 -04:00
David Coppit 149c82a063 Cleanup and dxcumentation for new file ownership feature. 2015-06-24 12:45:44 -04:00
David Coppit 363054f126 Implement a "runas.sh" utility script for fixing ownership 2015-06-24 11:48:18 -04:00
David Coppit 3391aacb8f Remove debugging code (oops) 2015-06-24 08:44:56 -04:00
David Coppit 5bdabd6ad7 Watch for changes recursively 2015-06-24 08:22:43 -04:00
David Coppit b9381fe94e Change "watch1" to "dir1" 2015-06-24 08:10:25 -04:00
David Coppit 6e2fa8175a Fix formatting 2015-06-24 07:45:09 -04:00
David Coppit f759c7376d Add examples to docs 2015-06-24 07:43:21 -04:00
David Coppit e095a31553 Add IGNORE_EVENTS_WHILE_COMMAND_IS_RUNNING feature 2015-06-24 07:28:37 -04:00
David Coppit e1300c6c52 Add missing monitor script to image build 2015-06-24 06:41:12 -04:00
David Coppit 6e9d7068c5 Fix image name 2015-06-24 06:40:51 -04:00
David Coppit 06b0533ff0 Refactor code and trigger on more changes 2015-06-24 06:40:20 -04:00
David Coppit 892e9574ec Fix syntax errors 2015-06-24 06:39:54 -04:00