Information
We are currently investigating an issue with the editor of some pages. Please save your work and avoid to create new pages until this banner is gone.
In this tutorial we will write and run example ACS modules in Python, Java and C++ inside a Docker container based in a CentOS 7 image, in an Ubuntu 20.04 machine.
sudo apt update sudo apt install git-lfs git clone https://bitbucket.alma.cl/scm/asw/acs.git
Install SELinux
sudo apt install policycoreutils selinux-utils selinux-basics sudo selinux-activate sudo selinux-config-enforcing
Edit docker .env file (you can use your favourite editor)
cd Virtualization/Docker/Dev/ sudo nano .env
USER_NAME=<my_user> GROUP_NAME=<my_group> USER_ID=1000 GROUP_ID=1000 ALMA_DIR=/external/docker/alma HOME_DIR=/external/docker/home REPO_DIR=/absolute/path/to/cloned/repo IMAGE_OS=centos7 CONTAINER_DIR=centos7
To run a Docker container with ACS:
docker-compose run --name acs_centos7_env centos7 bash
To open a shell inside the container
docker exec -it acs_centos7_env bash
# install external products cd /Repos source LGPL/acsBUILD/config/.acs/.bash_profile.acs cd ExtProd/INSTALL make all # install ACS cd ../.. make build