-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into SHS-6009--social-media-field-visibility
- Loading branch information
Showing
17 changed files
with
333 additions
and
152 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,40 +1,30 @@ | ||
github: | ||
prebuilds: | ||
master: true | ||
branches: false | ||
pullRequests: true | ||
pullRequestsFromForks: false | ||
addCheck: false | ||
addComment: false | ||
addBadge: false | ||
ports: | ||
- port: 3306 | ||
onOpen: ignore | ||
visibility: private | ||
- port: 33060 | ||
onOpen: ignore | ||
visibility: private | ||
- port: 8001 | ||
- port: 8001-8999 | ||
onOpen: ignore | ||
visibility: public | ||
image: pookmish/drupal8ci:gitpod | ||
tasks: | ||
- before: > | ||
eval $(command gp env -e) && | ||
mkdir -p ~/.ssh && | ||
[[ ! -z $SSH_PUBLIC_KEY ]] && | ||
echo $SSH_PUBLIC_KEY | base64 -d > ~/.ssh/id_rsa.pub && | ||
chmod 644 ~/.ssh/id_rsa.pub && | ||
[[ ! -z $SSH_PRIVATE_KEY ]] && | ||
echo $SSH_PRIVATE_KEY | base64 -d > ~/.ssh/id_rsa && | ||
chmod 600 ~/.ssh/id_rsa && | ||
[[ ! -z $GITCONFIG ]] && | ||
echo $GITCONFIG | base64 -d > ~/.gitconfig && | ||
chmod 644 ~/.gitconfig | ||
- 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 [email protected]: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 && | ||
|
@@ -43,15 +33,15 @@ tasks: | |
blt settings && | ||
mysql -u root -e 'CREATE DATABASE IF NOT EXISTS drupal_default; CREATE DATABASE IF NOT EXISTS drupal' && | ||
blt sws:keys && | ||
blt source:build:simplesamlphp-config && | ||
mysql -e 'SET GLOBAL max_allowed_packet=67108864;' && | ||
blt drupal:sync --site=hs_colorful -n && | ||
drush sql-sync @hs_colorful.local @self -y | ||
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 && | ||
blt blt:telemetry:disable --no-interaction && | ||
git remote set-url origin [email protected]:SU-HSDO/suhumsci.git && | ||
apache2ctl restart && | ||
gp ports await 8001 && | ||
drush uli && | ||
|
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,3 +1,13 @@ | ||
<?php | ||
|
||
error_reporting(E_ALL & ~E_DEPRECATED & ~E_STRICT); | ||
|
||
$config['samlauth.authentication']['sp_x509_certificate'] = 'file:' . DRUPAL_ROOT . '/../keys/saml/cert/saml.crt'; | ||
$config['samlauth.authentication']['sp_private_key'] = 'file:' . DRUPAL_ROOT . '/../keys/saml/cert/saml.pem'; | ||
$config['samlauth.authentication']['idp_certs'] = [ | ||
'file:' . DRUPAL_ROOT . '/../keys/saml/cert/signing.crt', | ||
]; | ||
$config['stanford_samlauth.settings']['role_mapping']['workgroup_api'] = [ | ||
'cert' => DRUPAL_ROOT . '/../keys/saml/workgroup_api.cert', | ||
'key' => DRUPAL_ROOT . '/../keys/saml/workgroup_api.key', | ||
]; |
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 |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
$settings = glob(__DIR__ . '/*/settings.php'); | ||
|
||
$workspace_url = getenv('GITPOD_WORKSPACE_URL'); | ||
$workspace_domain = preg_replace('/^.*?\/\//', '', $workspace_url); | ||
|
||
$port = 8002; | ||
foreach ($settings as $settings_file) { | ||
$site_dir = str_replace(__DIR__ . '/', '', $settings_file); | ||
$site_dir = str_replace('/settings.php', '', $site_dir); | ||
|
||
if ($site_dir == 'default') { | ||
$site_dir = 'swshumsci'; | ||
} | ||
|
||
$sites["$port-$workspace_domain"] = $site_dir; | ||
$port++; | ||
} |
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
Oops, something went wrong.