-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.gitpod.yml
48 lines (48 loc) · 1.67 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
ports:
- port: 3306
onOpen: ignore
visibility: private
- port: 33060
onOpen: ignore
visibility: private
- port: 8001-8999
onOpen: ignore
visibility: public
image: pookmish/drupal8ci:gitpod
tasks:
- name: SSH Keys
before: |
mkdir -p ~/.ssh
if [[ ! -z $SSH_PRIVATE_KEY ]]; then
echo $SSH_PRIVATE_KEY | base64 -d > ~/.ssh/id_rsa && chmod 600 ~/.ssh/id_rsa &&
git remote set-url origin git@github.com:SU-HSDO/suhumsci.git
fi
if [[ ! -z $GITCONFIG ]]; then
echo $GITCONFIG | base64 -d > ~/.gitconfig && chmod 644 ~/.gitconfig
fi
init: >
export PREVIEW_FULL_URL=`gp url 8001` &&
export PREVIEW_URL=${PREVIEW_FULL_URL#"https://"} &&
cp .gitpod/blt.yml blt/local.blt.yml &&
cp .gitpod/sites.php docroot/sites/local.sites.php &&
composer install --no-interaction &&
rm -rf docroot/*/custom/* &&
composer install --prefer-source --no-interaction &&
blt blt:telemetry:disable --no-interaction &&
cp .gitpod/gitpod.settings.php docroot/sites/settings/local.settings.php &&
blt settings &&
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS drupal_default; CREATE DATABASE IF NOT EXISTS drupal' &&
blt sws:keys &&
mysql -e 'SET GLOBAL max_allowed_packet=67108864;' &&
if [[ ! -z $SSH_PRIVATE_KEY ]]; then
blt drupal:sync --site=hs_colorful -n &&
drush sql-sync @hs_colorful.local @self -y
else
blt drupal:install --no-interaction
fi
command: >
git config core.fileMode false &&
apache2ctl restart &&
gp ports await 8001 &&
drush uli &&
drush uli | xargs gp preview --external