Skip to main content

Cli tool for up drupal projects in docker containers

Project description

Drupal Dockerizer CLI.

Prepare instalation

This project require next tools:

After install docker need add your user to docker group and logout/login to you system, see instruction

How to use

Go to your drupal project directory, navigate to the web directory where the index.php file is located, and run drupal-dockerizer init in terminal to create a drupal dockerizer configuration. Configuration placed in the root directory of the drupal project named .drupal -dockerizer.yml. Now you can change the configuration in this file. For more information see Drupal Dockerizer Repository

To create docker containers, run drupal-dockerizer up inside any directory in your drupal project. After running this command, you can work with drupal, for example, you can install drupal site by running command drupal-dockerizer drush si --account-pass=admin --site-name=Drupal -y

To stop docker containers run drupal-dockerizer stop. This command just stop containers, all data in database, solr, memcache, php is safe at this point.

Run drupal-dockerizer down to remove all data and contexts. This command removes the entire volumes created by Drupal Dockerizer and removes all containers.

You can run any drush command in your project by running drupal-dockerizer drush <drush-command> when containers are running.

If you don't have php or composer on your system, you can install drupal project using composer container. To use composer run drupal-dockerizer composer <composer-command>

Build

Manualy build pip package

Create python virual enviroment and activate by instruction. Run pip install -r requirements.txt for install dependency

Command for build pip package: python3 setup.py sdist bdist_wheel Go to dist folder now you can install package to your system by run pip intall drupal_dockerizer-*.whl

Build package in docker:

Buid image: docker build -t drupal_dockerizer .

Copy created packages from container: docker run --rm --volume $PWD:/app --user $(id -u):$(id -g) drupal_dockerizer cp -R /code/dist /app/drupal_dockerizer_package

Install

Go to folder with builded package and run pip intall drupal_dockerizer-*.whl

Development

Create python virual enviroment and activate by instruction.

Run pip install --editable . for install drupal_dockerizer to current enviroment.

Now you can edit files in folder drupal_dockerizer and use command drupal-dockerizer to see results from terminal or debug.

Uninstall

For uninstall package run pip uninstall drupal_dockerizer

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

drupal_dockerizer-0.0.5.tar.gz (9.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drupal_dockerizer-0.0.5-py3-none-any.whl (11.2 kB view details)

Uploaded Python 3

File details

Details for the file drupal_dockerizer-0.0.5.tar.gz.

File metadata

  • Download URL: drupal_dockerizer-0.0.5.tar.gz
  • Upload date:
  • Size: 9.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for drupal_dockerizer-0.0.5.tar.gz
Algorithm Hash digest
SHA256 0f81aed301fb59cc044d0ab0251437a091c42bf59f06db000c5196a759f4354e
MD5 fd35f5f1cc533dd59921acb7f570d194
BLAKE2b-256 f8c270e2fad4148cb0b036ec7fd5044851595a5ab2d8e64c6d4b76016ed1d387

See more details on using hashes here.

File details

Details for the file drupal_dockerizer-0.0.5-py3-none-any.whl.

File metadata

  • Download URL: drupal_dockerizer-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 11.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/3.10.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.59.0 CPython/3.9.2

File hashes

Hashes for drupal_dockerizer-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 1dadbaa16d90a24c55d33d64d20350c75a52223a47cd1eb8293524ed2cd99e9e
MD5 f3efd1482ca41efefa1c3cc784156df6
BLAKE2b-256 ebbc4a8a08b5d1d2359ed865fd4017db5532d46ae9c492a1f7891c0395a4d6e4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page