Coder Social home page Coder Social logo

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

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.