Coder Social home page Coder Social logo

drupal-docker's Introduction

Dockerfiles for drupal

This repository contains dockerfiles for various php versions, together with apache, ssh and tools useful for debugging. They are not meant to be used for production hosting.

The docker container comes with 2 services, apache on 80 and ssh on 22. You will need to map your local installation to /var/www.

Logins / Passwords

ssh    : root:root

The container contains

  • apache 2
  • php with some extensions
  • composer
  • ssh
  • git
  • imagemagick

Available php versions:

  • 5.6 (not maintained anymore)
  • 7.1 (not maintained anymore)
  • 7.2 (not maintained anymore)
  • 7.3 (not maintained anymore)
  • 7.4
  • 8.0
  • 8.1
  • 8.2

Building the docker container:

cd php
docker build -t factorial-io/drupal-docker:php-<version>  -f Dockerfile.php-<version> .
cd ../php-xdebug
docker build \
  --build-arg BASE_IMAGE_TAG=php-<version> \
  -t factorial-io/drupal-docker:php-<version>-xdebug  \
  -f Dockerfile.php-<version> \
  .
cd ../php-wkhtmltopdf
docker build \
  --build-arg BASE_IMAGE_TAG=php-<version> \
  -t factorial-io/drupal-docker:php-<version>-wkhtmltopdf \
  -f Dockerfile.php-<version> \
  .

Using the build script:

# Build all images locally for the local native docker.
sh build.sh native
# Build all images using a registered muti-arch builder. Images will be pushed to the docker registry. (Log in first!)
sh build.sh both
# Build only php-7.4 and tag the images with the suffix test
sh build.sh native 74 test
# Build only php-7.4 and php-8.0 and tag the images without a suffix
sh build.sh native "74 80"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.