Download the PHP package bradjonesllc/docker-drupal without Composer

On this page you can find all versions of the php package bradjonesllc/docker-drupal. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package docker-drupal

ARCHIVED! Don't use this.

It was nice while it lasted but Composer and Docker have come a long way, and this repository is a vestige of a bygone era. Things are simpler now - use drupal/recommended-project et. al.

Docker Scaffolding for Drupal 8

Docker Automated buil Packagist

Purpose

This repository provides two artifacts:

  1. A Composer package intended for one-time, initial scaffolding of a new Drupal 8 project, which would then be self-contained. It uses a composer.json file derived from drupal-project to pull in Drupal core, and provides additional helpful Docker-focused functionality. The drupal-project composer.json file and helper scripts can then be used to manage core updates, contrib modules and more. Drupal 8, with its robust exportable configuration file management and Composer integration, is uniquely suited for containerized development.
  2. A Docker image tailored for use with the enclosed project scaffolding. Its behavior is largely dictated by the files in config/docker/web/base, however they may be overridden on a project-specific basis by copying over the files at the appropriate destination. Use this image at your own risk, understanding that backwards-compatibility in your particular case may not be guaranteed. For safest results, build your own base images.

Usage/Quick-Start

...Will install into a new directory named PROJECT-DIR.

Default addresses and command examples

Features

Your new Drupal 8 site comes with a number of helper scripts and config files that speed development in a containerized environment and production deployment.

Why ship with Xdebug? Won't it waste resources in production?

Xdebug is not loaded/started when in development mode (see below), so while you are shipping a slightly-larger container, this setup avoids the need for a "Development-only" Dockerfile.

Development Workflow

TL;DR: Leverage composer as much as possible for managing your project. The drupal-project README is very helpful on this point (see above.)

While a wrapper is provided for running drush inside the container, avoid using commands like drush dl. When using the default docker-compose.yml file, we inject the entire file structure on the host into the container, so your local file changes are reflected in real time. Asking drush to make filesystem changes outside the sites/*/files directory (drush cache-rebuild should be OK) may result in permissions errors and other weirdness.

Development Mode

Enable development mode (on by default) by setting the ENVIRONMENT environment variable == DEV.

Version control notes

The proper way to include projects and other dependencies, when using composer, is to add them as requirements in composer.json and then running composer update.

As noted above, the contents of those dependencies are excluded by default in .gitignore, so you should only be versioning code custom to your site.

ddrush helper script

Paired with the environment variable/PATH set with direnv (see above), you may execute most Drush commands inside the web container by typing ddrush your-command inside the project. (You may need to run direnv allow) in your shell, before starting work. More complex commands involving quoting are not passed through verbatim; run dbash first, then your drush command directly inside the container.

Xdebug Usage on same host as Docker container

Toggle Xdebug in your browser or HTTP request, and initiate a corresponding listening session in your IDE on port 9000. The provided PhpStorm configuration means you can just click the phone icon and go!

Updating Drupal core

drupal-project's post-install command will ensure your Drupal core "scaffolding" files are kept in sync with upstream. See drupal-project's README.

What about Drupal 8 configuration?

To ship/version a copy of your site with exported configuration, dump the config to disk - ddrush config-export - and your config will be dumped to config/drupal/sync. That directory is set as writable by the Apache user in development mode, for ease of export. In a production environment, import your configuration with drush or the web UI.

Patching

Check out composer-patches for an easy solution.

Configuration management in development mode

When the web container starts in with the environment variable DRUPAL_INSTALL = TRUE, the bootstrap script attempts to determine the presence of an installed Drupal database. If not found, the script will attempt to install Drupal, set the site UUID, and import any existing configuration. Thus you can re-use (or, not) a development database even across web container rebuilds.

Database management in development mode

As noted above, the bootstrap script contains some safeguards against installing over an existing database. Should you wish to (re-)start from scratch (or a fresh import of your exported configuration files), remove the db database container, then the drupal_data container.

SSL Support

SSL termination is no longer bundled. In the spirit of Docker containers doing one task well, consider using a proxy container in conjunction with a free Let's Encrypt certificate.

Production Deployment

Data Permanence

With development mode off, Drupal will expect to find an installed database at the db alias. Also, it's strongly suggested you mount host directories into the container at the locations in web-writeable.txt so user and system-generated files are preserved.

Requirements

Highly Recommended

Contributing

Issues and pull requests welcome; Both Drupal 8 and Docker are relatively new and fast-moving projects. There doesn't appear to be many other comprehensive starterkits for Docker and Drupal, so this is my effort at helping others avoid my steep learning curve on this front.

Known Issues

See the confirmed bugs in the issue queue.

See Also

Other Projects

There are a few other Drupal/Docker projects, though most appear focused on Drupal 7:

Groups and Resources

Copyright and License

© 2016-2018, Brad Jones LLC. Licensed under GPL 2.


All versions of docker-drupal with dependencies

PHP Build Version
Package Version
Requires composer/installers Version ^1.2
cweagans/composer-patches Version ^1.6
drupal-composer/drupal-scaffold Version ^2.2
drupal/console Version ~1.0
drupal/core Version ^8.5.3
drush/drush Version ^9.0
hirak/prestissimo Version ^0.3
webmozart/path-util Version ^2.3
drupal/console-yaml Version ^0.1.3
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package bradjonesllc/docker-drupal contains the following files

Loading the files please wait ...