singularity-cli
replaces the mescal
command that Offers.com used in the past
- all of the commands except
delete
anddeploy
require you to be in the base project folder to work correctly
- Docker >= 1.12.1
- ~/.ssh has the right keys
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
dope update singularity
- start new container in singularity and SSH into it
cd ~/yourproject
singularity ssh
- 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
- manually deploy a single singularity job
cd ~/yourproject
singularity deploy ./singularity/some-singularity-config.json r74
- delete singularity job
singularity delete ./singularity/some-singularity-config.json
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.
docker-compose build
./test.sh