com.typesafe.sbt.packager.docker
Members list
Type members
Classlikes
An arbitrary command
An arbitrary command
Attributes
- Example
-
val add = Cmd("ADD", "src/resource/LICENSE.txt", "/opt/docker/LICENSE.txt")
val copy = Cmd("COPY", "src/resource/LICENSE.txt", "/opt/docker/LICENSE.txt")
val env = Cmd("ENV", "APP_SECRET", "7sdfy7s9hfisdufuusud")
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CmdLikeclass Objecttrait Matchableclass AnyShow all
a single line in a dockerfile. See subclasses for more detail
a single line in a dockerfile. See subclasses for more detail
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
A command that consists of a CMD string and an CmdLike object
A command that consists of a CMD string and an CmdLike object
Attributes
- Example
-
val onBuildAdd = CombinedCmd("ONBUILD", Cmd("ADD", "src/resource/LICENSE.txt", "/opt/docker/LICENSE.txt"))
val onBuildEnv = CombinedCmd("ONBUILD", Cmd("ENV", "APP_SECRET", "7sdfy7s9hfisdufuusud"))
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CmdLikeclass Objecttrait Matchableclass AnyShow all
A comment
A comment
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CmdLikeclass Objecttrait Matchableclass AnyShow all
This class represents a Docker alias. It generates a string in the form of
This class represents a Docker alias. It generates a string in the form of
[REGISTRY_HOST/][USERNAME/]NAME[:TAG]
, e.g. ''my-registry.com:1234/my-user/my-service:1.0.0'' or just ''my-service:1.0.0''.
Value parameters
- name
-
Name of the image, e.g. the artifact name
- registryHost
-
Optional hostname of the registry (including port if applicable)
- tag
-
Optional tag for the image, e.g. the version
- username
-
Optional username or other qualifier
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DockerApiVersion.type
This represents a type of file permission changes to run on the working directory. Note that group file mode bits must be effective to be OpenShift compatible.
This represents a type of file permission changes to run on the working directory. Note that group file mode bits must be effective to be OpenShift compatible.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
class Customobject SyncGroupToUserobject UserGroupPlusExecuteobject UserGroupReadobject UserGroupReadExecuteobject UserGroupWriteExecuteShow all
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DockerChmodType.type
This represents a strategy to change the file permissions.
This represents a strategy to change the file permissions.
Attributes
- Companion
- object
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
Attributes
- Companion
- trait
- Supertypes
-
trait Sumtrait Mirrorclass Objecttrait Matchableclass Any
- Self type
==Docker Plugin==
==Docker Plugin==
This plugin helps you build docker containers.
==Configuration==
In order to configure this plugin take a look at the available com.typesafe.sbt.packager.docker.DockerKeys
==Requirements==
You need docker to have docker installed on your system and be able to execute commands. Check with a single command:
docker version
Future versions of the Docker Plugin may use the REST API, so you don't need docker installed locally.
Attributes
- Note
-
this plugin is not intended to build very customizable docker images, but turn your mappings configuration in a docker image with almost no ''any'' configuration.
- Example
-
Enable the plugin in the
build.sbt
enablePlugins(DockerPlugin)
- Supertypes
-
class AutoPlugintrait PluginsFunctionsclass Basictrait Pluginsclass Objecttrait Matchableclass AnyShow all
- Self type
-
DockerPlugin.type
==DockerSpotifyClientPlugin Plugin==
==DockerSpotifyClientPlugin Plugin==
This plugin helps you build docker containers using Spotify Docker Client.
==Configuration==
In order to configure this plugin take a look at the available com.typesafe.sbt.packager.docker.DockerKeys
==Requirements==
You need docker to have docker installed on your system. Check with a single command:
docker version
Attributes
- Note
-
this plugin is not intended to build very customizable docker images, but turn your mappings configuration in a docker image with almost no ''any'' configuration.
- Example
-
Enable the plugin in the
build.sbt
enablePlugins(DockerSpotifyClientPlugin)
and add the dependency in your
plugins.sbt
libraryDependencies += "com.spotify" % "docker-client" % "3.5.13"
The Docker-spotify client is a provided dependency so you have to add it on your own. It brings a lot of dependenciesthat could slow your build times. This is the reason the dependency is marked as provided.
- Supertypes
-
class AutoPlugintrait PluginsFunctionsclass Basictrait Pluginsclass Objecttrait Matchableclass AnyShow all
- Self type
A break in Dockerfile to express multi-stage build. https://docs.docker.com/develop/develop-images/multistage-build/
A break in Dockerfile to express multi-stage build. https://docs.docker.com/develop/develop-images/multistage-build/
Attributes
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait CmdLikeclass Objecttrait Matchableclass AnyShow all
- Self type
-
DockerStageBreak.type
Attributes
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
DockerSupport.type
Attributes
- Companion
- object
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Attributes
- Companion
- class
- Supertypes
-
trait Producttrait Mirrorclass Objecttrait Matchableclass Any
- Self type
-
DockerVersion.type
Represents dockerfile used by docker when constructing packages.
Represents dockerfile used by docker when constructing packages.
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Executable command
Executable command
Attributes
- Example
-
ExecCmd("RUN", "chown", "-R", daemonUser, ".")
ExecCmd("ENTRYPOINT", "bin/%s" format execScript),
ExecCmd("CMD")
ExecCmd("VOLUME", exposedVolumes: _*)
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait CmdLikeclass Objecttrait Matchableclass AnyShow all
Mapping of file to intermediate layers.
Mapping of file to intermediate layers.
Value parameters
- file
-
The file produced by universal/stage to be moved into
Docker / stage
directory. - layerId
-
The identifier in the layer used to increase cache hits in docker caching. LayerId is present in Docker/stage directory structure and in intermediate image produced in the multi-stage docker build. None means the layering is skipped for this file.
- path
-
The path in the final image
Attributes
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass AnyShow all
Deprecated classlikes
Docker settings
Docker settings
Attributes
- Deprecated
- true
- Supertypes
-
class Objecttrait Matchableclass Any
- Known subtypes
-
object Keys