Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • HabitatSampler HabitatSampler
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Habitat SamplerHabitat Sampler
  • HabitatSamplerHabitatSampler
  • Merge requests
  • !2

Docker

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Romulo Pereira Goncalves requested to merge docker into master Feb 04, 2021
  • Overview 0
  • Commits 61
  • Pipelines 0
  • Changes 17

With this merge requests we are now able to create a docker image for HabitatSampler.

In the docker directory there is a script to build the image and another one to start a docker container. The script to start a docker container allows the user to launch either a bash console to start an R instance or a jupyter-lab to run notebooks.

To be able to run HabitatSampler with less resources as possible we now delete the main objects after their last utilization and call R garbage collector gc(full = TRUE). Furthermore, extra arguments were added to the function multi_Class_Sampling:

  • save_runs : an Habitat object and extra info (to restart a run) is saved (default TRUE)
  • max_num_cores : maximum number of cores for parallelism (default 5)

Since we can't launch a web-browser from a docker container, the user can now decide if the images should be either plot via a browser or plotted inline in a notebook. In both cases the interactive plot is saved as a html file in disk.

  • plot_on_browser : plot on the browser or inline in a notebook (default TRUE)

All documentation was improved according to the above changes.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: docker