Last active
October 24, 2018 05:25
-
-
Save vitkhab/e74ce4c3a5037c52d35433a0d8f7c294 to your computer and use it in GitHub Desktop.
How-to start Hygieia on Parallels VM
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create and provision VM | |
vagrant up | |
# Log into VM | |
vagrant ssh | |
# Go to direcotry with Hygieia sources | |
cd Hygieia | |
# Build Hygieia docker images | |
mvn docker:build | |
# Start Hygieia | |
docker-compose up -d | |
# Connect to MongoDB | |
docker-compose exec db bash | |
# Create dashboard user from the CLI | |
mongo --eval 'db.getSiblingDB("dashboarddb").createUser({user: "dashboarduser", pwd: "dbpassword", roles: [{role: "readWrite", db: "dashboarddb"}]})' | |
# Hygieia will run on tcp/3000 port on your VM, e.g. http://10.211.55.119:3000 | |
# Create new account on http://10.211.55.119:3000/#/signup |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.box = "parallels/ubuntu-16.04" | |
config.vm.provider "parallels" do |prl| | |
prl.memory = 1024 | |
prl.cpus = 1 | |
end | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
sudo apt update | |
sudo apt -y install docker.io python-pip openjdk-8-jdk maven git | |
sudo usermod -a -G docker vagrant | |
export LC_ALL="en_US.UTF-8" | |
export LC_CTYPE="en_US.UTF-8" | |
pip install docker-compose | |
SHELLs | |
config.vm.provision "shell", privileged: false, inline: <<-SHELL | |
git clone https://github.com/Hygieia/Hygieia.git | |
cd Hygieia/ | |
mvn clean install package | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment