This repository contains
- a custom docker image based on https://github.com/ACS-Community/ACS-Docker-Image
- some utility bash scripts
- Docker
- Ubuntu 18.04
- Docker 19.03.6
You need to build the custom image (you can change the tag inside build.sh):
cd sag_acs_dev_env/custom-recipe
source build.sh
Let's enter the container (the sag_acs_dev_env/shared_dir will be shared with the container):
cd sag_acs_dev_env
source start.sh
After the start.sh you will be at /shared_dir inside the container.
In order to download the acada repositories you may use ssh authentication. Put your public and private keys inside the ".ssh" folder. You can enable ssh authentication with:
source start.sh
4cb59c3449f8 almamgr:/shared_dir > source sag_acs_dev_env/shared_dir/scripts/enable_ssh_key.sh foo
You will need a private key file called "foo" inside the ".ssh" folder.
Let's clone the repositories inside the "Repos" folder:
4cb59c3449f8 almamgr:/shared_dir > cd Repos
4cb59c3449f8 almamgr:/shared_dir > git clone [email protected]:cta-computing/acada/science-alert-generation.git
4cb59c3449f8 almamgr:/shared_dir > git submodule update --init
Everytime you enter the container you need to:
- Load INTROOT:
source scripts/load_introot.sh INTROOT_PATH INTROOT_NAME
- Load CDB:
source scripts/load_cdb.sh CDB_PATH
You also write your own script such as scripts/sag_env.sh
- Enable ssh authentication if you want to use git