Skip to content

kltm/noctua_app_stack

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Noctua App Stack

Install app stack using ansible on a single machine

Requirements

  • 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.

Installing ansible and ansible docker plugin

The ansible docker plugin is used to buid docker images.

pip install ansible
pip install docker 

Deploying app stack:

Clone this repo.

git clone https://github.com/abessiari/noctua_app_stack.git
cd noctua_app_stack

Modify vars.yaml as needed. Minimally you need to modify the following variables:

  • uri
  • username
  • password
  • barista_lookup_host
    • On mac if using wireless, you can use ipconfig getifaddr en0

Build noctua and minerva docker images.

ansible-playbook build_images.yaml
docker image list | grep minerva
docker image list | grep noctua 

Stage artifacts.

  • 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
    • Copyblazegraph.jnl to stage_dir
    • Copyblazegraph-go-lego-reacto-neo.jnl to stage_dir
ansible-playbook stage.yaml

Bring up stack using docker-compose.

# 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

Access noctua from a browser using http://localhost:{{ noctua_proxy_port }}

  • Use http://localhost:8080 if default noctua_proxy_port was used

Bring down stack using docker-compose.

# assuming stage_dir is in current directory
docker-compose -f stage_dir/docker-compose.yaml down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published