Update jlmkr.py
This commit is contained in:
parent
dd60c6a6f6
commit
f37f6df7f7
21
jlmkr.py
21
jlmkr.py
|
@ -855,6 +855,11 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
# TODO: ask to setup hooks and initial_setup
|
||||||
|
# Open text editor with current config file
|
||||||
|
# Or don't ask and make this a template-only feature,
|
||||||
|
# make it possible to override values in the template during jlmkr create with cli args
|
||||||
|
|
||||||
docker_compatible = 0
|
docker_compatible = 0
|
||||||
|
|
||||||
if agree("Make jail docker compatible right now?", "n"):
|
if agree("Make jail docker compatible right now?", "n"):
|
||||||
|
@ -1029,14 +1034,14 @@ def create_jail(jail_name="", config_path=None, distro="debian", release="bookwo
|
||||||
# # Specify a command/script to run on the HOST after stopping the jail
|
# # Specify a command/script to run on the HOST after stopping the jail
|
||||||
# post_stop_hook=echo 'POST_STOP_HOOK'
|
# post_stop_hook=echo 'POST_STOP_HOOK'
|
||||||
|
|
||||||
# Specify command/script to run IN THE JAIL before starting it for the first time
|
# # Specify command/script to run IN THE JAIL before starting it for the first time
|
||||||
# Useful to install packages on top of the base rootfs
|
# # Useful to install packages on top of the base rootfs
|
||||||
# NOTE: this script will run in the host networking namespace and ignores
|
# # NOTE: this script will run in the host networking namespace and ignores
|
||||||
# all systemd_nspawn_user_args such as bind mounts
|
# # all systemd_nspawn_user_args such as bind mounts
|
||||||
initial_setup=#!/usr/bin/bash
|
# initial_setup=#!/usr/bin/bash
|
||||||
set -euo pipefail
|
# set -euo pipefail
|
||||||
apt-get update && apt-get -y install curl
|
# apt-get update && apt-get -y install curl
|
||||||
curl -fsSL https://get.docker.com | sh
|
# curl -fsSL https://get.docker.com | sh
|
||||||
"""
|
"""
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue