This project is to simplify the installation of Openmaint using containers. It has the possibility to select between two versions:
- 2.3-3.4.4
- 2.3-3.4.1-d
The releses are in the repository openmaint.releses
- jq
- docker
- docker-compose
- podman ( Optinal )
- podman-compose ( Optinal )
Short installation
bash <(wget -qO- "https://gitlab.com/aonisoft/openmaint.infra/-/raw/main/install.sh?ref_type=heads" )
source ~/.bashrcLong installation
cd <dir-where-you-will-install-opentmaint.infra>
git clone https://gitlab.com/aonisoft/openmaint.infra.git
cd openmaint.infra
echo ". $install_path/controls/main_infra.sh" >> ~/.bashrc
source ~/.bashrc
iom_initThe versions are defined in config/script_infra/db.json.
Set the container tool that you are using.
iom use <test|prod>By default, the openmaint version is not configured. Therefore, you must select it this way:
iom use <test|prod>Set the environment variables necessary to bring up the container services.
It has two contexts: production and testing. Howover, they share same environment variables.
In the testing context, there is a graphical viewwer for the Pgadmin data base. By default, it listens on port 8030.
That's why it there are two environment variables files: .env.common and .env.local This latter is near the compose file that corresponds to the context.
The must important environment variables to modify are in the .env.local file:
- POSTGRES_USER
- POSTGRES_PASS
- POSTGRES_DB
- USER_NAME
- USER_PASS
You can do it using the command:
iom setenv <test|prod|>You can bring up the container with the command:
iom up <test|prod>Wait a few seconds until the tomcat server and database is available.
With this command, observe the container logs:
iom logs <test|prod>The container names are defined in the .env.common file
Open your browser with localhost:8081
Login: admin
Password: admin
Context testing config file: .env.local
Context production config file: .env.local
Environment variable common: .env.common
This project is inspired by another repo that is: cmdbuild_docker