SDK reference / Models / ImageBuilder
ImageStep
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
| Name | Type | JSON name | Description |
|---|---|---|---|
Action | Models.ImageBuilder.ImageStep_action? | action | SET_SERVICE: ENABLE or DISABLE. |
Bucket | string? | bucket | COPY_FILE, RUN_SCRIPT: the bucket of this project. |
Groups | List<string>? | groups | CREATE_USER: up to 8 groups the user joins. |
Kind | Models.ImageBuilder.ImageStep_kind? | kind | The kind property |
Mode | string? | mode | COPY_FILE: octal mode such as 0644 (no setuid, setgid or sticky bit); default 0644. |
ObjectKey | string? | objectKey | COPY_FILE, RUN_SCRIPT: the object key. |
Owner | string? | owner | COPY_FILE: the owner; default root. |
Packages | List<string>? | packages | INSTALL_PACKAGES: 1 to 50 packages of the distro's repositories, each name or name=version (lower-case letters, digits and + . _ -). |
Path | string? | path | COPY_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. |
RunAs | string? | runAs | RUN_SCRIPT: the user it runs as; default root. |
SecretEnv | Models.ImageBuilder.ImageStep_secretEnv? | secretEnv | RUN_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. |
Service | string? | service | SET_SERVICE: the unit name, for example nginx.service. |
Sha256 | string? | sha256 | COPY_FILE, RUN_SCRIPT: the object's SHA-256, 64 lower-case hex digits; the build fails when the object does not match. |
Shell | string? | shell | CREATE_USER: /bin/bash (default), /bin/sh or /usr/sbin/nologin. |
SizeBytes | long? | sizeBytes | RUN_SCRIPT (required, at most 262144) and COPY_FILE (at most 64 MiB): the object's size in bytes. |
SshKeys | List<string>? | sshKeys | CREATE_USER: up to 5 OpenSSH public keys. |
Sudo | bool? | sudo | CREATE_USER: passwordless sudo. |
TimeoutSeconds | int? | timeoutSeconds | RUN_SCRIPT: the time limit, 1 to 1800 seconds. A script has no default limit: you say it. |
User | string? | user | CREATE_USER: the user's name. |
Variables | Models.ImageBuilder.ImageStep_variables? | variables | SET_ENVIRONMENT_FILE: 1 to 50 NAME to value pairs (no secret, no single quote, no line break). |