GithubHelp home page GithubHelp logo

bastienf / aura_infrastructure Goto Github PK

View Code? Open in Web Editor NEW

This project forked from aura-healthcare/aura_infrastructure

0.0 2.0 0.0 348 KB

Ansible/Docker project for operating Aura's servers

License: GNU General Public License v3.0

aura_infrastructure's Introduction

Aura_infrastructure

Ansible/Docker project for operating Aura's servers

How to contribute

Please refer to How To Contribute

tl;dr

Create the group_vars/all/secrets.yml file with the following variables:

jupyter_client_id: <GitHub OAuth application Client ID for JupyterHub>
jupyter_client_secret: <GitHub OAuth application Client Secret for JupyterHub>

ansible-playbook -vv --diff -i inventories/prod.yml install.yml [-t time_series_db -t jupyter -t reverse_proxy]

Prerequisites

  • Ansible v2.4.2
  • The server has to have a user aura with following /etc/sudoers configuration : aura ALL=(ALL) NOPASSWD: ALL

Development environment

Prerequisites

  • Vagrant v1.8.6
  • To have a public ssh key on your local machine on location : ~/.ssh/id_rsa.pub

tl;dr

  1. (only once) : echo -e "192.168.33.22\tdb.aura.healthcare.local" | sudo tee -a /etc/hosts
  2. vagrant up
  3. ansible-playbook -i inventories/dev.yml install.yml [-t time_series_db -t reverse_proxy, ...]
  4. Enjoy
  5. vagrant destroy

Usage

Your local vagrant environment is configured inside the inventory inventories/dev.yml.

You can run any playbook on this environment.

To have a local url that route to this development environment you can add this line in your hosts file (/etc/hosts) : 192.168.33.22 db.aura.healthcare.local

Once you have executed the vagrand up command and run the install.yml playbook on the development environment you can change the configuration of the mobile app to use the db.aura.healthcare.local url, you can do any test.

You can ssh to the virtual machine with ssh [email protected]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.