Install app stack using ansible on a single machine
-
The steps below were successfully tested using:
- MacOs (10.15.3)
- Docker (19.03.5)
- Docker Compose (1.25.2)
- Ansible (2.10.3), Python (3.8.5), docker (4.3.1)
-
Notes:
- Docker was given 3 CPUs and 8G RAM. (on mac see Docker Preferences | Resources)
- python 2.7 should work as well.
The ansible docker plugin is used to buid docker images.
pip install ansible
pip install docker git clone https://github.com/abessiari/noctua_app_stack.git
cd noctua_app_stack- uri
- username
- password
- barista_lookup_host
- On mac if using wireless, you can use
ipconfig getifaddr en0
- On mac if using wireless, you can use
ansible-playbook build_images.yaml
docker image list | grep minerva
docker image list | grep noctua - Create and stage blazegraph journal.
- Stage repos
- noctua-form, noctua-landing-page, noctua-models, go-site
- Note: Stage the journals below to speed up minerva start up time.
- Create stage_dir if it does not exist
- Copy
blazegraph.jnlto stage_dir - Copy
blazegraph-go-lego-reacto-neo.jnlto stage_dir
ansible-playbook stage.yaml# assuming stage_dir is in current directory
docker-compose -f stage_dir/docker-compose.yaml up -d
# minerva takes a long time to start up the first time
# Tail minerva logs to see its progress
docker-compose -f stage_dir/docker-compose.yaml logs -f minerva
# When minerva is ready all other services should be up
docker-compose -f stage_dir/docker-compose.yaml ps- Use
http://localhost:8080if defaultnoctua_proxy_portwas used
# assuming stage_dir is in current directory
docker-compose -f stage_dir/docker-compose.yaml down