com.mediative.sbt.devops

MediativeDockerPlugin

object MediativeDockerPlugin extends AutoPlugin

Package application using the smaller Alpine JDK Docker image.

To use add the following lines to the project definition:

.enablePlugins(MediativeDockerPlugin)

It ensures that the Alpine Docker is compatible with the default base image used by sbt-native-packager and filters out default commands which increase the image size.

In addition, it sets the version of the Docker image to either qa-latest or the sbt version based on whether the current version is a release (has been tagged) or not. This assumes the sbt project is versioned with the sbt-git plugin as configured by the com.mediative.sbt.MediativeCorePlugin plugin.

This plugin must be enabled.

Source
MediativeDockerPlugin.scala
Linear Supertypes
AutoPlugin, PluginsFunctions, Basic, Plugins, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. MediativeDockerPlugin
  2. AutoPlugin
  3. PluginsFunctions
  4. Basic
  5. Plugins
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

    Definition Classes
    AnyRef → Any
  4. def &&(o: Basic): Plugins

    Definition Classes
    Basic → Plugins
  5. final def ==(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  6. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  7. val AlpineCompatCommands: List[String]

  8. val AlpineDockerImage: String

  9. def allRequirements: PluginTrigger

    Definition Classes
    PluginsFunctions
  10. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  11. def buildSettings: Seq[sbt.Def.Setting[_]]

    Definition Classes
    AutoPlugin
  12. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  13. def derivedProjects(proj: ProjectDefinition[_]): Seq[Project]

    Definition Classes
    AutoPlugin
  14. def empty: Plugins

    Definition Classes
    PluginsFunctions
  15. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  16. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  17. def extraProjects: Seq[Project]

    Definition Classes
    AutoPlugin
  18. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  19. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  20. def globalSettings: Seq[sbt.Def.Setting[_]]

    Definition Classes
    AutoPlugin
  21. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  22. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  23. val label: String

    Definition Classes
    AutoPlugin
  24. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  25. def noTrigger: PluginTrigger

    Definition Classes
    PluginsFunctions
  26. final def notify(): Unit

    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  28. def projectConfigurations: Seq[Configuration]

    Definition Classes
    AutoPlugin
  29. def projectSettings: Seq[Setting[_]]

    Definition Classes
    MediativeDockerPlugin → AutoPlugin
  30. def requires: Plugins

    Definition Classes
    MediativeDockerPlugin → AutoPlugin
  31. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  32. def toString(): String

    Definition Classes
    AutoPlugin → AnyRef → Any
  33. def trigger: PluginTrigger

    Definition Classes
    AutoPlugin
  34. final def wait(): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  35. final def wait(arg0: Long, arg1: Int): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  36. final def wait(arg0: Long): Unit

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AutoPlugin

Inherited from PluginsFunctions

Inherited from Basic

Inherited from Plugins

Inherited from AnyRef

Inherited from Any

Ungrouped