-
Notifications
You must be signed in to change notification settings - Fork 85
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
IBX-9395: ddev-ibexa-cloud add-on #2599
Conversation
Flag --src has been deprecated, please use --file instead
Command "get" is deprecated, use 'ddev add-on get' instead
Doesn't come with a nvm installation anymore
Test with and without ddev/ddev-ibexa-cloud v0.1.0 set -x
DIR=XXXXXXXX
PROJECT=XXXXXXXXXXX
ENVIRONMENT=production
INSTALLATION_KEY=XXXXXXXXXXXXXXXXXX
TOKEN_PASSWORD=XXXXXXXXXXXXXXXXXXXXXX
IBEXA_CLI_TOKEN=XXXXXXXXXXXXXXXXXXXXX
HTTPS_PORT=8443
HTTP_PORT=8080
USE_IBEXA_CLOUD_DDEV_ADDON=1
if [ -e $DIR ]; then
cd $DIR
ddev delete --omit-snapshot --yes
cd -
rm -rf $DIR
fi
set -e
if [ 1 -eq $USE_IBEXA_CLOUD_DDEV_ADDON ]; then
ibexa_cloud project:get $PROJECT $DIR && cd $DIR
ddev config --project-type=php --php-version 8.1 --web-environment-add COMPOSER_AUTH='',DATABASE_URL=mysql://db:db@db:3306/db --router-http-port=$HTTP_PORT --router-https-port=$HTTPS_PORT
ddev config --web-environment-add IBEXA_PROJECT=$PROJECT,IBEXA_ENVIRONMENT=$ENVIRONMENT,IBEXA_APP=app
ddev config --web-environment-add IBEXA_CLI_TOKEN=$IBEXA_CLI_TOKEN
echo '.ddev/' >> .gitignore
mkdir -p .ddev/homeadditions/.composer && echo "{\"http-basic\": {\"updates.ibexa.co\": {\"username\": \"$INSTALLATION_KEY\", \"password\": \"$TOKEN_PASSWORD\"}}}" > .ddev/homeadditions/.composer/auth.json
ddev add-on get ddev/ddev-ibexa-cloud
ddev start
ddev composer install
ddev pull ibexa-cloud -y
ddev describe
ddev launch
else
ibexa_cloud project:get $PROJECT $DIR --environment=$ENVIRONMENT && cd $DIR
ddev config --project-type=php --php-version 8.1 --docroot=public --web-environment-add DATABASE_URL=mysql://db:db@db:3306/db --router-http-port=$HTTP_PORT --router-https-port=$HTTPS_PORT
echo '.ddev/' >> .gitignore
ddev start
ddev composer config --global http-basic.updates.ibexa.co $INSTALLATION_KEY $TOKEN_PASSWORD
ibexa_cloud db:dump --gzip --file=$ENVIRONMENT.sql.gz --environment=$ENVIRONMENT
ddev import-db --src=$ENVIRONMENT.sql.gz && rm $ENVIRONMENT.sql.gz
ibexa_cloud mount:download --mount public/var --target public/var --yes
ddev composer install
ddev describe
ddev launch
fi |
After ddev/ddev-ibexa-cloud#9 I use both add-ons at the same time. (mind the macOS ibexa_cloud project:get $PROJECT $DIR && cd $DIR
ddev config --project-type=php --web-environment-add COMPOSER_AUTH='' --router-http-port=$HTTP_PORT --router-https-port=$HTTPS_PORT
ddev config --web-environment-add IBEXA_PROJECT=$PROJECT,IBEXA_ENVIRONMENT=$ENVIRONMENT,IBEXA_APP=app
ddev config --web-environment-add IBEXA_CLI_TOKEN=$IBEXA_CLI_TOKEN
echo '.ddev/' >> .gitignore
mkdir -p .ddev/homeadditions/.composer && echo "{\"http-basic\": {\"updates.ibexa.co\": {\"username\": \"$INSTALLATION_KEY\", \"password\": \"$TOKEN_PASSWORD\"}}}" > .ddev/homeadditions/.composer/auth.json
ddev add-on get ddev/ddev-platformsh
sed -i '' 's/maxmemory-policy allkeys-lfu/maxmemory-policy volatile-lfu/' .ddev/redis/redis.conf
ddev add-on get ddev/ddev-ibexa-cloud
ddev start
ddev pull ibexa-cloud -y
ddev describe
ddev launch |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Applied in 32b6fe7 @mnocon: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you!
Checklist