Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • Clone repository
  • Configure .env file
    • USER_NAME: Container user name. No need to change
    • GROUP_NAME=Container user name. No need to change
    • USER_ID: The user id to be assigned, this should be the same as your own local user (Find out with "id -u")
    • GROUP_ID: The group id to be assigned, this should be the same as your own local user (Find out with "id -g")
    • ALMA_DIR: Directory to install ACS (Will use some disk space ~2-4GB)
    • HOME_DIR: Home directory to configure .bashrc and other files that you want to survive container restart, besides your ACS installation and you repositories
    • REPO_DIR: Directory where you have placed the seii202105 repository
  • Create your directories locally, to ensure proper ownership and permissions
  • Build the image
  • Start a container
  • Connect multiple instances (Exec)
Code Block
languagebash
#Clone repository
git clone https://github.com/tstaig/seii202105.git
cd seii202105/acs-ws

#Configure .env file
vim .env #...

#Create directories
#The environment variables don't really exist, you must use the paths you defined in the .env file
mkdir $ALMA_DIR
mkdir $HOME_DIR
mkdir $REPO_DIR

#Build the image
make acsbuild

#Run container
#Container entry point, if you exit, all other exec instances will be lost
make run

#Connect to running container
#On a different console, you could start multiple instances
make exec

...

  • Run or connect to a container
  • Clone ACS repository (May take some timeTakes around 2-5 minutes)
  • Execute installation scripts 
    • buildExtProds.sh (Takes around an hour)
    • buildACS.sh (Takes around 45 minutes)
Code Block
languagebash
make run

#Now inside the docker container
cd /Repos
git clone https://bitbucket.alma.cl/scm/asw/acs.git
cd acs
git checkout acs/2021APR
/scripts/buildExtProds.sh
/scripts/buildACS.sh

Configure .bashrc

Add the following at the end of your .bashrc file:

Code Block
languagebash
if [ -f /alma/ACS-2021APR/config/.acs/.bash_profile.acs ]; then 
    source /alma/ACS-2021APR/config/.acs/.bash_profile.acs
fi