Presented by Kevin Crawley
twitter: @notsureifkevin
linkedin: linkedin.com/in/kcmastrpc
email: kevin@nashville.hotchicken.org
If you'd like to follow along visit https://github.com/kcrawley/nashphp-awseb
Docker + Elastic Beanstalk!?
Setup - Application Info
Setup - Create New Environment
Setup - Environment Type
Setup - App Version
Setup - Environment Info
Setup - Resources
Setup - Config Details
Setup - Tags
Setup - Permissions
Instance Configuration
Deployment Configuration
Load Balancer Configuration
Managed Updates
{
"name": "php",
"image": "kcmastrpc/nashphp-php",
"environment": [
{
"name": "APP_ENV",
"value": "production"
},
{
"name": "APP_DEBUG",
"value": "false"
},
{
"name": "APP_URL",
"value": "http://nashphp.hotchicken.org"
}
],
"mountPoints": [
{
"sourceVolume": "app",
"containerPath": "/var/www/app"
},
{
"sourceVolume": "php-fpm-conf",
"containerPath": "/usr/local/etc/php-fpm.d"
}
]nashphp-awseb/dockerrun.aws.json
commands:
create_post_dir:
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
ignoreErrors: true
files:
"/opt/elasticbeanstalk/hooks/appdeploy/post/composer_install.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
docker run --rm -v /var/app/current/nashphp:/app composer/composer install --no-dev
chmod -R 777 /var/app/current/nashphp
docker run -v /var/app/current/nashphp:/app php:7-cli /app/artisan key:generatenashphp-awseb/deploy/.ebextensions/laravelcomposer.config