Skip to content
Snippets Groups Projects

Added python-based deploy scripts

Merged Sylvester Joosten requested to merge python-deploy into master

Added python-based deploy script that streamlines the deploy procedure somewhat. I left the cmake-based deploy in place for now.

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Can you show how it would normally be used?

    Could we use this in a simplified install script? It could prompt the user for permission to append things to their bashrc? This would make life a little easier.

  • Normal usage

    This is the usage information from the deploy script:

    usage: deploy.py [-h] [-v VERSION] [-f] [-b BIND_PATHS] [-m MODULE_PATH]
                     prefix
    
    positional arguments:
      prefix                Install prefix. This is where the container will be
                            deployed.
    
    optional arguments:
      -h, --help            show this help message and exit
      -v VERSION, --version VERSION
                            (opt.) project version. Default: current git
                            branch/tag.
      -f, --force           Force-overwrite already downloaded container
      -b BIND_PATHS, --bind-path BIND_PATHS
                            (opt.) extra bind paths for singularity.
      -m MODULE_PATH, --module-path MODULE_PATH
                            (opt.) Root module path where you want to install a
                            modulefile. D: <prefix>/../../etc/modulefiles

    A standard way to deploy the current git version to $HOME/local/opt would be:

    ./deploy.py $HOME/local/opt/eic_container_master

    In this case it will be deployed in the prefix, and the module file will be installed in $HOME/local/etc/modulefiles

    If we want to deploy a specific version, say 1.0.4, and we also want to add two extra bind paths (e.g. /lcrc and /scratch) to the singularity launchers

    ./deploy.py -v1.0.4 -b /lcrc -b /scratch $HOME/local/opt/eic_container_1.0.4 

    Other install tasks

    We could absolutely suggest some additions to basic. What would you add to the bashrc? Ensure modules are loaded and a "module use/module load" or something more sophisticated?

  • added 1 commit

    Compare with previous version

  • added 1 commit

    Compare with previous version

  • mentioned in commit 60e2fe1f

Please register or sign in to reply
Loading