911ffe1c92Add user_init_commands and root_init_commands lists so config files can append init commands successively without overwriting each other.
master
Adrian Malacoda2022-01-30 05:28:51 -06:00
f43ac055c2Add --restart feature. This restarts the container (killing any processes running in it)Adrian Malacoda2021-07-09 12:47:04 -05:00
2e16523810Add "root_init_command" which is just like user_init_command but run as root.Adrian Malacoda2021-06-28 15:19:17 -05:00
d7052998c8Add docker_create_options command, so that config files can specify additional options for docker create command.Adrian Malacoda2021-06-23 09:00:35 -05:00
488dedb74eAdd user_init_command config option, to specify an additional command that should be run when the container is created.Adrian Malacoda2021-04-03 01:23:49 -05:00
9340dbe720Parse command line config on startup and apply later, so we can load config files based on container name (and also just because it looks cleaner). Also wrap logging logic into function and expose to config files.Adrian Malacoda2021-02-28 16:21:07 -06:00
556b9d6b75use sys.stdout.isatty() to detect if a tty is availableAdrian Malacoda2021-02-28 04:53:49 -06:00
6c48e92378add flag --notty for disabling tty allocation (-t in docker command)Adrian Malacoda2021-02-28 04:52:05 -06:00
84aaf451f7Add ability to load config files, which are processed before command line arguments.Adrian Malacoda2021-01-10 01:21:38 -06:00
6a266323bftag generated container with otherworldowner label so we know which containers are oursAdrian Malacoda2020-10-17 22:54:27 -05:00
0b334ea461Add --cd=<directory> option to run command in specified directory, or --cd option to run command in the current directory. If the container is being created, this directory is added to the list of directories to mount. Otherwise, if the directory does not exist in the container, an error is raised and the command fails to run.Adrian Malacoda2020-09-27 19:39:14 -05:00
633ef98fabreplace chmod ~ call with a bootstrap script that will chmod all the appropriate directories and also copy from /etc/skel (which won't be done automatically)Adrian Malacoda2020-08-25 12:08:07 -05:00
42c65b9783chown ~/.config too, most programs expect it to be writableAdrian Malacoda2020-08-25 11:53:09 -05:00
b1878aef1bAdd --rmi command that removes the generated image.Adrian Malacoda2020-08-20 02:49:34 -05:00
71fe46e881Add ability to run multiple "actions" (commit/rm) and even an otherworld command (potentially starting a new container)Adrian Malacoda2020-08-20 02:44:55 -05:00
d0adb3b0edMake default image name image_{CONTAINER_NAME}, and use debian:stable as fallback.Adrian Malacoda2020-08-20 02:37:44 -05:00
77935b49e8Add --env option that sets environment variables in the launched command (not in the container)Adrian Malacoda2020-08-19 02:48:47 -05:00
2aec5cfc3bAdd ability to commit the otherworld container to an image. The image is named the same as in --build option.Adrian Malacoda2020-08-19 02:45:38 -05:00
c5c5c040c1Add ability to specify custom volumes. If these volumes are under the user's $HOME they are created before the container, to ensure they have the correct ownership.Adrian Malacoda2020-03-27 20:58:00 -05:00