object Instructions
- Alphabetic
- By Inheritance
- Instructions
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
-
case class
Add
(sources: Seq[SourceFile], destination: String) 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.
-
case class
AddRaw
(sources: Seq[String], destination: String) 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.
-
case class
Cmd
(command: String) extends ProductDockerfileInstruction with Product with Serializable
When an entry point is specified
CMDacts as default arguments that is appended the the entry point command.When an entry point is specified
CMDacts as default arguments that is appended the the entry point command. If an entry point is not specifiedCMDwill be the default command for the image.- command
Command.
-
case class
Copy
(sources: Seq[SourceFile], destination: String) 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.
-
case class
CopyRaw
(sources: Seq[String], destination: String) 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.
-
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.
-
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.
-
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.
-
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.
-
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
-
case class
Maintainer
(name: String) extends ProductDockerfileInstruction with Product with Serializable
Author of the image.
Author of the image.
- name
Author name.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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.
-
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
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- object Add extends Serializable
- object AddRaw extends Serializable
- object Cmd extends Serializable
- object Copy extends Serializable
- object CopyRaw extends Serializable
- object EntryPoint extends Serializable
- object Env extends Serializable
- object From extends Serializable
- object Label extends Serializable
- object Run extends Serializable
- object StageFiles extends Serializable
- object Volume extends Serializable