Global Prerequisites
- python 3
- vagrant
- vagrant plugin: vagrant-env
- Use `.env.local` file for configuration keys which overrides `.env`
Prerequisites
- VirtualBox
- Verify /vault directory exists and is writable
- Install the following packages:
- virtualbox
- fabric3
- docker-compose
Prerequisites
- AWS account
- AWS credentials: access key & access secret
- keypair
- subnet ID
- Security Group with inbound ports for SSH (22), HTTP (80), HTTPS (443), and 8200
- AWS S3 Bucket
On Linux, run the following commands
python -m venv ~/devopsloft_venv
source ~/devopsloft_venv/bin/active
pip install -r requirements.txt
Also make sure you have Docker installed on the system where you plan to run the application.
- In the root directory of the project run
docker build -t spinner .
- Run
docker run -t -d --name spincontainer -v /var/run/docker.sock:/var/run/docker.sock spinner
- Run
docker exec -it spincontainer bash
- Run
python spin-docker.py
Run the following to cleanup your environment
- docker exec -it spincontainer bash
- python spin-docker.py --action destroy
- docker rm -f spincontainer
- docker rmi spinner