Skip to content

Conversation

viktortnk
Copy link
Contributor

Closes #83

@viktortnk viktortnk merged commit 3a2eb68 into master Jul 9, 2017
@viktortnk viktortnk deleted the hostconfig-with-tmpfs branch July 9, 2017 08:44
@viktortnk viktortnk restored the hostconfig-with-tmpfs branch July 9, 2017 09:29
@alienscience
Copy link

Many thanks, this works great and gave the performance increase we were expecting.

In case anybody is reading this in the future, this is how to use tmpfs:

  // Run the app on tmpfs -- this improves peformance especially on OSX
  val hostConfig = HostConfig(tmpfs = Some(Map("/YOUR/mountpoint/here" -> "rw,size=250M")))

  // Then add hostConfig when creating the docker container
  val myContainer = DockerContainer(containerName)
    .withPorts(MyPort -> None)
    .withReadyChecker(
      DockerReadyChecker.LogLineContains(
        "Your ready checker here"
      )
    )
    .withHostConfig(hostConfig)

@viktortnk viktortnk deleted the hostconfig-with-tmpfs branch September 15, 2017 19:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants