Skip to content

Commit

Permalink
Sandbox adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
DonRichards committed Oct 18, 2023
1 parent efaa437 commit af2f905
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions custom.Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,20 @@ jhu_up: jhu_generate-secrets
$(MAKE) starter-init ENVIRONMENT=starter_dev
if [ ! -z "$$(ls -A $(QUOTED_CURDIR)/codebase)" ]; then \
echo "codebase/ directory is empty, cloning it"; \
mkdir -p $(CURDIR)/codebase; \
docker container run --rm -v $(CURDIR)/codebase:/home/root $(REPOSITORY)/nginx:$(TAG) with-contenv bash -lc 'git clone -b main https://github.com/jhu-idc/idc-codebase /home/root;'; \
fi
$(MAKE) set-codebase-owner
$(MAKE) set-files-owner SRC=$(CURDIR)/codebase ENVIRONMENT=starter_dev
docker-compose up -d --remove-orphans
# The rest of this should be moved into another function.
@echo "Wait for the /var/www/drupal directory to be available"
@echo "Wait for the /var/www/drupal/composer.json file to be available"
while ! docker compose exec -T drupal with-contenv bash -lc 'test -f /var/www/drupal/composer.json'; do \
echo "Waiting for /var/www/drupal directory to be available..."; \
echo "Waiting for /var/www/drupal/composer.json file to be available..."; \
sleep 2; \
done
docker-compose exec -T drupal with-contenv bash -lc 'git config --global --add safe.directory /var/www/drupal/web/modules/contrib/islandora_fits'
docker-compose exec -T drupal with-contenv bash -lc 'rm -rf vendor/ web/modules/contrib/* web/themes/contrib/*'
docker compose exec -T drupal with-contenv bash -lc 'chown -R nginx:nginx /var/www/drupal/ && su nginx -s /bin/bash -c "composer install"'
docker-compose exec -T drupal with-contenv bash -lc 'git config --global --add safe.directory /var/www/drupal/web/modules/contrib/islandora_fits'
$(MAKE) set-codebase-owner
docker-compose exec -T drupal with-contenv bash -lc 'chown -R nginx:nginx .'
$(MAKE) drupal-database update-settings-php
Expand Down

0 comments on commit af2f905

Please sign in to comment.