A NodeJS web server for uploading and delivering vagrant boxes.
- Clone this repository
- Create a
config/development.json
orconfig/production.json
file and overrideupload.secret
with your own secret (and eventuallyserver.port
) - Run
npm install
- Start the server with
node index.js
You will need the following software requirements to be able to run this framework:
- NodeJS - 10+
To upload your own boxes you need to make a POST request to http://host[:port]/{yourCatalogName}/{provider}-{version}.box
(e.g: http://vagrant.repo.com/hydra/virtualbox-2019.09.09.box
).
You also need to specify the upload.secret
as the password for the basic-auth header (Authorization: Basic {base64(someUser:SECRET)}).
To use your box with Vagrant you only need to set config.vm.box_url
in your Vagrantfile
to your catalog URL (e.g.: http://host[:port]/{yourCatalogName}/manifest.json
).
- Gabriel Barbieru - [email protected]
This project is licensed under the MIT License