1.1.5 Install BOA in a development environment from scratch - Daniel-Brosnan-Blazquez/vboa GitHub Wiki
Introduction
This procedure covers the action to install BOA in a development environment from scratch.
Note: References to s2boa included for completeness regarding the installation of a tailored BOA.
Pre-conditions
- Ubuntu and docker installed in a development environment. See the following procedures to accomplish this pre-condition:
Procedure
- Start the BOA development environment
- Create the following folder in the development environment:
cd
mkdir workspace
-
Clone BOA repositories into the workspace folder (plus the repository of the tailored BOA if available):
Note: use the develop branch for all repositories.
cd ~/workspace/
git clone https://stash.elecnor-deimos.com/scm/boa/eboa.git
cd ~/workspace/eboa/
git checkout develop
cd ~/workspace/
git clone https://stash.elecnor-deimos.com/scm/boa/vboa.git
cd ~/workspace/vboa/
git checkout develop
(plus the repository of the tailored BOA if available, for example, s2boa):
cd ~/workspace/
git clone https://stash.elecnor-deimos.com/scm/boa/s2boa.git
cd ~/workspace/s2boa/
git checkout develop
- Download ORC into the workspace folder:
-
Download the following folder: https://drive.google.com/drive/folders/1_9C36f4TDNH_iOgSk3XUy0x8S6JPIxlN?usp=sharing
-
Extract the zip.
-
unzip latest_release-20210204T082737Z-001.zip
- Rename the folder latest_release as orc_minarc.
mv latest_release orc_minarc
- Move the folder orc_minarc into the workspace folder.
mv orc_minarc/ ~/workspace
- (Step needed for the s2boa tailored BOA) Download the EOP CFI into the workspace folder:
-
Download the following tar file: https://drive.google.com/file/d/1-Xvj7cZe4VPalvrd1tWrKF9fedpV3RUc/view?usp=sharing
-
Extract the archive.
-
tar xzvf eopcfi.tgz
- Move the folder eopcfi into the workspace folder.
mv eopcfi ~/workspace
- (Instructions for installing the tailored BOA, s2boa, where the host user created is boa) Execute the following commands to install the BOA development environment:
cd ~/workspace/orc_minarc
for file in `ls *gem.tar`; do mv $file `basename $file .tar`; done
sudo su -
cd /home/boa/workspace/s2boa/
export FOLDER=/home/boa; ./init_docker_dev_environment.sh -e $FOLDER/workspace/eboa -v $FOLDER/workspace/vboa -d $FOLDER/workspace/vboa/Dockerfile.dev -o $FOLDER/workspace/orc_minarc -u boa -f $FOLDER/workspace/eopcfi -p 80 -t $FOLDER/workspace/s2boa -l dev -a s2vboa
Expected output (for example, for s2boa):
The development environment for s2vboa has been initialized :-)
- Change permissions on ORC configuration's folder to allow tests to overwrite ORC configuration if needed:
docker exec -it -u root boa_app_dev /bin/bash
chmod -R o+w `orcValidateConfig -C`
-
Now, the BOA portal should be available through the following address: https://localhost:80
Default credentials to access: Default credentials
-
Access through the console should be available with the following command (using the specific host user created, for example, boa):
docker exec -it -e HOME=/home/boa -u boa boa_app_dev /bin/bash