Prerequisites
- Install Docker (version 19.03.xx or higher)
- Install Docker Compose (version 1.25.5 or higher)
- AWS account
- AWS Profile
- Create an envfile '.env.dev' from the example '.env.dev.example'
- Chrome - Allows requests to localhost over HTTPS even when an invalid certificate is presented. `chrome://flags/#allow-insecure-localhost`
Spin DEV environment
Execute the following commands:make up- Browse:
https://localhost:8443
Teardown DEV environment
Execute the following commands:./build/build.sh devsource .env.devdocker run --rm -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --action destroydocker image prune -afdocker volume prune -f
Prerequisites
- Dockerhub account
- AWS account
- AWS Profile
- Terraform
- Docker
- Docker Compose
- AWS ~/.aws or %UserProfile%\.aws folder
- subnet ID
- Security Group with inbound ports for SSH (22), HTTP (80), HTTPS (443), and 8200
- AWS S3 Bucket
- Create an envfile '.env.stage' from the example '.env.stage.example'
Spin STAGE environment
Execute the following:
./build/build.sh stagesource .env.stageterraform -chdir=deploy initterraform -chdir=deploy apply --var-file=aws-stage.tfvarsdocker run --rm -v $HOME/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT- Locate the EC2 instance Public DNS: AWS Consule->EC2->Insance->Public DNS (IPv4)
- Browse
Teardown STAGE environment
Execute the following:
./build/build.sh stagedocker run --rm -v ~/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT --action destroydocker image prune -af
Prerequisites
- Dockerhub account
- AWS account
- AWS Profile
- AWS ~/.aws or %UserProfile%\.aws folder
- keypair
- subnet ID
- Security Group with inbound ports for SSH (22), HTTP (80), HTTPS (443), and 8200
- AWS S3 Bucket
- Elastic IP Address (EIP)
- Create an envfile '.env.prod' from the example '.env.prod.example'
Teardown PROD environment
Execute the following:
./build/build.sh prodsource .env.proddocker run --rm -v ~/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT --action destroydocker image prune -af
Spin PROD environment
Execute the following:
./build/build.sh prodterraform -chdir=deploy initterraform apply -chdir=deploy --var-file=aws-prod.tfvarsdocker run --rm -v $HOME/.aws:/root/.aws -v /var/run/docker.sock:/var/run/docker.sock ${NAMESPACE}/spinner:latest ./spin-docker.py --environment $ENVIRONMENT- Browse www.devopsloft.org
