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
./spin.py up [dev|stage]
vagrant ssh [dev|stage]
./spin.py destroy [dev|stage]
- Do not use vagrant directly to spin and environment. It might work, but most likely it won't ============================================================================================== Steps for Docker: Setting the App
-
install docker or docker for windows
-
Run in the directory where docker file is located: "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"
-
Now you can exit the container and you'll see the apps containers created on host and running
Destroying the App and cleaning up the spin container-
- docker exec -it spincontainer bash
- python spin-docker.py --action destroy
- docker rm -f spincontainer
- docker rmi spinner