ec2_post_init
Populate STScI EC2 instances with ease
|
This shell library is useful if you are not a systems administrator but want to spin up an EC2 image to do data analysis or research. ec2_post_init provides a simple easy to use API that can:
system.inc.sh :: sys_pkg_install()
)docker.inc.sh :: docker_setup()
)miniconda.inc.sh :: mc_install()
)astroconda.inc.sh
)
If you don't want to install ec2_post_init permanently, you don't have to. This is especially useful for systems that provide curl
and tar
by default but lack git
and make
. Here is how to use ec2_post_init from its source directory:
Now you can include the library in your own script by sourcing ec2pinit.inc.sh
...
To see how one can use ec2_post_init to populate a system with Miniconda3 and the three major STScI pipeline releases, please refer to the Full example page. The API reference for each library module can be found here.
To write code for ec2_post_init you should have access to an EC2 instance, or a host with docker
or vagrant
installed.
To test ec2_post_init using docker:
To test ec2_post_init using vagrant (VirtualBox):
Create a new Vagrantfile
. Be sure to change any paths to match your local system
Provision the VM, log in, and execute the test suite: