...
Code Block |
---|
|
USER_NAME=developer
GROUP_NAME=developer
USER_ID=1000
GROUP_ID=1000
ALMA_DIR=/external/docker/alma
HOME_DIR=/external/docker/home
REPO_DIR=/home/developer/code/acs
IMAGE_OS=centos7
CONTAINER_DIR=centos7 |
Set ACS directories
Code Block |
---|
|
# create directories
mkdir -p /external/docker/ /external/docker/alma/ /external/docker/home/
# set ownership for directories
sudo chown $USER:$USER /external/docker/ /external/docker/alma/ /external/docker/home/ |
Run container
To run a the Docker container with ACS and open a terminal inside it:
Code Block |
---|
|
cd acs/Virtualization/Docker/Dev/
docker-compose run --name acs_centos7_env centos7 bash |
To open a terminal inside the running container:
Code Block |
---|
|
docker exec -it acs_centos7_env bash |
Install ACS inside the Docker CentOS 7 container
Check Installing ACS for full details. TL;DR:TL;DR:
- Run the container and open a terminal
Install external products
Install external products
Code Block |
---|
|
# set ownership for directories
sudo chown $USER:$USER /external/docker/ /external/docker/alma/ /external/docker/home/
# install external products
source /Repos/LGPL/acsBUILD/config/.acs/.bash_profile.acs
cd /Repos/ExtProd/INSTALL
make all |
You should see something like:
Code Block |
---|
language | bash |
---|
title | sample output |
---|
|
> make all
WARNING: Do not close this terminal: some build might fail!
Target directory ACS-2021AUG already exist.
2021-11-30T13:03:59 buildTclTk [3m17.215s] [ OK ]
2021-11-30T13:07:16 buildTAO [10m53.151s] [ OK ]
2021-11-30T13:18:09 buildMaven [0m0.134s] [ OK ]
2021-11-30T13:18:09 buildJavaDependencies [5m35.790s] [ OK ]
2021-11-30T13:23:45 buildExternalDependencies [0m5.345s] [ OK ]
2021-11-30T13:23:50 buildAnt [0m16.545s] [ OK ]
2021-11-30T13:24:07 buildJacorb ==== Building JacORB from: /Repos/ExtProd/INSTALL/../PRODUCTS into: /alma/ACS-2021AUG
==== Copying sources
==== Cumulative Patch
==== JacORB Version Patch
========= Done with unpacking and patching, can compile now... ==========
==== Building jars
==== Build Notification service IDL
==== Copy extra IDLs CosProperty(Service), DsLogAdmin and AVStreams into JacORB directory tree
==== Build with extra IDLs
======== SUCCESS!!!==========
[3m47.443s] [ OK ]
2021-11-30T13:27:54 buildPython [2m6.369s] [ OK ]
2021-11-30T13:30:01 buildPyModules [1m56.054s] [ OK ]
2021-11-30T13:31:57 buildOmniORB [7m59.542s] [ OK ]
2021-11-30T13:39:56 buildEclipse [3m16.521s] [ OK ]
2021-11-30T13:43:13 buildSwig [1m12.888s] [ OK ]
2021-11-30T13:44:26 buildBoost [3m58.007s] [ OK ]
WARNING: Now log out and login again to make sure that
the environment is re-evaluated!
__oOo__
2021-11-30T13:48:24 buildTools script has finished
. . . 'all' done |
Build ACS
After installing external products, log into a new terminal inside your container (in order to load external products correctly, e.g. Python), and build ACS.
Code Block |
---|
|
cd /Repos
make build |
You should see something like:
Code Block |
---|
language | bash |
---|
title | sample output |
---|
|
> make build
Evaluating current ACS TAG from https://bitbucket.alma.cl/scm/asw/acs.git
REPO tag is: master
############ Clean Build Log File: build.log #################
############ Check directory tree for modules #################
############ Prepare installation areas #################
############ (Re-)build ACS Software #################
############ LGPL/Kit/doc SRC
############ LGPL/Kit/acs SRC
############ LGPL/Kit/acstempl SRC
############ LGPL/Kit/acsutilpy SRC
############ LGPL/Tools MAIN
############ (Re-)build Tools Software #################
############ tat MAIN
############ expat WS
############ loki WS
############ extjars MAIN
############ antlr MAIN
############ hibernate MAIN
############ extpy MAIN
############ getopt MAIN
############ xercesc MAIN
############ xercesj MAIN
############ castor MAIN
############ xsddoc MAIN
############ extidl WS
############ shunit2 MAIN
############ scxml_apache MAIN
############ DONE (Re-)build Tools Software #################
############ LGPL/CommonSoftware/jacsutil SRC
############ LGPL/CommonSoftware/xmljbind SRC
############ LGPL/CommonSoftware/xmlpybind SRC
############ LGPL/CommonSoftware/acserridl WS
############ LGPL/CommonSoftware/acsidlcommon WS
############ LGPL/CommonSoftware/acsutil WS
############ LGPL/CommonSoftware/acsstartup SRC
############ LGPL/CommonSoftware/loggingidl WS
############ LGPL/CommonSoftware/logging WS
############ LGPL/CommonSoftware/acserr WS
############ LGPL/CommonSoftware/acserrTypes WS
############ LGPL/CommonSoftware/acsQoS WS
############ LGPL/CommonSoftware/acsthread WS
############ LGPL/CommonSoftware/acscomponentidl WS
############ LGPL/CommonSoftware/cdbidl WS
############ LGPL/CommonSoftware/maciidl WS
############ LGPL/CommonSoftware/baciidl WS
############ LGPL/CommonSoftware/acsncidl WS
############ LGPL/CommonSoftware/repeatGuard WS
############ LGPL/CommonSoftware/acsjlog SRC
############ LGPL/CommonSoftware/loggingts WS
############ LGPL/CommonSoftware/loggingtsTypes WS
############ LGPL/CommonSoftware/jacsutil2 SRC
############ LGPL/CommonSoftware/cdb WS
############ LGPL/CommonSoftware/cdbChecker SRC
############ LGPL/CommonSoftware/codegen SRC
############ LGPL/CommonSoftware/cdb_rdb SRC
############ LGPL/CommonSoftware/acsalarmidl WS
############ LGPL/CommonSoftware/acsalarm SRC
############ LGPL/CommonSoftware/acsContainerServices WS
############ LGPL/CommonSoftware/acscomponent WS
############ LGPL/CommonSoftware/recovery WS
############ LGPL/CommonSoftware/basenc WS
############ LGPL/CommonSoftware/archiveevents WS
############ LGPL/CommonSoftware/parameter SRC
############ LGPL/CommonSoftware/baci WS
############ LGPL/CommonSoftware/enumprop WS
############ LGPL/CommonSoftware/acscallbacks SRC
############ LGPL/CommonSoftware/acsdaemonidl WS
############ LGPL/CommonSoftware/jacsalarm SRC
############ LGPL/CommonSoftware/jmanager SRC
############ LGPL/CommonSoftware/maci WS
############ LGPL/CommonSoftware/task SRC
############ LGPL/CommonSoftware/acstime WS
############ LGPL/CommonSoftware/acsnc WS
############ LGPL/CommonSoftware/acsdaemon WS
############ LGPL/CommonSoftware/acslog WS
############ LGPL/CommonSoftware/acstestcompcpp SRC
############ LGPL/CommonSoftware/acsexmpl WS
############ LGPL/CommonSoftware/jlogEngine SRC
############ LGPL/CommonSoftware/acspycommon SRC
############ LGPL/CommonSoftware/acsalarmpy SRC
############ LGPL/CommonSoftware/acspy SRC
############ LGPL/CommonSoftware/comphelpgen SRC
############ LGPL/CommonSoftware/XmlIdl SRC
############ LGPL/CommonSoftware/define WS
############ LGPL/CommonSoftware/acstestentities SRC
############ LGPL/CommonSoftware/jcont SRC
############ LGPL/CommonSoftware/jcontnc SRC
############ LGPL/CommonSoftware/nsStatisticsService SRC
############ LGPL/CommonSoftware/jacsalarmtest SRC
############ LGPL/CommonSoftware/jcontexmpl SRC
############ LGPL/CommonSoftware/jbaci SRC
############ LGPL/CommonSoftware/monitoring MAIN
############ (Re-)build monitoring Software #################
############ monicd WS
############ moncollect WS
############ monblobber MAIN
############ moncontroller MAIN
############ DONE (Re-)build monitoring Software #################
############ LGPL/CommonSoftware/acssamp WS
############ LGPL/CommonSoftware/mastercomp SRC
############ LGPL/CommonSoftware/acspyexmpl SRC
############ LGPL/CommonSoftware/nctest WS
############ LGPL/CommonSoftware/acscommandcenter SRC
############ LGPL/CommonSoftware/acssim SRC
############ LGPL/CommonSoftware/bulkDataNT SRC
### ==> FAILED all !
### ==> FAILED install !
############ LGPL/CommonSoftware/bulkData SRC
############ LGPL/CommonSoftware/containerTests MAIN
############ (Re-)build(SUBSYSTEM) Software #################
############ contLogTest MAIN
############ contNcTest MAIN
############ corbaRefPersistenceTest MAIN
############ contHandleTest MAIN
############ DONE (Re-)build containerTest Software #################
############ LGPL/CommonSoftware/acscourse WS
############ LGPL/CommonSoftware/ACSLaser MAIN
############ (Re-)build Laser Software #################
############ alarmCommon MAIN
############ laser-extlib MAIN
############ acs-jms MAIN
############ cmw-mom MAIN
############ laser-util MAIN
############ laser-source MAIN
############ laser-source-cpp MAIN
############ laser-source-python MAIN
############ gp-openide MAIN
############ gp MAIN
############ laser-core MAIN
############ alarmHibernate MAIN
############ laser-client MAIN
############ laser-definition MAIN
############ laser-console MAIN
############ alarm-clients MAIN
############ demo MAIN
############ managerTest MAIN
############ baciPropsTest MAIN
############ alarmTests MAIN
############ containerTest MAIN
############ DONE (Re-)build Laser Software #################
############ LGPL/CommonSoftware/acsGUIs MAIN
############ (Re-)build ACS GUIs #################
############ acsGUIutil MAIN
############ acsEclipseUtils MAIN
############ acssampGUI MAIN
############ cdbBrowser MAIN
############ errorBrowser MAIN
############ eventGUI MAIN
############ jlog MAIN
############ logLevelGUI MAIN
############ logTools MAIN
############ objexp MAIN
############ alarmSourcePanel MAIN
############ AlarmSystemProfiler MAIN
############ alarmPanel MAIN
############ DONE (Re-)build ACS GUIs #################
############ LGPL/CommonSoftware/acsExtras MAIN
############ (Re-)build ACS EXTRAS #################
############ acsXmlFileStore MAIN
############ DONE (Re-)build ACS EXTRAS #################
############ Benchmark/util SRC
############ Benchmark/analyzer SRC
############ LGPL/acsBUILD SRC
############ FAILED (Re-)build ACS Software #################
make: *** [update] Error 1 |
- If everything is ok you have successfully installed ACS. You can test it by opening a new terminal and running:
Troubleshooting
If you have any issues installing ACS or its components try the following.
...