Giter VIP home page Giter VIP logo

eponyms-2-web-installer's Introduction

Eponyms 2 Server Installation

Provisions a box that can run the complete Eponyms 2 stack. It installs:

  • Couchbase Server ๐Ÿ”น
    • ports 8091 and 8092
  • Couchbase Sync Gateway ๐Ÿ”น
    • port 4984 open on localhost
    • admin port 4985 open on localhost
  • Eponyms 2 Python web app ๐Ÿ”น
    • port 8000 (via gunicorn) open on localhost
  • nginx ๐Ÿ”น
    • port 4999 open to world, forwarded to 4984
    • port 80 open to world, forwarded to 8000

By default, the provisioned machine is available on 192.168.10.22 from the host machine.

The auto-bucket-creation is currently disabled since it's not quite clear to me why I can initialize a cluster with Ansible, but then am still prompted to create a bucket when accessing the web interface the first time.

Also, you must restart sync_gateway after booting the machine since it seems to fail to wait for couchbase to be running. SSH into your VM and issue: sudo start sync_gateway

Configuration

Most important configuration variables, like admin username+password, live in couchbase-server.yml. The defaults provision a machine with 2GB of RAM, 1GB dedicated to the bucket.

Installation

  1. Install Vagrant (download) and Ansible (as pip install ansible)

  2. Install vagrant cachier plugin:

     $ vagrant plugin install vagrant-cachier
    
  3. Run:

     $ vagrant up
    

    If this fails at later steps (rebalancing or setting up buckets), you may be able to proceed with manual configuration.

  4. You can now configure Couchbase by going through the setup wizard on 192.168.10.22:8091

  5. The sync gateway is available on 192.168.10.22:4999

  6. The web app is available on 192.168.10.22

Vagrant Basics

  • vagrant up: Build, run and provision the VM
  • vagrant provision: Update VM (re-run the ansible playbook)
  • vagrant ssh: SSH into the VM
  • vagrant halt: Shut down gracefully
  • vagrant destroy: Destroy entire VM

Helpful Articles

eponyms-2-web-installer's People

Contributors

p2 avatar

Watchers

 avatar James Cloos avatar

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.