Git Product home page Git Product logo

vagrant-boxes's Introduction

vagrant-boxes

This package aims to provide a standardized way of building preconfigured boxes which can be packaged to be used in projects.

The entire config is for a standard Symfony/PHP development environment including MySQL, MongoDB, NGINX and other needed tools. Since the configuration is documented within the ansible scripts it is easy to setup similar production nodes.

The official supported boxes are provided through https://atlas.hashicorp.com. At the moment peterrehm/focal-php8 (based on bento/ubuntu-20.04) is supported.

If you want to build your own boxes it is as easy as

$ cd ~
$ git clone https://github.com/peterrehm/vagrant-boxes.git
$ cd vagrant-boxes
$ vagrant up
$ vagrant package --base focal-php8.vb

You can then upload ~/vagrant-boxes/package.box and upload e.g. to Atlas.

# add a new version of the box
curl https://atlas.hashicorp.com/api/v1/box/peterrehm/focal-php8/versions \
        -X POST \
        -d version[version]='0.1.0' \
        -d access_token={token}

# add a new provider
curl https://atlas.hashicorp.com/api/v1/box/peterrehm/focal-php8/version/0.1.0/providers \
-X POST \
-d provider[name]='virtualbox' \
-d access_token={token}

# 2-step upload process
curl https://atlas.hashicorp.com/api/v1/box/peterrehm/focal-php8/version/0.1.0/provider/virtualbox/upload?access_token={token}
curl -X PUT --upload-file package.box https://binstore.hashicorp.com/{response token of previous command}

# release the version
curl https://atlas.hashicorp.com/api/v1/box/peterrehm/focal-php8/version/0.1.0/release \
        -X PUT \
        -d access_token={token}

vagrant-boxes's People

Contributors

janunger avatar peterrehm avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

sgnann

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.