| title | markmap | ||||
|---|---|---|---|---|---|
OKXE Application |
|
| FILESYSTEM_DRIVER=s3 | |
| QUEUE_CONNECTION=sqs | |
| AWS_DEFAULT_REGION=us-east-1 | |
| AWS_BUCKET=bucket1 | |
| AWS_ENDPOINT=http://localhost:4566/ | |
| AWS_USE_PATH_STYLE_ENDPOINT=true | |
| SQS_QUEUE=queue1 | |
| SQS_PREFIX=http://localhost:4566/000000000000/ |
| #!/bin/bash | |
| # set -x | |
| ############################################################################## | |
| ############################################################################## | |
| #### GITLAB CICD using SSM for running the command to EC2 instance | |
| #### Must be exist the some environments variable for running this script | |
| #### The environment variables must be exist: | |
| #### - AWS_REGION | |
| #### - DEV_INSTANCE_ID |
UPDATE (March 2020, thanks @ic): I don't know the exact AMI version but yum install docker now works on the latest Amazon Linux 2. The instructions below may still be relevant depending on the vintage AMI you are using.
Amazon changed the install in Linux 2. One no-longer using 'yum' See: https://aws.amazon.com/amazon-linux-2/release-notes/
sudo amazon-linux-extras install docker
sudo service docker start| # | |
| # Multi-Stage Docker build: | |
| # Laravel 5.8 + PHP73 + Postgres || MySQL | |
| # | |
| # @link https://laravel.com/docs/5.8 | |
| # @link https://hub.docker.com/_/php | |
| # @link https://hub.docker.com/_/mysql | |
| # @link https://hub.docker.com/_/postgres | |
| # |
| <?php | |
| /* | |
| |-------------------------------------------------------------------------- | |
| | Follow this instructions: | |
| |-------------------------------------------------------------------------- | |
| | | |
| | Laravel takes a dead simple approach to your application environments | |
| | so you can just specify a machine name for the host that matches a | |
| | given environment, then we will automatically detect it for you. |
This gist may help you to install supervisor Manually on AWS Beanstalk host. I was enable to install and configure referring supervisor docs. Here are the steps by which I was able to use supervisor on my project.
Note: I have performed this steps on Laravel project and my instance was Debian powered. You can change according to your requirement.
- Check python with easy_install is installed
- Install supervisor >
$ easy_install supervisor - Create directory for supervisor workers >
mkdir /etc/supervisor/conf.d/
-
Place the supervisord.conf under .ebextensions/supervisor/
-
Place the supervisor.config under .ebextensions/
-
Place the data_import_consumer.conf under .ebextensions/supervisor/
-
Create the following folder structure in your root project directory: .ebextensions/supervisor
-
Place the supervisor.config under .ebextensions/
-
Place the setup.sh under .ebextensions/supervisor/
-
Run "chmod +x .ebextensions/supervisor/setup.sh"
-
Place the supervisord.conf under .ebextensions/supervisor/