Giter Site home page Giter Site logo

cabot-docker's Introduction

cabot-docker

Docker Images to build full cabot environment.

Still Not Ready for Production

Overview

As Cabot contains several things inside (django, celery, redis, database, etc) and docker using assumes one image for one thing we need several images for Cabot.

I use maestro-ng to manage Docker containers.

Let's try

  • Install maestro-ng on host from which you want to manage dockers images (commonly it's your localhost).
  • Install and configure Docker on host where Docker containers will run (commonly it's ec2/Digital Ocean instances, virtual box/vmware vm's, etc).
  • Update maestro.yml according to your environment
  • Run python -m maestro -f maestro.yml start

Command python -m maestro -f maestro.yml status -F should return something like:

  #  INSTANCE             SERVICE         SHIP                 CONTAINER       STATUS
  1. postgre_1            postgresql      vm1                  517ef1e         up
     >>  5432/tcp:db
  2. redis_1              redis           vm1                  a5e10da         up
     >>  6379/tcp:broker
  3. cabot_web_1          cabot_web       vm1                  63b9078         up
     >>  8000/tcp:web
     >>  5000/tcp:backend

Cabot web UI should be available at http://_host_with_docker_:8000/. Default username/password: docker/docker. You can add new users using Django admin interface.

Docker configuration

By default maestro expected running Docker daemon in 4243 port, so you need to configure it:

  • Add DOCKER_OPTS="-H tcp://0.0.0.0:4243" to /etc/default/docker
  • Restart docker daemon: restart docker

Maestro configuration

At first make sure that you are have read maestro-ng docs.

To just run Cabot you need:

  • Change vm1: {ip: localhost} in maestro.yml to host with docker (ip/hostname).

But to complete the work you also need to rewrite default environment variables(eg GRAPHITE_USER/GRAPHITE_PASS, SES_HOST/SES_USER/SES_PASS and so on).

By default cabot image pulled from Docker Index, but you still can build image manual and say maestro use it, just change image: shoonoise/cabot-docker in cabot web section to your image's name. The same way to change all other images (postgresql, redis, etc).

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.