Commit Graph

  • 911ffe1c92 Add user_init_commands and root_init_commands lists so config files can append init commands successively without overwriting each other. master Adrian Malacoda 2022-01-30 05:28:51 -06:00
  • f43ac055c2 Add --restart feature. This restarts the container (killing any processes running in it) Adrian Malacoda 2021-07-09 12:47:04 -05:00
  • 2e16523810 Add "root_init_command" which is just like user_init_command but run as root. Adrian Malacoda 2021-06-28 15:19:17 -05:00
  • d7052998c8 Add docker_create_options command, so that config files can specify additional options for docker create command. Adrian Malacoda 2021-06-23 09:00:35 -05:00
  • 488dedb74e Add user_init_command config option, to specify an additional command that should be run when the container is created. Adrian Malacoda 2021-04-03 01:23:49 -05:00
  • 9340dbe720 Parse 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 Malacoda 2021-02-28 16:21:07 -06:00
  • 556b9d6b75 use sys.stdout.isatty() to detect if a tty is available Adrian Malacoda 2021-02-28 04:53:49 -06:00
  • 6c48e92378 add flag --notty for disabling tty allocation (-t in docker command) Adrian Malacoda 2021-02-28 04:52:05 -06:00
  • 84aaf451f7 Add ability to load config files, which are processed before command line arguments. Adrian Malacoda 2021-01-10 01:21:38 -06:00
  • 6a266323bf tag generated container with otherworldowner label so we know which containers are ours Adrian Malacoda 2020-10-17 22:54:27 -05:00
  • 0b334ea461 Add --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 Malacoda 2020-09-27 19:39:14 -05:00
  • 633ef98fab replace 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 Malacoda 2020-08-25 12:08:07 -05:00
  • 42c65b9783 chown ~/.config too, most programs expect it to be writable Adrian Malacoda 2020-08-25 11:53:09 -05:00
  • b1878aef1b Add --rmi command that removes the generated image. Adrian Malacoda 2020-08-20 02:49:34 -05:00
  • 71fe46e881 Add ability to run multiple "actions" (commit/rm) and even an otherworld command (potentially starting a new container) Adrian Malacoda 2020-08-20 02:44:55 -05:00
  • d0adb3b0ed Make default image name image_{CONTAINER_NAME}, and use debian:stable as fallback. Adrian Malacoda 2020-08-20 02:37:44 -05:00
  • 77935b49e8 Add --env option that sets environment variables in the launched command (not in the container) Adrian Malacoda 2020-08-19 02:48:47 -05:00
  • 2aec5cfc3b Add ability to commit the otherworld container to an image. The image is named the same as in --build option. Adrian Malacoda 2020-08-19 02:45:38 -05:00
  • 8185ab8876 correctly preserve the host user's uid Adrian Malacoda 2020-06-14 02:03:08 -05:00
  • 28f14b82b0 add more documentation Adrian Malacoda 2020-03-27 21:50:13 -05:00
  • a7e72a9257 Add ability to build image. Adrian Malacoda 2020-03-27 21:46:31 -05:00
  • c5c5c040c1 Add 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 Malacoda 2020-03-27 20:58:00 -05:00
  • e7552a277a initial commit Adrian Malacoda 2020-03-27 00:17:20 -05:00