-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
39a9505
commit 02e7574
Showing
1 changed file
with
13 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,18 @@ | ||
#! /bin/bash | ||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" | ||
echo git clone https://github.com/civicrm/civicrm-buildkit.git $DIR/buildkit | ||
echo docker-compose --project-directory $DIR up -d | ||
echo docker-compose --project-directory $DIR run cli civi-download-tools | ||
echo docker-compose --project-directory $DIR run cli civibuild cache-warmup | ||
echo mkdir $DIR/buildkit/.amp | ||
echo cp $DIR/cli/amp.services.yml $DIR/buildkit/.amp/services.yml | ||
echo cp $DIR/cli/civibuild.conf $DIR/buildkit/app/civibuild.conf | ||
echo cp $DIR/cli/nginx-vhost.php $DIR/buildkit/.amp/nginx-vhost.php | ||
echo rm $DIR/buildkit/app/civicrm.settings.d/100-mail.php | ||
sudo chown $USER:$USER $DIR/buildkit | ||
git clone https://github.com/civicrm/civicrm-buildkit.git $DIR/buildkit | ||
docker-compose --project-directory $DIR up -d | ||
docker-compose --project-directory $DIR run cli civi-download-tools | ||
docker-compose --project-directory $DIR run cli civibuild cache-warmup | ||
mkdir $DIR/buildkit/.amp | ||
cp $DIR/cli/amp.services.yml $DIR/buildkit/.amp/services.yml | ||
cp $DIR/cli/civibuild.conf $DIR/buildkit/app/civibuild.conf | ||
cp $DIR/cli/nginx-vhost.php $DIR/buildkit/.amp/nginx-vhost.php | ||
rm $DIR/buildkit/app/civicrm.settings.d/100-mail.php | ||
|
||
# Workaround, until a version of amp that allows nginx template overrides is | ||
# packaged with buildkit | ||
echo git clone https://github.com/amp-cli/amp $DIR/buildkit/amp | ||
echo docker-compose --project-directory $DIR run composer install -d /buildkit/amp | ||
echo ln -sf $DIR/buildkit/amp/bin/amp $DIR/buildkit/bin/amp | ||
git clone https://github.com/amp-cli/amp $DIR/buildkit/amp | ||
docker-compose --project-directory $DIR run composer install -d /buildkit/amp | ||
ln -sf $DIR/buildkit/amp/bin/amp $DIR/buildkit/bin/amp |