(experimental) Local bundling.
try_bundle(output_dir, *, image, command=None, environment=None, local=None, user=None, volumes=None, working_directory=None)¶
(experimental) This method is called before attempting docker bundling to allow the bundler to be executed locally.
If the local bundler exists, and bundling was performed locally, return
true. Otherwise, return
str) – the directory where the bundled asset should be output.
BundlingDockerImage) – (experimental) The Docker image where the command will run.
str]]) – (experimental) The command to run in the Docker container. Default: - run the command defined in the image
str]]) – (experimental) The environment variables to pass to the Docker container. Default: - no environment variables.
ILocalBundling]) – (experimental) Local bundling provider. The provider implements a method
tryBundle()which should return
trueif local bundling was performed. If
falseis returned, docker bundling will be done. Default: - bundling will only be performed in a Docker container
str]) – (experimental) The user to use when running the Docker container. user | user:group | uid | uid:gid | user:gid | uid:group Default: - uid:gid of the current user or 1000:1000 on Windows
DockerVolume]]) – (experimental) Additional Docker volumes to mount. Default: - no additional volumes are mounted
str]) – (experimental) Working directory inside the Docker container. Default: /asset-input
- Return type