resolve=True,
tools=context.config.tools(),
options=[
- "--bind", "/work/prepare", "/work/prepare",
- "--bind", "/work/src", "/work/src",
- "--bind", "/work/scripts", "/work/scripts",
+ "--bind", "/work", "/work",
"--chdir", "/work/src",
"--setenv", "BUILDROOT", "/",
],
resolve=context.config.with_network,
tools=context.config.tools(),
options=[
- "--bind", "/work/build-script", "/work/build-script",
- "--bind", "/work/dest", "/work/dest",
- "--bind", "/work/out", "/work/out",
- "--bind", "/work/src", "/work/src",
- "--bind", "/work/scripts", "/work/scripts",
- *(
- ["--bind", "/work/build", "/work/build"]
- if context.config.build_dir
- else []
- ),
+ "--bind", "/work", "/work",
"--chdir", "/work/src",
"--setenv", "BUILDROOT", "/",
*(["--setenv", "BUILDDIR", "/work/build"] if context.config.build_dir else []),
resolve=context.config.with_network,
tools=context.config.tools(),
options=[
- "--bind", "/work/postinst", "/work/postinst",
- "--bind", "/work/out", "/work/out",
- "--bind", "/work/src", "/work/src",
- "--bind", "/work/scripts", "/work/scripts",
+ "--bind", "/work", "/work",
"--chdir", "/work/src",
"--setenv", "BUILDROOT", "/",
],
resolve=context.config.with_network,
tools=context.config.tools(),
options=[
- "--bind", "/work/finalize", "/work/finalize",
- "--bind", "/work/out", "/work/out",
- "--bind", "/work/src", "/work/src",
- "--bind", "/work/scripts", "/work/scripts",
+ "--bind", "/work", "/work",
"--chdir", "/work/src",
"--setenv", "BUILDROOT", "/",
],