Skip to content

Accordance/dev-environment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Accordance Dev Seed demo environment

Note: This has been tested only on MacOS

  1. Clone the repo
  2. Clone data-source repo in the same folder as this one
  3. Make sure you have docker configured (if on Mac - boot2docker)
  4. Note: on non-Mac environment set the DOCKERHOST variable to the docker0 interface IP
  5. ./start.sh
  6. Navigate to http://dockerhost:8000

Accordance Development environment Step-by-Step

Starting the Environment

  1. Make sure that your environment is prepared per the 'Initial Setup' instructions
  2. Start all the components: rake start
  3. Wait a little for the process to complete ...
  4. (Only for demo purposes) Load demo data: rake orientdb:init
  5. Open a browser and navigate to: http://dockerhost:8000

Environment Components

  1. Service catalog: http://dockerhost:8500
  2. Graph DB (OrientDB - root/password): http://dockerhost:2480
  3. Atlas service: http://dockehost:8080

Destroying the Environment

  1. Stop all the services: rake stop

Initial Setup

  1. Make sure you have all the 'Prerequisites'
  2. Prepare you 'Development Environment configuration' by choosing steps from a section appropriate to your OS
  3. Create docker machine following docker-machine instructions. Ex: docker-machine create --driver virtualbox dev
  4. Stop docker machine. Ex: docker-machine stop dev
  5. Map ports and mount folders (has to be executed once per new Docker Machine) to configure VirtualBox:
  6. Windows: run config_docker_machine.ps1 in PowerShell
  7. MaxOS: config_docker_machine.sh
  8. Start docker machine. Ex: docker-machine start dev
  9. Run bundle install
  10. Configure 'dockerhost' hostname to be pointing to the same IP as DOCKER_HOST environment variable and it's pingable: ping dockerhost
  11. Create a working folder for Accordance project: mkdir accordance
  12. Navigate to the working folder: cd accordance
  13. Clone development environment repository:
    git clone https://github.com/Accordance/dev-environment.git
    cd dev-environment
    bundle install
    cd ..
    
  14. Clone data source repository:
    git clone https://github.com/Accordance/data-source.git
    cd data-source
    bundle install
    cd ..
    
  15. Clone service catalog repository:
    git clone https://github.com/Accordance/docker-consul-acl.git
    
  16. Build the environment:
    cd dev-environment
    rake prepare:secrets
    

Configuring VirtualBox

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

Prerequisites

For All:

  1. Ruby >= 2.1.2
  2. Bundler gem (run gem install bundle)
  3. RVM >= 1.26.9
  4. (Windows/MacOS) Docker Toolbox (should be 100% operational)

For Windows:

  1. Use PowerShell as default shell
  2. Install Ruby for Windows
  3. install Ruby Development Kit following directions.
  4. Follow Docker Toolbox for Windows instructions.
  5. Git for Windows.

Development Environment configuration

Git

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

For Windows

Configure environment variables by running config_dev_env.ps1

About

Full end-2-end docker-based operational development environment

Resources

Stars

Watchers

Forks

Packages

No packages published