0.0
No commit activity in last 3 years
No release in over 3 years
Usage: [singularity delete <uri> <file>] or [singularity deploy <uri> <file> <release>]
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.7.7, ~> 0.7.7
>= 1.8.0, ~> 1.8
 Project Readme

singularity-cli

singularity-cli replaces the mescal command that Offers.com used in the past

  • all of the commands except delete and deploy require you to be in the base project folder to work correctly

Requirements

  • Docker >= 1.12.1
  • ~/.ssh has the right keys

Install

If you don't have dope installed, go here to install it first: https://github.com/offers/dope

dope install registry.offers.net/devops/singularity-cli

Update

dope update singularity

Usage:

singularity ssh

  • start new container in singularity and SSH into it
cd ~/yourproject
singularity ssh

singularity run <commands>

  • start new container in singularity and run <commands>
  • for now, the commands (or script) must either be passed on the command line or in the container
cd ~/yourproject
singularity run /your/script/is/here.sh args
singularity run ls -a | grep appname

singularity deploy <uri> <file.json> <release>

  • manually deploy a single singularity job
cd ~/yourproject
singularity deploy ./singularity/some-singularity-config.json r74

singularity delete <uri> <file.json>

  • delete singularity job
singularity delete ./singularity/some-singularity-config.json

Creation of a new project:

If you want to create a new project that uses this tool's functionality you must create the files .mescal.json and mesos-deploy.yml in the base project directory for your new project. Use another project's files as a template and fill in the values for your new project.

Testing:

docker-compose build
./test.sh