Skip to content

Provide custom vagrant boxes to speedup setup of Symfony/PHP dev environments

Notifications You must be signed in to change notification settings

peterrehm/vagrant-boxes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}

About

Provide custom vagrant boxes to speedup setup of Symfony/PHP dev environments

Resources

Stars

Watchers

Forks

Packages

No packages published