Развертывание Amazon Linux2 AMI
`
packages:
yum:
python3-devel: []
mariadb-devel: []
mesa-libGL: []
gcc: []
libcurl-devel: []
amazon-linux-extras: []
option_settings:
aws:elasticbeanstalk:application:environment:
DJANGO_SETTINGS_MODULE: eagle_eye.settings
PYTHONPATH: "/var/app/current:$PYTHONPATH"
aws:elasticbeanstalk:container:python:
WSGIPath: eagle_eye.wsgi:application
container_commands:
01_make_migrations:
command: "source /var/app/venv/*/bin/activate && python3 manage.py makemigrations --noinput"
leader_only: true
02_migrate:
command: "source /var/app/venv/*/bin/activate && python3 manage.py migrate --noinput"
leader_only: true
03_createsuperuser:
command: "source /var/app/venv/*/bin/activate && python3 manage.py create_user"
leader_only: true
04_static:
command: "source /var/app/venv/*/bin/activate && python3 manage.py collectstatic --noinput"
leader_only: true
05_redis:
command: "sudo amazon-linux-extras enable redis6 && sudo yum -y install redis"
leader_only: true
06_metadata:
command: "sudo yum clean metadata"
leader_only: true
07_celery:
command: "sudo systemctl start redis"
leader_only: true
`
<<<Как установить пакет redis через файл .ebextension.В файле .ebextension я указываю amazon-linux-extras: [].Кто-нибудь может мне помочь.