Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build :dev and :xdebug tags for containers. #34

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ before_install:
- cd ..

# First build stock image, and one for own user.
- sudo docker build --rm -t aegir/hostmaster .
- sudo docker build --rm -t aegir/hostmaster:dev .
- sudo docker build --rm -t aegir/hostmaster:xdebug -f Dockerfile-xdebug .
- sudo docker build --rm -t aegir/hostmaster:local -f Dockerfile-local --build-arg NEW_UID=$UID .

script:
Expand Down
4 changes: 4 additions & 0 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -102,11 +102,15 @@ drush @hostmaster en hosting_queued -y

ls -lah /var/aegir

echo "ÆGIR | Getting status ... "
drush @hostmaster status

# We need a ULI here because aegir only outputs one on install, not on subsequent verify.
echo "ÆGIR | Getting a new login link ... "
drush @hostmaster uli

echo "ÆGIR | Clear Hostmaster caches ... "
drush @hostmaster cc drush
drush @hostmaster cc all

# Run whatever is the Docker CMD, typically drush @hostmaster hosting-queued
Expand Down
4 changes: 4 additions & 0 deletions sudoers-aegir
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
Defaults:aegir !requiretty
aegir ALL=NOPASSWD: /usr/sbin/apache2ctl
aegir ALL=NOPASSWD: /usr/local/bin/fix-drupal-platform-permissions.sh
aegir ALL=NOPASSWD: /usr/local/bin/fix-drupal-site-permissions.sh
aegir ALL=NOPASSWD: /usr/local/bin/fix-drupal-platform-ownership.sh
aegir ALL=NOPASSWD: /usr/local/bin/fix-drupal-site-ownership.sh