Code Monkey home page Code Monkey logo

cozy-controller's Introduction

Cozy controller

Pull the image

$ docker pull spiroid/cozy-controller

Build it yourself

$ git clone [email protected]:spiroid/cozy-controller.git
$ cd cozy-controller
$ doker build -t spiroid/cozy-controller .

Run:

With docker-compose

A sample docker-compose.yml configuration file:

configuration:
    image: spiroid/cozy-conf

couchdata:
    image: spiroid/cozy-couchdb-data

couchdb:
    image: spiroid/cozy-couchdb
    restart: always
    volumes_from:
        - couchdata
        - configuration

dataindexer:
    image: spiroid/cozy-data-indexer
    hostname: dataindexer
    restart: always
    volumes_from:
        - configuration

controller:
    image: spiroid/cozy-controller
    restart: always
    links:
        - couchdb
        - dataindexer
    volumes_from:
        - configuration
        - dataindexer
    ports:
        - "127.0.0.1:9002:9002"
        - "127.0.0.1:9104:9104"

You can also have log files written in a specific directory on your host file system.
In this case, replace the couchdb and controller section of the above configuration file by the following:

couchdb:
    image: spiroid/cozy-couchdb
    restart: always
    volumes_from:
        - couchdata
        - configuration
    volumes:
        - ./log/couchdb:/var/log/couchdb

controller:
    image: spiroid/cozy-controller
    restart: always
    links:
        - couchdb
        - dataindexer
    volumes_from:
        - configuration
        - dataindexer
    volumes:
        - ./log/cozy:/var/log/cozy
    ports:
        - "127.0.0.1:9002:9002"
        - "127.0.0.1:9104:9104"

For this to work, you have to create the logs directories:

mkdir -p log/couchdb log/cozy

and make sure they have write permissions:

chmod -R 777 log

Init the cozy stack

When the container is running and your cozy cloud instance is not yet initialized, there is an init script to launch. Given that your container name is cozy-container :

  docker exec cozy-container cozy-init.sh

This installs the Home, Data-System and proxy applications.

Update nodejs 0.10 to 4.5

To complete your update you need to reinstall your stack. Given that your container name is cozy-controller :

docker exec -ti cozy-controller cozy-monitor install-cozy-stack
docker exec -ti cozy-controller cozy-monitor reinstall-missing-app

Related images

This configuration image was created to work with the following images:

Inspirations

cozy-controller's People

Contributors

obigroup avatar pierreozoux avatar spiroid avatar woshilapin avatar

Watchers

 avatar  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.