public class AssemblyConfiguration extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
AssemblyConfiguration.AssemblyConfigurationBuilder |
static class |
AssemblyConfiguration.PermissionMode |
| Constructor and Description |
|---|
AssemblyConfiguration() |
AssemblyConfiguration(String name,
String targetDir,
Boolean exportTargetDir,
boolean excludeFinalOutputArtifact,
AssemblyConfiguration.PermissionMode permissions,
AssemblyMode mode,
String user,
String tarLongFileMode,
Assembly inline,
List<Assembly> layers,
boolean flattened) |
| Modifier and Type | Method and Description |
|---|---|
static AssemblyConfiguration.AssemblyConfigurationBuilder |
builder() |
protected boolean |
canEqual(Object other) |
boolean |
equals(Object o) |
Boolean |
getExportTargetDir()
Whether the target directory should be exported as a volume.
|
AssemblyConfiguration |
getFlattenedClone(JKubeConfiguration configuration) |
Assembly |
getInline()
Deprecated.
Use
getLayers() instead |
List<Assembly> |
getLayers() |
AssemblyMode |
getMode() |
String |
getModeRaw() |
String |
getName()
Assembly name, which is maven by default.
|
AssemblyConfiguration.PermissionMode |
getPermissions() |
String |
getPermissionsRaw() |
List<Assembly> |
getProcessedLayers(JKubeConfiguration configuration) |
String |
getTargetDir()
Directory under which the files and artifacts contained in the assembly will be copied within the container.
|
String |
getTarLongFileMode()
Sets the TarArchiver behaviour on file paths with more than 100 characters length.
|
String |
getUser()
User and/or group under which the files should be added.
|
int |
hashCode() |
boolean |
isExcludeFinalOutputArtifact()
By default, the project's final artifact will be included in the assembly, set this flag to true in case the
artifact should be excluded from the assembly.
|
void |
setInline(Assembly inline)
Deprecated.
Use
layers instead |
AssemblyConfiguration.AssemblyConfigurationBuilder |
toBuilder() |
public AssemblyConfiguration(String name, String targetDir, Boolean exportTargetDir, boolean excludeFinalOutputArtifact, AssemblyConfiguration.PermissionMode permissions, AssemblyMode mode, String user, String tarLongFileMode, Assembly inline, List<Assembly> layers, boolean flattened)
public AssemblyConfiguration()
public AssemblyMode getMode()
public String getModeRaw()
public AssemblyConfiguration.PermissionMode getPermissions()
public String getPermissionsRaw()
@Deprecated public Assembly getInline()
getLayers() instead@Deprecated public void setInline(Assembly inline)
layers instead@Nonnull public List<Assembly> getProcessedLayers(@Nonnull JKubeConfiguration configuration)
@Nonnull public AssemblyConfiguration getFlattenedClone(@Nonnull JKubeConfiguration configuration)
public static AssemblyConfiguration.AssemblyConfigurationBuilder builder()
public AssemblyConfiguration.AssemblyConfigurationBuilder toBuilder()
public String getName()
If an external Dockerfile is used then this name is also the relative directory which contains the assembly files.
public String getTargetDir()
The default value for this is /<assembly name>, so /maven if name is not set
to a different value.
public Boolean getExportTargetDir()
public boolean isExcludeFinalOutputArtifact()
public String getUser()
It has the general format user[:group[:run-user]]. The user and group can be given either as numeric user and group-id or as names. The group id is optional.
If a third part is given, then the build changes to user root before changing the ownerships, changes the ownerships and then change to user run-user which is then used for the final command to execute.
public String getTarLongFileMode()
Valid values are: "warn"(default), "fail", "truncate", "gnu", "posix", "posix_warn" or "omit".
protected boolean canEqual(Object other)
Copyright © 2023. All rights reserved.