Package

container:
  image: String
  loginCommands:
    - String
  options:
    - String
prePackage:
  commands:
    - String
postPackage:
  commands:
    - String
{
  "container": {
    "image": "String",
    "loginCommands": [
      "String"
    ],
    "options": [
      "String"
    ]
  },
  "prePackage": {
    "commands": [
      "String"
    ]
  },
  "postPackage": {
    "commands": [
      "String"
    ]
  }
}

container

Type: Container

Configure this if you want to package your distribution using a container.

Required: No

prePackage

Type: PrePackage

Instructions that will be executed after the source files are copied to a temporary directory, but before the files are pacadged into a distribution.

Required: No

postPackage

Type: List<String>

List of shell commands that is executed before the final distribution is created but before the final distribution is copied from the temp working directory.

Useful if you for example want to move the distribution somewhere after the packaging is done.

Required: No

Subsections of Package

Container

image: String
loginCommands:
  - String
options:
  - String
{
  "image": "String",
  "loginCommands": [
    "String"
  ],
  "options": [
    "String"
  ]
}

image

Type: String

An image URI which will be used to fetch a container for packaging your distribution.

Useful if you, for example, want to build your distribution locally inside a container that mimics your build server.

Note

For this configuration to take effect you need to apply the --container-build or -cb flag to the attini distribution package (or attini deploy run) command.

Required: No

loginCommands

Type: List<String>

List of shell commands that will be executed before the docker run command when using container builds.

Should only be used to log in to the image repository if the image needs to be downloaded as they are executed before the container is started.

Note

For this configuration to take effect, you need to apply the --container-repository-login or -crl flag to the attini distribution package (or attini deploy run) command.

Required: No

options

Type: List<String>

Command-line options you want to add the docker run command the Attini CLI generates and run for you.

Useful if you need to configure anything specific for your build container, for example, if you need to transfer AWS credentials to the container (-v $HOME/.aws:/root/.aws:rw).

Required: No

Post Package

commands:
  - String
{
  "commands": [
    "String"
  ]
}

postPackage

Type: List<String>

List of shell commands that is executed after the final distribution is created.

Useful if you, for example, want to move the distribution somewhere after the packaging is done.

Required: No

Pre Package

commands:
  - String
{
  "commands": [
    "String"
  ]
}

commands

Type: List<String> List of shell commands that are executed before distribution is created.

These commands are run with set -eo pipefail configuration so that the packaging will fail quickly if an error occurs. To revert this configuration (and ignore errors in your scrips), begin your commands with the line: set +eo pipefail.

Useful if you, for example, want to configure the distribution (see attini configure command) or fetch external resources to be included in the distribution.

Required: Yes