LangDockerfile

abstract class LangDockerfile(val imageName: String, val imageTag: String) : BaseDockerfile

Dockerfile for creating programming language-based images.

Parameters

imageName

Name of the image.

imageTag

Tag of the image.

Inheritors

Constructors

Link copied to clipboard
constructor(imageName: String, imageTag: String)

Types

Link copied to clipboard
abstract class CFamily(val imageName: String, val imageTag: String) : LangDockerfile

Dockerfile for creating images for GCC/Clang images.

Link copied to clipboard
open class Java(val imageTag: String) : LangDockerfile

Dockerfile for creating Java-based images.

Link copied to clipboard
open class Python(val imageTag: String) : LangDockerfile.PythonBased

Dockerfile for creating Python-based images.

Link copied to clipboard
abstract class PythonBased(val imageName: String, val imageTag: String) : LangDockerfile

Abstraction for all images which provides a Python executable.

Link copied to clipboard

Dockerfile for creating Python-based images with CUDA support.

Link copied to clipboard
open class Qt5(val imageTag: String) : LangDockerfile

Dockerfile for creating images for Qt5 images.

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
abstract val compileCommand: String?

The command used to compile source files into an executable form.

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.

Link copied to clipboard
abstract val runCommand: String?

The command used to run executables of the specific language.

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
fun runCmd(baseCmd: String? = this.runCommand, baseArgs: List<String>? = null, entrypoint: String, args: List<String> = emptyList()): String

Convenience method to use resolveRunCmd with sensible default arguments.

Link copied to clipboard

Sets the necessary environment variables for the image.

Link copied to clipboard

Updates all packages in the distribution.