Giter Site home page Giter Site logo

dockerfiles's People

Contributors

doka avatar helmo avatar jacobembree avatar jonpugh avatar

Stargazers

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

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

dockerfiles's Issues

Apache service doesn't start automatically

The first time I used the aegir project dockerfile using the recommended docker-compose setup everyting worked fine, but when I restarted I found that the apache service didn't start automatically. Manually starting apache from within the container worked fine for me.

I'm not sure why this happens, I'm happy to provide more information if necessary.

cron package is missing on ubuntu 16.04

Cron is not installed by default in ubuntu:16.04 image. See this comment on Serverfault.

Hostmaster install ends with crontab error if using any Dockerfiles based on ubuntu:16.04

This command will replace your crontab for this user. continue? (y/n): y
/usr/bin/env php /usr/local/bin/drush '@hostmaster' hosting-dispatch
Dispatch command was run successfully                                [success]
No existing crontab was found                                          [message]
Adding hosting-dispatch cron entry to run every minute               [ok]
sh: 1: crontab: not found
Failed to install cron job                                           [error]
The command did not complete successfully, please fix the issues and [error]
re-run this script

Hostmaster Login Link 404 not found

After the port issue was resolved and the installation has completed the login link that was given to is not valid

here is the look.

hostmaster_1 | You should now log in to the Aegir frontend by opening the following link in your web browser:
hostmaster_1 |
hostmaster_1 | http://local.computer/user/reset/1/1479116374/yAhJ8jtCNB4TCc7f6hkWCkEbi9N0-HQY_VSk0RP-KSg/login

When i visited the above link i got
Not Found

The requested URL /user/reset/1/1479116374/yAhJ8jtCNB4TCc7f6hkWCkEbi9N0-HQY_VSk0RP-KSg/login was not found on this server.

Apache/2.4.18 (Ubuntu) Server at local.computer Port 80

client' returned a non-zero code: 100

Step 2/44 : RUN apt-get update -qq && apt-get install -y -qq apache2 openssl php5 php5-cli php5-gd php5-mysql php-pear php5-curl postfix sudo rsync git-core unzip wget mysql-client
---> Running in 24e8f1d7bf2c
E: Package 'php5' has no installation candidate
E: Package 'php5-cli' has no installation candidate
E: Package 'php5-gd' has no installation candidate
E: Package 'php5-mysql' has no installation candidate
E: Unable to locate package php5-curl
The command '/bin/sh -c apt-get update -qq && apt-get install -y -qq apache2 openssl php5 php5-cli php5-gd php5-mysql php-pear php5-curl postfix sudo rsync git-core unzip wget mysql-client' returned a non-zero code: 100

Warning, things you need to know with external mysql database.

I need to warn to use aegir in docker with external mysql database.
The aegir creates ip based grant for each site to the mysql access table.

In docker, the ip is not generally defined as a static, an can change anytime. I made some reseach to change the aegir code to use hostname instead ip ( so we could use docker alias ), but it seems that mysql does reverse dns for the connecting hostname, so using the hostnames just dont work.

Only way to use external mysql is to use static ip's for the aegir docker container, or change the aegir code to do the wildcard / network masked user grants.

Allow installation of additional modules through environment variables

Hi,

since I'm using boost on a D7 site, I recently realized, that during the migration to hostmaster on docker I lost my additional drush modules.

Since downloading modules in the form of drush dl --destination=/var/aegir/.drush/commands provision_boost module_2 ... works I'd like to propose the idea that one could use two environment variables $DRUSH_ADDITIONAL_MODULES and $HOSTMASTER_ADDITIONAL_MODULES which could be checked in docker-entrypoint.sh and accordingly downloaded after the download of provision and the installation section of the hostmaster.

Do you think this is possible / useful?

best regards

Hostmster is not starting

After running docker-compose up I got the following error

ERROR: for hostmaster Cannot start service hostmaster: failed to create endpoint aegirdockerfile_hostmaster_1 on network aegirdockerfile_default: Error starting userland proxy: listen tcp 0.0.0.0:80: listen: address already in use
ERROR: Encountered errors while bringing up the project.

cron / hosting-dispatch missing?

The task queue is being handled OK here but what about the other queues?

In a regular install we have a crontab entry that runs 'hosting-dispatch' to go through all queue's.

Not a big pain for me at the moment though .. I just missed it while looking at hosting_distributions in a dev container.

Explicit instructions for installing CiviCRM

I managed to get aegir up and running! (and upgraded to PHP72 via docker-compose)!

I also managed to find the Module.. Hosting CiviCRM (both in modules and in the experimental settings section as referenced on the quick start instructions here

I also could add a site and login to that new drupal site...

I didn't manage to figure out how to install CiviCRM.

Are the quickstart instructions up to date for the current docker image?

Can anyone help with more explicit instructions for creating a site with CiviCRM provisioned?

Version info:

Aegir 7.x-3.173+48-dev automated install script
Drupal | 7.67
Install profile | Hostmaster (hostmaster-7.x-3.173+9-dev)
5.5.5-10.3.15-MariaDB-1:10.3.15+maria~bionic
PHP | 7.2.15-0ubuntu0.18.04.2

PHP72 as default container

I was surprised to see that Drupal 7 suggests PHP 7.1 or 7.2, but aegir docker defaults to 5.x
Then I was even more surprised to see that you do have PHP72 tag on docker hub!

Why is that not the default?

COMPOSE_HTTP_TIMEOUT may be ignored

If you are in a situation similar to mine (likely considering my problem led me to this project), the Travis env for your project may be ignoring your global COMPOSE_HTTP_TIMEOUT when using sudo! My solution has been to use sudo -E (not necessarily successfully, still testing); however, I am using an instance of Travis CI Enterprise that does not yet support Docker as a service. So, you may want to look into it 👍

Some errors during hostmaster install

I'm seeing a few errors during the installation of hostmaster.

hostmaster_1 | Unable to load Array driver for the dns service: Expecting class [error] hostmaster_1 | Provision_Service_dns_Array hostmaster_1 | Unable to load Array driver for the dns service: Expecting class [error] hostmaster_1 | Provision_Service_dns_Array

It doesn't seem to cause the installation to fail, and Aegir does work afterwards. So not critical... just something to document and maybe fix...

Reason for hard coded DB container name in docker-entrypoint.sh

In developing something that builds upon this, I found that I could only use a DB host called "database", but it's only due to the mysql_ready method having it hardcoded, making it impossible to override.

I tried out swapping "database" for "$AEGIR_DATABASE_SERVER" on line 16 of docker-entrypoint.sh, and then overriding AEGIR_DATABASE_SERVER with a custom DB container name in my own docker-compose.yml worked as expected.

Without this change, it loops forever with "waiting for mysql ..." every 3 seconds.

Is there any deliberate reason it's hardcoded instead of using the AEGIR_DATABASE_SERVER environment variable, or is this a bug?

Restart reinstalls Aegir

Very nice work, hope to use this for development.
When I restart the hostmaster container on OSX with Kitematic Aegir gets reinstalled. How can I prevent this?

How to do hostmaster upgrades

Hi,

I'm running hostmaster:latest and it is working great. Thank you for this great project!
Until now I could work around or fix every problem I had with it. But I still got an conceptional question. I don't get how updates can work.

Since you define /var/aegir as a volume in your Dockerfile I mounted a named volume in my docker-comopose.yml to this directory. Maybe this was my error.
As far as I understand it /var/aegir/platforms has to be persistent even if a container is recreated and since you just defined /var/aegir I used this.
In entrypoint.sh you check if @hostmaster is set, which, as I understand it, means that /var/aegir/.drush has to be present.
After that you check if $AEGIR_HOSTMASTER_ROOT contains the hostmaster site.
What I don't get if: If $AEGIR_HOSTMASTER_ROOT does exist, how can it not contain the hostmaster site (after it is installed the first time)?

Do I have to download the latest version of provision and create the new hostmaster platform myself and then rename the old version and let docker-entrypoint.sh to the migration?

I found https://github.com/aegir-project/dockerfiles/pull/15 and read the commit message but I still don't get it.

Could you please elaborate on the process or extend the documentation since I have absolutely no idea other than starting a shell in the container and doing it the same way as I did the last years.
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.