Skip to content

AI-BlackB0x/devopsloft

 
 

Repository files navigation

Build Status

drawing

Contributing

Spinning [dev|stage] environment

Global Prerequisites
  • python 3
  • vagrant
  • vagrant plugin: vagrant-env
  • Use `.env.local` file for configuration keys which overrides `.env`

DEV environment

Prerequisites
  • VirtualBox
  • Verify /vault directory exists and is writable
  • Install the following packages:
  • virtualbox
  • fabric3
  • docker-compose

STAGE environment

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
Installation Requirements

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.

Run the app
  1. In the root directory of the project run docker build -t spinner .
  2. Run docker run -t -d --name spincontainer -v /var/run/docker.sock:/var/run/docker.sock spinner
  3. Run docker exec -it spincontainer bash
  4. Run python spin-docker.py
Cleanup Environment

Run the following to cleanup your environment

  1. docker exec -it spincontainer bash
  2. python spin-docker.py --action destroy
  3. docker rm -f spincontainer
  4. docker rmi spinner

About

DevOps Loft community app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 62.3%
  • HTML 22.2%
  • Shell 9.2%
  • Dockerfile 2.5%
  • CSS 2.3%
  • Batchfile 1.0%
  • TSQL 0.5%