Add a Vagrantfile with a custom box to the project. #479
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
fixes #455
First implementation uses a custom built Arch Linux box hosted on Atlas.
All relevant adjustments to the box creation are in scripts/bindlestiff.sh. Basically what is does is switch of the too small tmpfs, installs pyenv, compiles lots of Python versions and makes sure that the user can just type tox directly after logging in.
A first
vagrant up arch
looks for the box locally and downloads and imports it if necessary. This looks something like this:A
vagrant ssh arch
will propell the user into the machine and they can calltox
right away:Note the "Removing all *.pyc files in mapped project ..." this is something I added to the boxes
.bashrc
and I am not 100% sure if this is the right way to go about it. This prevents pytest from borking due to mismatches in the pyc files. It would be nice if pytest would be able to deal that directly. If anyone has an idea to handle that better, please let me know.I tested it manually from my Host (also Arch Linux). If macOS and Windows users have trouble, I will have to look into this, but from my experience, the whole vagrant workflow is pretty solid nowadays.
The best way to test this is to start using it.
Docs are in the Vagrantfile itself for now. If this turns out useful, I will provide "proper" docs as part of #475.
Add yourself to
CONTRIBUTORS
;make a descriptive Pull Request text (it will be used for changelog)
Added this to the changelog myself.