public static class ContainerConfig.Update
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
void |
withArgs(java.lang.String... args)
Update the container config with additional args.
|
void |
withBinding(Binding binding)
Update the container config with an additional binding.
|
void |
withCommand(java.lang.String command,
java.lang.String... args)
Update the container config with a specific command.
|
void |
withEnv(java.lang.String name,
java.lang.String value)
Update the container config with an additional environment variable.
|
void |
withLabel(java.lang.String name,
java.lang.String value)
Update the container config with an additional label.
|
void |
withNetworkMode(java.lang.String networkMode)
Update the container config with the network that the build container will
connect to.
|
void |
withUser(java.lang.String user)
Update the container config with a specific user.
|
public void withUser(java.lang.String user)
user - the user to setpublic void withCommand(java.lang.String command,
java.lang.String... args)
command - the command to setargs - additional arguments to addwithArgs(String...)public void withArgs(java.lang.String... args)
args - the arguments to addpublic void withLabel(java.lang.String name,
java.lang.String value)
name - the label namevalue - the label valuepublic void withBinding(Binding binding)
binding - the bindingpublic void withEnv(java.lang.String name,
java.lang.String value)
name - the variable namevalue - the variable valuepublic void withNetworkMode(java.lang.String networkMode)
networkMode - the network