Note: This has been tested only on MacOS
- Clone the repo
- Clone data-source repo in the same folder as this one
- Make sure you have
dockerconfigured (if on Mac - boot2docker) - Note: on non-Mac environment set the DOCKERHOST variable to the docker0 interface IP
./start.sh- Navigate to
http://dockerhost:8000
- Make sure that your environment is prepared per the 'Initial Setup' instructions
- Start all the components:
rake start - Wait a little for the process to complete ...
- (Only for demo purposes) Load demo data:
rake orientdb:init - Open a browser and navigate to: http://dockerhost:8000
- Service catalog: http://dockerhost:8500
- Graph DB (OrientDB - root/password): http://dockerhost:2480
- Atlas service: http://dockehost:8080
- Stop all the services:
rake stop
- Make sure you have all the 'Prerequisites'
- Prepare you 'Development Environment configuration' by choosing steps from a section appropriate to your OS
- Create docker machine following docker-machine instructions. Ex:
docker-machine create --driver virtualbox dev - Stop docker machine. Ex:
docker-machine stop dev - Map ports and mount folders (has to be executed once per new Docker Machine) to configure VirtualBox:
- Windows: run
config_docker_machine.ps1in PowerShell - MaxOS:
config_docker_machine.sh - Start docker machine. Ex:
docker-machine start dev - Run
bundle install - Configure 'dockerhost' hostname to be pointing to the same IP as DOCKER_HOST environment variable and it's pingable:
ping dockerhost - Create a working folder for Accordance project:
mkdir accordance - Navigate to the working folder:
cd accordance - Clone development environment repository:
git clone https://github.com/Accordance/dev-environment.git cd dev-environment bundle install cd .. - Clone data source repository:
git clone https://github.com/Accordance/data-source.git cd data-source bundle install cd .. - Clone service catalog repository:
git clone https://github.com/Accordance/docker-consul-acl.git - Build the environment:
cd dev-environment rake prepare:secrets
Set $Env:DOCKER_MACHINE_NAME variable to the name of the Docker Machine you're using Run 'config_docker_machine' to configure VirtualBox ports and shared folders
For All:
- Ruby >= 2.1.2
- Bundler gem (run
gem install bundle) - RVM >= 1.26.9
- (Windows/MacOS) Docker Toolbox (should be 100% operational)
For Windows:
- Use PowerShell as default shell
- Install Ruby for Windows
- install Ruby Development Kit following directions.
- Follow Docker Toolbox for Windows instructions.
- Git for Windows.
Configure Git on Windows to properly handle line endings
git config --global core.autocrlf true
Fixing "old mode" to "new mode" error on Windows
git config core.filemode false
Configure environment variables by running
config_dev_env.ps1