Global Prerequisites
- python 3
- Use `.env.local` file for configuration keys which overrides `.env`
Prerequisites
- Verify /vault directory exists and is writable
- For Windoes 10 Home users
- Docker toolbox
- docker-cli (`choco install docker-cli` - using prompt)
- docker-compose (`choco install docker-compose` - using prompt)
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
docker-machine env default
- Run
eval $(docker-machine env default --shell linux)
- 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
winpty docker exec -it spincontainer bash
- Run
python spin-docker.py
- Check the ip for your lochalhost - on the host machine run
docker-machine ip default
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