SDK reference / Models / ImageBuilder

ImageStepMergePatchUpdateReplaceOnly

Kind: class

Namespace: Egulu.Sdk.Models.ImageBuilder

One customisation step. Only the fields of its kind may be set. There is no field for a command: a script is an object in your bucket, pinned by its SHA-256.

Properties

NameTypeJSON nameDescription
ActionModels.ImageBuilder.ImageStepMergePatchUpdateReplaceOnly_action?actionSET_SERVICE: ENABLE or DISABLE.
Bucketstring?bucketCOPY_FILE, RUN_SCRIPT: the bucket of this project.
GroupsList<string>?groupsCREATE_USER: up to 8 groups the user joins.
KindModels.ImageBuilder.ImageStepMergePatchUpdateReplaceOnly_kind?kindThe kind property
Modestring?modeCOPY_FILE: octal mode such as 0644 (no setuid, setgid or sticky bit); default 0644.
ObjectKeystring?objectKeyCOPY_FILE, RUN_SCRIPT: the object key.
Ownerstring?ownerCOPY_FILE: the owner; default root.
PackagesList<string>?packagesINSTALL_PACKAGES: 1 to 50 packages of the distro's repositories, each name or name=version (lower-case letters, digits and + . _ -).
Pathstring?pathCOPY_FILE: the destination, below /etc, /opt, /usr/local, /srv, /var, /home or /root. SET_ENVIRONMENT_FILE: /etc/default/{name} or /etc/environment.d/{name}.conf.
RunAsstring?runAsRUN_SCRIPT: the user it runs as; default root.
SecretEnvModels.ImageBuilder.ImageStepMergePatchUpdateReplaceOnly_secretEnv?secretEnvRUN_SCRIPT: up to 8 environment variables filled from pinned secrets for this script only. A script that writes one to disk puts it in the image.
Servicestring?serviceSET_SERVICE: the unit name, for example nginx.service.
Sha256string?sha256COPY_FILE, RUN_SCRIPT: the object's SHA-256, 64 lower-case hex digits; the build fails when the object does not match.
Shellstring?shellCREATE_USER: /bin/bash (default), /bin/sh or /usr/sbin/nologin.
SizeByteslong?sizeBytesRUN_SCRIPT (required, at most 262144) and COPY_FILE (at most 64 MiB): the object's size in bytes.
SshKeysList<string>?sshKeysCREATE_USER: up to 5 OpenSSH public keys.
Sudobool?sudoCREATE_USER: passwordless sudo.
TimeoutSecondsint?timeoutSecondsRUN_SCRIPT: the time limit, 1 to 1800 seconds. A script has no default limit: you say it.
Userstring?userCREATE_USER: the user's name.
VariablesModels.ImageBuilder.ImageStepMergePatchUpdateReplaceOnly_variables?variablesSET_ENVIRONMENT_FILE: 1 to 50 NAME to value pairs (no secret, no single quote, no line break).