Git Product home page Git Product logo

basebox's Introduction

Archived and unmaintained

This is an old repository that is no longer used or maintained. We advice to no longer use this repository.

Original README can be found below:

Enrise Basebox

Documentation Travis branch

This box serves as a standardized version of Vagrant box and could be used to provide a standardized base for new projects.

Provisioning is done using Saltstack, which uses various default Saltstack-formulas and custom Enrise formulas to provide featurepacks.

This box provides a default web-stack (Nginx + PHP + MariaDB) using the enrise/vhosting-formula formula. The box should be built on a Debian or Ubuntu VM.

Further requirements (e.g. Node, Postgres, Composer etc) can be added by the user of this box.

For more information and installation details check the documentation.

basebox's People

Contributors

alexander2701 avatar blackshadev avatar bobbybouwmann avatar existenznl avatar jeroen-g avatar jvandijk avatar nstapelbroek avatar renatomefi avatar rskuipers avatar rtuin avatar steefmin avatar syphernl avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

basebox's Issues

Replace default stack

Since we are not actively using (or deploying) Zend Server anymore ourselves, we might want to consider changing the default stack for the Basebox over to vanilla+nginx rather than zendserver+nginx. Now, many projects need to override this again since vanilla is preferred.

Additionally, we'll probably want to ship the basebox with PHP7 by default as well?

Error when setting up box with php7 and vanilla nginx

When I have this setup:

pillars/default/phpfpm.sls

phpfpm:
  php_versions:
    - '7.0'

pillars/defaults/vhosting.sls

vhosting:
  server:
    webserver: nginx
    webserver_edition: vanilla

I get the following error:

The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

salt-call state.highstate --retcode-passthrough  --log-level=info --force-color

Stdout from the command:

local:
    Data failed to compile:
----------
    Cannot extend ID 'php5-fpm' in 'base:vhosting.base'. It is not part of the high state.
This is likely due to a missing include statement or an incorrectly typed ID.
Ensure that a state with an ID of 'php5-fpm' is available
in environment 'base' and to SLS 'vhosting.base'

Any ideas? Let me know if I need to supply more information.
Note: This is pretty much all I have, the rest is pretty standard.

Symlinking my.cnf to debian sys-maint file

In order to aid the ease of development we'll probably want to add the following state to the basebox in case the box is based on Ubuntu/Debian:

/home/vagrant/.my.cnf:
  file.symlink:
    - source: /etc/mysql/debian.cnf

This allows people to use mysql commands on the commandline without needing to authenticate.

Add vhost symlink to project by default

Generally, projects using the Basebox seem to be overriding the file state to create the web-folder and replacing it with a symlink to /vagrant like so:

# Overwrite the docroot symlink of the app
extend:
  /srv/http/project/hosts/example.com:
    file.symlink:
      - target: /vagrant
      - user: vagrant
      - group: vagrant
      - require:
        - file: /srv/http/project/hosts
      - watch_in:
        - service: nginx

We'll probably want to add something like this to the basebox by default?

Nginx doesn't start on big domain names

nginx: [emerg] could not build the server_names_hash, you should increase server_names_hash_bucket_size: 32

Sorry for putting it here, I can open a jira ticket later it was just for fast forwarding

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.