This will create the base environment which is required to run moodle.
codebase root
data root
docker run -it /bin/bash --hostname d01 --name d01 -d -p 8081:80 --volume=:/var/www/html/app --volume=:/var/www/data lms/d01
docker run -it /bin/bash --hostname d01 --name d01 -d -p 8081:80 --volume=:/var/www/html/app --volume=:/var/www/data lms/d01
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
import boto3 | |
import botocore | |
import time | |
import json | |
from pprint import pprint | |
from botocore.exceptions import ClientError | |
from boto3.dynamodb.conditions import Key |
import boto3 | |
import json | |
import os | |
import logging | |
region = '' | |
region = os.environ['region']; | |
if not region : | |
logger.error('Missing region'); | |
raise |
import boto3 | |
import json | |
import os | |
import logging | |
region = '' | |
region = os.environ['region']; | |
if not region : | |
logger.error('Missing region'); | |
raise |
server { | |
listen 443 ssl; | |
ssl_protocols TLSv1 TLSv1.1 TLSv1.2; | |
// ssl cert | |
ssl_certificate /etc/ssl/certs/nginx/client_ssl.chained.crt; | |
ssl_certificate_key /etc/ssl/certs/nginx/client_ssl.key; | |
server_name client.com; // servername |
#!/bin/sh | |
df -Ph | grep -vE '^Filesystem|tmpfs|cdrom' | awk '{ print $5,$1 }' | while read output; | |
do | |
max=40% | |
echo $output | |
used=$(echo $output | awk '{print $1}') | |
partition=$(echo $output | awk '{print $2}') | |
if [ ${used%?} -ge ${max%?} ]; then | |
echo "The partition \"$partition\" on $(hostname) has used $used at $(date)" | |
fi |