pecl install xdebug-3.1.6
docker-php-ext-enable xdebug
[xdebug]
xdebug.mode=develop,debug
xdebug.client_port = 9095 ## any port number which is exposed
xdebug.discover_client_host = 1
xdebug.idekey = VSCODE
# for localhost runing the lms /mysql / phpmyadmin | |
# lms is exposed at 80 url http://localhost | |
# phpmyadmin is exposed at 8009 http://localhost:8009 | |
# login in phpyadmin | |
# host : mysql | |
# username : root | |
# password : root | |
# code can be directly edited without build | |
# commands | |
# to run |
FROM ubuntu:20.04 | |
LABEL copyright=devck | |
LABEL by=developerck@gmail.com | |
LABEL env=lms-moodle4 | |
ENV TZ=UTC | |
## ubunutu env setup ## | |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && apt update -y && apt install -y \ | |
sudo \ | |
apache2 \ | |
wget \ |
apt update
apt-get install software-properties-common
add-apt-repository ppa:ondrej/php
apt update
sudo apt install apache2 mysql-client mariadb-server php8.2 php8.2-fpm
sudo apt install graphviz aspell ghostscript clamav php8.2-pspell php8.2-curl php8.2-gd php8.2-intl php8.2-mysql php8.2-xml php8.2-xmlrpc php8.2-ldap php8.2-zip php8.2-soap php8.2-mbstring
aws configure set aws_access_key_id ""
aws configure set aws_secret_access_key ""
eval $(aws ecr get-login --no-include-email --region <region | us-east-1> | sed 's;https://;;g')
docker pull
you must have following pre-requsite
instance_id = '' # hard-code for example
document_name = '<>' # run command document name
command_param = {'commands': ['sh /root/shellscript.sh '+ shellparam]}, # shell script path
s3_bucket = 'mybucket' # to store the logs
#!/usr/local/bin/python3 | |
import re | |
from collections import OrderedDict | |
from pprint import pprint | |
import boto3 | |
ec2 = None | |
# define your region and run in cloud shell |