Vagrant box for Python/Django development using Python 3.6.x. Also includes Postgres 9.5.x, Elasticsearch 5.4.x and Redis 3.0.x. Fully managed and provisioned using SaltStack.
- Download and install Vagrant
- Download and install VirtualBox
- Clone the repo
vagrant upto download and provision the Vagrant box. This step can take a little while so please hang tight.
vagrant sshto login once the box is up and running.
Based on Ubuntu 16.04 box from: https://atlas.hashicorp.com/bento/boxes/ubuntu-16.04
External Apt Repo/PPA Packages
- pip (latest)
Work Directory Structure
The main work directory for Django/Python development is
/opt/work and is structured as follows:
/opt/work: Main work directory
/opt/work/env: All virtualenvs can be created here
/opt/work/env/default: A default (blank) virtualenv with no packages installed so you can populate it with the package versions of your choice
/opt/work/src: All your project source code directories can be stored here
Switch to Work Directory
Switch to Virtual Environments Directory
Switch to Source Code Directory
Tail Elasticsearch Logs
Tail Postgres Logs
Tail Redis Logs
Default Virtual Environment (No Packages Installed)
activate-default to activate
deactivate to deactivate
The following ports are forwarded to the host operating system so these services can be interacted with directly using your preferred clients, GUI or otherwise:
- 5432: PostgreSQL
- 6739: Redis
- 8000: Django
- 9200: Elasticsearch
Synced Source Code Folder
The source code directory root is exported to the host operating system for your convenience.