Packages

p

dockerenv

package dockerenv

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

Type Members

  1. trait DockerEnv extends AnyRef

    The 'DockerEnv' represents a handle onto environment scripts which can be started, stopped and checked to see if they're running.

Value Members

  1. lazy val DefaultWorkDir: String

    The default location under which scripts are extraxted

  2. var defaultLogger: (String) ⇒ Unit

    A default logger, which can be *ahem* globally replaced if needed.

    A default logger, which can be *ahem* globally replaced if needed.

    I didn't want to bind any additional dependencies to this project, including loggers, even slf4j ones.

    You could explicitly pass a logging function to a dockerenv.* function, or set the global default:

    dockerenv.defaultLogger = dockerenv.stdOut
  3. lazy val devNull: (String) ⇒ Unit

    An ignoring logging function.

    An ignoring logging function. see defaultLogger

  4. def envFor(scriptDir: String, workDir: String = DefaultWorkDir, scriptLogger: (String) ⇒ Unit = defaultLogger): Instance
  5. def extractScriptsFromJar(fromPath: String, toDir: Path): Path

    We won't be able to execute the .sh scripts (or address anything else) while they're in the dockerenv jar, so this script explodes the resource artifacts from that jar into the 'toDir' location (which is presumably /target/dockerenv or something)

    We won't be able to execute the .sh scripts (or address anything else) while they're in the dockerenv jar, so this script explodes the resource artifacts from that jar into the 'toDir' location (which is presumably /target/dockerenv or something)

    fromPath

    the path to the jar artifact

    toDir

    the local destination directory

    returns

    the extracted location (same as the 'toDir')

  6. def kafka(workDir: String = DefaultWorkDir, scriptLogger: (String) ⇒ Unit = defaultLogger): Instance
  7. def mongo(workDir: String = DefaultWorkDir, scriptLogger: (String) ⇒ Unit = defaultLogger): Instance
  8. def orientdb(workDir: String = DefaultWorkDir, scriptLogger: (String) ⇒ Unit = defaultLogger): Instance
  9. lazy val stdOut: (String) ⇒ Unit

    log to std output.

    log to std output. see defaultLogger

  10. object DockerEnv
  11. object using

Inherited from AnyRef

Inherited from Any

Ungrouped