o

sbtdocker

Instructions

object Instructions

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Instructions
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Type Members

  1. case class Add(sources: Seq[SourceFile], destination: String, chown: Option[String] = None) extends FileStagingDockerfileInstruction with Product with Serializable

    Adds files to the image.

    Adds files to the image. If a source file is a tar file it will be extracted as a directory.

    sources

    Source files.

    destination

    Destination path inside the container.

    chown

    Set the owner user and group of the files in the container. Added in 17.09.0-ce.

  2. case class AddRaw(sources: Seq[String], destination: String, chown: Option[String] = None) extends ProductDockerfileInstruction with Product with Serializable

    Adds files from the staging directory to the image.

    Adds files from the staging directory to the image. If a source file is a tar file it will be extracted as a directory.

    sources

    Source path inside the staging directory.

    destination

    Destination path inside the container.

    chown

    Set the owner user and group of the files in the container. Added in 17.09.0-ce.

  3. case class Arg(key: String, defaultValue: Option[String] = None) extends DockerfileInstruction with Product with Serializable

    Define a build argument.

    Define a build argument. The ARG instruction in a Dockerfile.

  4. case class Cmd(command: String) extends ProductDockerfileInstruction with Product with Serializable

    When an entry point is specified CMD acts as default arguments that is appended the the entry point command.

    When an entry point is specified CMD acts as default arguments that is appended the the entry point command. If an entry point is not specified CMD will be the default command for the image.

    command

    Command.

  5. case class Copy(sources: Seq[SourceFile], destination: String, chown: Option[String] = None) extends FileStagingDockerfileInstruction with Product with Serializable

    Adds files to the image.

    Adds files to the image.

    sources

    Source files. Cannot be empty.

    destination

    Destination path inside the container.

    chown

    Set the owner user and group of the files in the container. Added in 17.09.0-ce.

  6. case class CopyRaw(sources: Seq[String], destination: String, chown: Option[String] = None) extends ProductDockerfileInstruction with Product with Serializable

    Adds files from the staging directory to the image.

    Adds files from the staging directory to the image.

    sources

    Source path inside the staging directory. Cannot be empty.

    destination

    Destination path inside the container.

    chown

    Set the owner user and group of the files in the container. Added in 17.09.0-ce.

  7. case class EntryPoint(command: String) extends ProductDockerfileInstruction with Product with Serializable

    Command to execute when the image starts.

    Command to execute when the image starts.

    command

    Command.

  8. case class Env(variables: String) extends ProductDockerfileInstruction with Product with Serializable

    Sets environment variables in the image.

    Sets environment variables in the image. Example: "A=1 B=2 C=3"

    variables

    Environment variables.

  9. case class Expose(ports: Seq[Int]) extends ProductDockerfileInstruction with Product with Serializable

    Exposes network ports at runtime.

    Exposes network ports at runtime.

    ports

    Port numbers to expose.

  10. case class From(image: String) extends ProductDockerfileInstruction with Product with Serializable

    Sets the base image for the image.

    Sets the base image for the image.

    image

    Name of the image.

  11. case class HealthCheck(command: String, interval: Option[FiniteDuration] = None, timeout: Option[FiniteDuration] = None, startPeriod: Option[FiniteDuration] = None, retries: Option[Int] = None) extends DockerfileInstruction with Product with Serializable

    Defines health check command to run inside the container to check that it is still working.

    Defines health check command to run inside the container to check that it is still working.

    command

    Command to execute for health check

    interval

    The health check will first run interval seconds after the container is started, and then again interval seconds after each previous check completes.

    timeout

    If a single run of the check takes longer than specified then the check is considered to have failed.

    startPeriod

    Provides initialization time for containers that need time to bootstrap.

    retries

    How many consecutive failures of the health check for the container to be considered unhealthy.

  12. case class Label(labels: String) extends ProductDockerfileInstruction with Product with Serializable

    Sets label(s) for the image.

    Sets label(s) for the image. Docker Version >= 1.6 required. Example: "A=1 B=2 C=3"

    labels

    image labels

  13. case class Maintainer(name: String) extends ProductDockerfileInstruction with Product with Serializable

    Author of the image.

    Author of the image.

    name

    Author name.

  14. case class OnBuild(instruction: DockerfileInstruction) extends ProductDockerfileInstruction with Product with Serializable

    Adds a trigger of a instruction that will be run when the image is used as a base image (FROM).

    Adds a trigger of a instruction that will be run when the image is used as a base image (FROM).

    instruction

    Instruction to run.

  15. case class Raw(instructionName: String, arguments: String) extends DockerfileInstruction with Product with Serializable

    This class allows the user to specify a raw Dockerfile instruction.

    This class allows the user to specify a raw Dockerfile instruction. Example:

    Raw("RUN", "echo '123'")
    // Will yield the following string in the Dockerfile:
    "RUN echo '123'"
    instructionName

    Name of the instruction.

    arguments

    Argument string.

  16. case class Run(command: String) extends ProductDockerfileInstruction with Product with Serializable

    Executes a command when building the image.

    Executes a command when building the image.

    command

    Command which should be executed.

  17. case class StageFiles(sources: Seq[SourceFile], destination: String) extends FileStagingInstruction with Product with Serializable

    Stages files.

    Stages files. Only adds files and directories to the staging directory, will not yield an instruction in the Dockerfile. To use the staged files use the sbtdocker.Instructions.AddRaw and sbtdocker.Instructions.CopyRaw instructions.

    sources

    Source files.

    destination

    Destination path.

  18. case class User(username: String) extends ProductDockerfileInstruction with Product with Serializable

    Sets the user inside the container that should be used for the next instructions.

    Sets the user inside the container that should be used for the next instructions.

    username

    Name of the user.

  19. case class Volume(paths: Seq[String]) extends ProductDockerfileInstruction with Product with Serializable

    Add mount points inside the container.

    Add mount points inside the container.

    paths

    Paths inside the container. Cannot be empty.

  20. case class WorkDir(path: String) extends ProductDockerfileInstruction with Product with Serializable

    Sets the current working directory for the instructions that follow.

    Sets the current working directory for the instructions that follow.

    path

    Path inside the container.

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native() @HotSpotIntrinsicCandidate()
  6. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  8. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  9. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  10. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  11. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  13. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  14. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  15. def toString(): String
    Definition Classes
    AnyRef → Any
  16. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  18. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. object Add extends Serializable
  20. object AddRaw extends Serializable
  21. object Cmd extends Serializable
  22. object Copy extends Serializable
  23. object CopyRaw extends Serializable
  24. object EntryPoint extends Serializable
  25. object Env extends Serializable
  26. object From extends Serializable
  27. object HealthCheck extends Serializable
  28. object HealthCheckNone extends DockerfileInstruction with Product with Serializable

    Disable any health check inherited from the base image.

  29. object Label extends Serializable
  30. object Run extends Serializable
  31. object StageFiles extends Serializable
  32. object Volume extends Serializable

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] ) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped