dockerenv
package dockerenv
- Alphabetic
- By Inheritance
- dockerenv
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Type Members
Value Members
-
lazy val
DefaultWorkDir: String
The default location under which scripts are extraxted
-
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
-
lazy val
devNull: (String) ⇒ Unit
An ignoring logging function.
An ignoring logging function. see defaultLogger
- def envFor(scriptDir: String, workDir: String = DefaultWorkDir): Instance
-
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')
- def kafka(workDir: String = DefaultWorkDir): Instance
- def mongo(workDir: String = DefaultWorkDir): Instance
- def orientdb(workDir: String = DefaultWorkDir): Instance
-
lazy val
stdOut: (String) ⇒ Unit
log to std output.
log to std output. see defaultLogger
- object DockerEnv
- object using