GithubHelp home page GithubHelp logo

iamdey / caliopen-vagrant Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 1.0 184 KB

the Vagrantfile of caliopen fullstack box - https://www.caliopen.org/

Home Page: https://vagrantcloud.com/dey/caliopen_full-ubuntu-14.04

Ruby 49.82% Shell 50.18%

caliopen-vagrant's Introduction

A vagrant box to dev caliopen

This is the Vagrantfile for caliopen fullstack box

The main goal of this repository is to build a new release of caliopen box.

Package a new caliopen box

Update the version of the box :

#includes/Vagrantfile
config.vm.box_version = "{semver}"
#Makefile
VERSION="{semver}"

Then launch the following commands

vagrant destroy
make configure
make package

this will :

  1. eventually destroy previous box
  2. clone calipopen-ansible repository and prepare config files
  3. up and provision a box with ansible
  4. package it

Simple provision a new fresh box

make configure
vagrant destroy
vagrant up

Tips

Rewrite nginx cert

vagrant up
vagrant ssh -c "sudo rm /etc/nginx/certs/caliopen.crt"
vagrant ssh -c "sudo rm /etc/nginx/certs/caliopen.key"
vagrant ssh -c "sudo ansible-playbook /vagrant/caliopen-ansible/single.yaml --connection=local --tags=cert"

Ansible in VM

Since ansible is installed in VM, it can be launched on VM itself

#ansible_inventory
default ansible_ssh_host=127.0.0.1 ansible_ssh_port=22

[backends]
default

[webservers]
default
sudo ansible-playbook /vagrant/caliopen-ansible/single.yaml --connection=local -i ansible_inventory

TODO

provision : install ansible from source

then run:

source path-to-ansible/hacking/env-setup

use caliopen user in vagrantfile use to package box

config.vm.synced_folder "./", "/vagrant", owner: "caliopen", group: "caliopen"

make sure pserve is started optionnaly in target box

caliopen-vagrant's People

Contributors

iamdey avatar

Watchers

 avatar  avatar

Forkers

angezanetti

caliopen-vagrant's Issues

target shell provisionner failed

damned again

==> default: Mounting shared folders...
    default: /vagrant => ....Workspace/RetD/cal_test
==> default: Running provisioner: shell...
    default: Running: /tmp/vagrant-shell20141007-8812-7oc8ud.sh
==> default: stdin: is not a tty
==> default: Traceback (most recent call last):
==> default:   File "/var/projects/caliopen/env/bin/caliopen", line 9, in <module>
==> default:     
==> default: load_entry_point('caliopen.web==0.0.1', 'console_scripts', 'caliopen')()
==> default:   File "/var/projects/caliopen/code/caliopen.web/caliopen/web/bin/cli.py", line 96, in main
==> default:     
==> default: func(**kwargs)
==> default:   File "/var/projects/caliopen/code/caliopen.web/caliopen/web/bin/setup_storage.py", line 19, in setup_storage
==> default:     
==> default: registry.get_component(IStorage).initialize_db(settings)
==> default:   File "/var/projects/caliopen/code/caliopen.storage/caliopen/storage/data/cassandra.py", line 36, in initialize_db
==> default:     
==> default: sync_table(User)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/management.py", line 79, in sync_table
==> default:     create_keyspace(ks_name)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/management.py", line 32, in create_keyspace
==> default:     _, keyspaces = con.execute("""SELECT keyspace_name FROM system.schema_keyspaces""", {}, ONE)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/connection.py", line 232, in execute
==> default:     raise CQLEngineException("Could not execute query against the cluster")
==> default: cqlengine.exceptions.CQLEngineException: Could not execute query against the cluster
==> default: Traceback (most recent call last):
==> default:   File "/var/projects/caliopen/env/bin/caliopen", line 9, in <module>
==> default:     
==> default: load_entry_point('caliopen.web==0.0.1', 'console_scripts', 'caliopen')()
==> default:   File "/var/projects/caliopen/code/caliopen.web/caliopen/web/bin/cli.py", line 96, in main
==> default:     
==> default: func(**kwargs)
==> default:   File "/var/projects/caliopen/code/caliopen.web/caliopen/web/bin/create_user.py", line 20, in create_user
==> default:     
==> default: first_name=first_name, last_name=last_name)
==> default:   File "/var/projects/caliopen/code/caliopen.core/caliopen/core/user.py", line 45, in create
==> default:     
==> default: user = super(User, cls).create(**kwargs)
==> default:   File "/var/projects/caliopen/code/caliopen.core/caliopen/core/base.py", line 24, in create
==> default:     
==> default: obj = cls._model_class.create(**kwargs)
==> default:   File "/var/projects/caliopen/code/caliopen.storage/caliopen/storage/data/cassandra.py", line 81, in create
==> default:     return super(BaseModel, cls).create(**kwargs)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/models.py", line 475, in create
==> default:     
==> default: return cls.objects.create(**kwargs)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/query.py", line 524, in create
==> default:     
==> default: timestamp(self._timestamp).save()
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/models.py", line 503, in save
==> default:     
==> default: consistency=self.__consistency__).save()
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/query.py", line 851, in save
==> default:     
==> default: self._execute(insert)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/query.py", line 731, in _execute
==> default:     
==> default: return execute(q, consistency_level=self._consistency)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/connection.py", line 249, in execute
==> default:     
==> default: return connection_pool.execute(query, params, consistency_level)
==> default:   File "/var/projects/caliopen/env/local/lib/python2.7/site-packages/cqlengine/connection.py", line 232, in execute
==> default:     raise CQLEngineException("Could not execute query against the cluster")
==> default: cqlengine.exceptions.CQLEngineException: Could not execute query against the cluster

Need more RAM by default!

Hey,
I tested the vagrant box, the OS boot i can get the Homepage of Caliopen. But i can't login and can't create some account.
Cassandra need more RAM to works.

I report the issue to chamal, he said to put it to 2048Mo with
vb.customize ["modifyvm", :id, "--memory", "2048"]

It works better with it :)

Issue with connection

There is some mess between localhost and 192.168.10.10.

Cassandra need to set the 192.168.10.10 in /var/projects/caliopen/code/caliopen.webcaliopen.yaml to works.

There is also some issue with index_server

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.