Code Monkey home page Code Monkey logo

docker-aegir-mariadb's Introduction

docker-aegir-mariadb

This is a Dockerfile and installations scripts to get a Aegir hosting system for Drupal up and running.

Services provided:

  • Apache
  • MariaDB
  • Solr / Tomcat
  • SSH

How to use

First checkout this branch. Then go to the directory and build the docker image.

docker build -t namespace/aegir_maria .

After the successful build we can run a container instance. We are sharing multiple volumes with our host system.

  1. /var/aegir
  2. /var/log/apache2
  3. /var/lib/mysql
  4. /etc/mysql/conf.d
  5. /var/log/mysql
  6. /usr/share/solr4

We are creating these volumes in a directory named with the name of our new instance und /var/docker. For example /var/docker/aegir01/var/aegir.

Run the container

After the container has been built we can run it. In the run command we add passwords, domain, hostname, version information, port mappings and file system volume mappings.

The database passwords can be changed.

docker run -d -v /var/docker/aegir01/usr/share/solr4:/usr/share/solr4 -v /var/docker/aegir01/var/aegir:/var/aegir -v /var/docker/aegir01/var/log/apache2:/var/log/apache2 -v /var/docker/aegir01/var/lib/mysql:/var/lib/mysql -v /var/docker/aegir01/etc/mysql/conf.d:/etc/mysql/conf.d -v /var/docker/aegir01/var/log/mysql:/var/log/mysql -e POSTFIX_MAILNAME=aegir01.mydomain.com -e POSTFIX_DESTINATION=aegir01.mydomain.com -e AEGIR_SITE=aegir01 -e AEGIR_FRONTEND_URL=aegir01.mydomain.com -e AEGIR_EMAIL=[email protected] -e AEGIR_DB_PASSWORD=CHANGEME -e AEGIR_VERSION=6.x-2.0-rc5 -e MYSQL_ROOT_PW=CHANGEME -e SOLR_PASS=CHANGEME -e SOLR_VERSION=4.6.0 -p 30880:8080 -p 30080:80 -p 30443:443 -p 30022:22 -h aegir01 -name aegir01 mydomain/aegir_maria

Solr search

I added the Solr search engine to the container. In my configuration there are two running core with the latest schema version of search Search API Solr search (https://drupal.org/project/search_api_solr)

Additional information

I wrote a little article on our website about the creation of the Dockerfile and where i failed with some expectations about Docker. The article can be found on http://inspirationlabs.com/blog/docker-and-aegir-hosting-system.

docker-aegir-mariadb's People

Contributors

dominicboettger avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

docker-aegir-mariadb's Issues

Can't run (image mydomain/aegir_maria:latest not found)

Hello,

I have this error when trying to start the docker:

pol@x230 ~/git/docker-aegir-mariadb $ docker run -d -v /var/docker/aegir01/usr/share/solr4:/usr/share/solr4 -v /var/docker/aegir01/var/aegir:/var/aegir -v /var/docker/aegir01/var/log/apache2:/var/log/apache2 -v /var/docker/aegir01/var/lib/mysql:/var/lib/mysql -v /var/docker/aegir01/etc/mysql/conf.d:/etc/mysql/conf.d -v /var/docker/aegir01/var/log/mysql:/var/log/mysql -e POSTFIX_MAILNAME=aegir01.mydomain.com -e POSTFIX_DESTINATION=aegir01.mydomain.com -e AEGIR_SITE=aegir01 -e AEGIR_FRONTEND_URL=aegir01.mydomain.com -e AEGIR_EMAIL=[email protected] -e AEGIR_DB_PASSWORD=CHANGEME -e AEGIR_VERSION=6.x-2.0-rc5 -e MYSQL_ROOT_PW=CHANGEME -e SOLR_PASS=CHANGEME -e SOLR_VERSION=4.6.0 -p 30880:8080 -p 30080:80 -p 30443:443 -p 30022:22 -h aegir01 -name aegir01 mydomain/aegir_maria
Warning: '-name' is deprecated, it will be replaced by '--name' soon. See usage.
Unable to find image 'mydomain/aegir_maria:latest' locally
Pulling repository mydomain/aegir_maria
FATA[0001] Error: image mydomain/aegir_maria:latest not found

What should I do to fix that ?

Thanks.

Aegir impossible to install (Drush was not able to start (bootstrap) the Drupal database.)

Hello Dominic, Helmo,

To learn Docker, I've tested both of your repositories and try to run a working Aegir.
To train myself a bit, I've structured the repository files.
You can find my work here: https://github.com/Polzme/docker-aegir-mariadb

Right now, everything is working except the Aegir installation. It fails at a certain point with this error.
You can review the whole log from ./run.sh in the container here: http://pastebin.com/RrV6GfDW

To reproduce the error,

Start: ./Docker_build.sh
Then: ./Docker_run.sh
Then: ./run.sh

Do you think the problem is coming from the installation script or Aegir ?

Thanks.

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.