This is a recipe for building a Docker container with Drupal 7 and Brightcove module 7.x-6.x in a LAMP environment (Debian GNU/Linux, Apache, MySQL).
- Before building, make sure you have Docker Engine installed and running.
- For uploading to work, make sure your Drupal site is accessible from the internet (public IP address or port-forward) - because Brightcove will need to fetch all uploaded video/image/caption files from your Drupal site.
git clone https://github.com/janmashat/docker-drupal7-brightcove6.git
cd docker-drupal7-brightcove6
docker build -t drupal7-brightcove6 .
docker run -it --name drupal7-brightcove6 -p 80:80 -p 9001:9001 drupal7-brightcove6
If you would like to store the docroot on the host, use this docker run
command instead:
docker run -it --name drupal7-brightcove6 -p 80:80 -p 9001:9001 -v path_on_the_host:/var/www drupal7-brightcove6
- The session will start within a GNU screen, so you can
ctrl-a c
to create a new screen.
- The site will be accessible through your Docker machine's IP (usually http://localhost/ or if Docker Machine is used then it can be checked with
docker-machine ip
). - Username/password are admin/admin by default, but can be changed in
start.sh
- before runningdocker build
.