Giter VIP home page Giter VIP logo

cihub's Introduction

cihub.technology

Installation

Dependencies that should be on your computer (host):

Usage

Up

You able to automatically re-install web application when machine is in provisioning. Use export REINSTALL=true to do this.

vagrant up
vagrant ssh

Re-install

Re-install web application (should be executed inside of VM).

cibox reinstall

Provision

Provision or re-provision VM using tags:

ANSIBLE_ARGS="--tags=php-stack" vagrant provision

Also you can do provisioning with reinstalling:

REINSTALL=true vagrant provision

Run tests

cd /var/www/tests/behat/
../../bin/behat

Note: If something happened and tests is not run, try the following steps:

Check a Selenium processes on guest and host machines:

ps aux | grep selenium

If you'll see nothing, then boldly re-provision your VM:

ANSIBLE_ARGS="--tags=selenium" vagrant provision

Tools

  • Drush
  • Adminer
  • Composer
  • XDebug
  • XHProf
  • Selenium 2
  • Sniffers, lints and hints for PHP, CSS, JS

PHP Profiler XHProf

It is installed by default, but to use it as Devel module integration use:

drush en devel -y
drush vset devel_xhprof_enabled 1
drush vset devel_xhprof_directory '/usr/share/php'
drush vset devel_xhprof_url '/xhprof_html/index.php'
ln -s /usr/share/php/xhprof_html xhprof_html

After vset devel_xhprof_enabled it could return an error about Class 'XHProfRuns_Default' not found - ignore it.

Linux Containers

When your system enpowered with linux containers(lxc), you can speedup a lot of things by using them and getting rid of virtualization. For approaching lxc, please install vagrant plugin.

vagrant plugin install vagrant-lxc
apt-get install redir lxc cgroup-bin

Also you may need to apply this patch: https://github.com/fgrehm/vagrant-lxc/pull/354.

When your system is enpowered by apparmor, you should enable nfs mounts for your host machine. Do that by editing /etc/apparmor.d/lxc/lxc-default file with one line

profile lxc-container-default flags=(attach_disconnected,mediate_deleted) {
  ...
    mount options=(rw, bind, ro),
  ...

and reload apparmor service:

sudo /etc/init.d/apparmor reload

and run the box by command:

VAGRANT_CI=lxc vagrant up

Windows Containers

  • Install Cygwin with following packages:
    • curl
    • python (2.7.x)
    • python-crypto
    • python-openssl
    • python-setuptools
    • git (1.7.x)
    • vim
    • openssh
    • openssl
    • openssl-devel
  • Run Cygwin as administrator.
  • Use default flow to up Vagrant.

cihub's People

Contributors

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