Ubuntu

class Ubuntu(val mountPolicy: EnvPath.MountPolicy = EnvPath.MountPolicy.IN_PLACE, baseImageTag: String = "latest") : OSDockerfile

Dockerfile provider for the Ubuntu distro.

Parameters

baseImageTag

The tag to use for the base ubuntu image.

Constructors

Link copied to clipboard
constructor(mountPolicy: EnvPath.MountPolicy = EnvPath.MountPolicy.IN_PLACE, baseImageTag: String = "latest")

Properties

Link copied to clipboard

This image's image name and tag for use as another image's tag.

Link copied to clipboard

The base distribution of this image.

Link copied to clipboard

The Dockerfile DSL that the image should be generated from.

Link copied to clipboard
private val fullImageName: String
Link copied to clipboard

The name for the image.

Link copied to clipboard

The tag for the image.

Link copied to clipboard

The mounting policy for this image.

Functions

Link copied to clipboard
private suspend fun buildImage(docker: DockerDaemon): DockerImage

Builds an image based on dockerfileSpec, and returns the resulting image ID.

Link copied to clipboard
suspend fun getImage(docker: DockerDaemon): DockerImage

Returns a proxy handle of the image.

Link copied to clipboard
private suspend fun getImageOrNull(docker: DockerDaemon): DockerImage?

Retrieves the image as defined by dockerfileSpec, or null if such an image does not exist.

Link copied to clipboard
suspend fun getTag(docker: DockerDaemon): String

The tag of the image.

Link copied to clipboard

Installs a software package into the distribution.

Link copied to clipboard

Joins a Pair as arguments.

Link copied to clipboard
open override fun resolveRunCmd(baseCmd: String?, baseArgs: List<String>?, entrypoint: String, args: List<String>): String

Resolves the command to execute a baseCmd with baseArgs against entrypoint and args.

Link copied to clipboard

Sets the necessary environment variables for the image.

Link copied to clipboard

Updates all packages in the distribution.