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: Check Windows Scheduled Tasks To Correlate Object Creation Time of a Zip File

$file='c:\temp\backup.zip' $computername='SERVER008' $minutesVariance=15 checkScheduledTaskMatchingFile $file $computername $minutesVariance function checkScheduledTaskMatchingFile{ param( $file='c:\temp\PROD.zip', $computername=$env:computername, $minutesVariance=15 ) if($computername…

PowerShell: Check IP Conflicts of Computers in Active Directory

We have ran into issues where a group of virtual machines living on a DHCP…

JavaScript: Build a Tic Tac Toe Game (without AI)

Demo: https://blog.kimconnect.com/wp-content/projects/ticTacToeGame.html CSS Code: @import url('https://fonts.googleapis.com/css?family=Merienda');body{ font-family: 'Merienda', cursive; font-weight: bold;}#gameBoard { width: 396px; //…