Isolation: added "automount" option.
Now it's possible to disable default bind mounts of
languages by setting:
{
"isolation": {
"automount": {
"language_deps": false
}
}
}
In this case, the user is responsible to provide a "rootfs"
containing the language libraries and required files for
the application.
This commit is contained in:
@@ -326,11 +326,11 @@ cat << END > $NXT_BUILD_DIR/$NXT_JAVA_MOUNTS_HEADER
|
||||
|
||||
|
||||
static const nxt_fs_mount_t nxt_java_mounts[] = {
|
||||
{(u_char *) "proc", (u_char *) "/proc", (u_char *) "proc", 0, NULL},
|
||||
{(u_char *) "proc", (u_char *) "/proc", (u_char *) "proc", 0, NULL, 1},
|
||||
{(u_char *) "$NXT_JAVA_LIBC_DIR", (u_char *) "$NXT_JAVA_LIBC_DIR",
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL, 1},
|
||||
{(u_char *) "$NXT_JAVA_HOME", (u_char *) "$NXT_JAVA_HOME",
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL},
|
||||
(u_char *) "bind", NXT_MS_BIND | NXT_MS_REC, NULL, 1},
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user