Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/igormukhingmailcom/test
Repo with single index.php file to test ansible environments via Vagrant
https://github.com/igormukhingmailcom/test
Last synced: 12 days ago
JSON representation
Repo with single index.php file to test ansible environments via Vagrant
- Host: GitHub
- URL: https://github.com/igormukhingmailcom/test
- Owner: igormukhingmailcom
- Created: 2015-10-10T10:12:03.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-03T13:41:11.000Z (about 9 years ago)
- Last Synced: 2024-10-11T03:23:39.710Z (about 1 month ago)
- Language: Shell
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Test app
## Run app on AWS EB
Application configured for **automatic deployment** to `staging` environment at AWS EB thanks to [Shippable](https://shippable.com).
Shippable run tests, build docker image, push image to `hub.docker.com` and deploy image to EB `staging` environment only if `phpunit` tests passed.
Once QA guys confirm that all OK on `staging` server, you can deploy it to `production` EB environment.
### Deploying to production
#### Manually
Go to `AWS > EB > Application > Application Versions` and manually deploy tested verion to EB `production` environment.
#### Via EB cli
1. Install AWS CLI on Mac OSX:
```
sudo easy_install pip
pip --version # Check pip version
sudo pip install awscli
aws --version # Check aws cli version
```2. Configure AWS CLI:
Type `aws configure` and put your AWS credentials and default region.
Currently we're using `us-west-2` region.
3. Run next command to deploy given to EB `production` environment:
```
bin/deploy.sh
```For example:
```
bin/deploy.sh 23
```## Run app on Docker at Mac OSX
### Prerequisites
Lets assume that:
- We named our virtual machine as `default` (`docker-machine create --driver=virtualbox default`).
- We added next line `eval "$(docker-machine env default)"` to `~/.bashrc`, so docker can work properly on every terminal window (run `source ~/.bashrc` on current window to apply changes).### Running on localhost
```
docker-compose up
ssh -L 8080:localhost:8080 -i ~/.docker/machine/machines/default/id_rsa docker@$(docker-machine ip default)
open http://localhost:8080
```or
```
docker-compose up
open http://$(docker-machine ip default 2>/dev/null):8080
```## To read
- http://docs.shippable.com/autodeploy-to-ebs/