Posted On March 31, 2019

Docker DRUPAL Container

kimconnect 0 comments
blog.KimConnect.com >> Codes , Virtualization >> Docker DRUPAL Container

# Preseed drupal files with persitent storage
mkdir /var/www/html/kimconnect/{modules,profiles,sites,themes}
docker run –rm drupal tar -cC /var/www/html/sites . | tar -xC /var/www/html/kimconnect/sites

# Run drupal container
docker run –privileged -p 8080:80 –name kimconnect_drupal -d \
-v /var/www/html/kimconnect/modules:/var/www/html/modules \
-v /var/www/html/kimconnect/profiles:/var/www/html/profiles \
-v /var/www/html/kimconnect/sites:/var/www/html/sites \
-v /var/www/html/kimconnect/themes:/var/www/html/themes \
drupal

# check connections
docker exec -it kimconnect_drupal bash
yum -y update
yum -y install iputils-ping
ping {remote_host}

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

PowerShell: Get Windows OS Name

function getOsBuild($computername=$env:computername){ $build="" $pingable=test-connection $computername -Count 1 -Quiet if($pingable){ $psinfoIsAvailable=get-command psinfo -ea SilentlyContinue # Requires…

PowerShell: Download and Apply Windows Patch KB

The following snippet assumes that a Windows machine has access to download Microsoft patches directly…

VMWare CVE-2018-3646 Mitigation

Enable ESXi Side-Channel-Aware Scheduler Version 2 (SCAv2) using ESXCLI SSH to an ESXi host or open a…