vsoch / scif

scientific filesystem: a filesystem organization for scientific software and metadata
https://sci-f.github.io/
Mozilla Public License 2.0
30 stars 13 forks source link

Create entrypoint to activate environment #25

Closed vsoch closed 6 years ago

vsoch commented 6 years ago

Should be able to:

  1. take app name and source environment, if it exists
  2. run activate function for app.

So we could do

%apprun trace
   scif activate $1
   exec $SCIF_APPRUN
vsoch commented 6 years ago

actually, we can just run scif to handle this! Eg:

%appinstall trace
    apt-get install -y strace
%apprun trace
    # check for args here
    exec strace -C -t -o $2 scif run $1