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: Use Selenium Drivers to Automate Logins

Set Variables: $username='testrobot' $password='password' $url='https://blog.kimconnect.com' # Version 0.0.2 - return true or false, while keeping…

PowerShell: Automating Microsoft Failover Cluster Maintenance – FileServer, SQL AlwaysOn, Hyper-V Guest VMs, Disks Operations

##################################################################################################### # MsClusterMaintenance_v0.0.2.ps1 # Author: KimConnect.com # License: GPLv3 # Description: this program automates the…

PowerShell: Replace 1 Line in a Text File Matching Certain Values

# replaceLine -textContent $fileContent -match $url -updateLineContent $record function replaceLine($textContent,$match,$updateLineContent){ $line = $textContent | Select-String…