IBX-9395: ddev-ibexa-cloud add-on#2599
Merged
adriendupuis merged 17 commits intomasterfrom Feb 5, 2025
Merged
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
Contributor
Author
|
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 |
adriendupuis
commented
Jan 22, 2025
Contributor
Author
|
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 |
mnocon
reviewed
Feb 5, 2025
Contributor
Author
Applied in 32b6fe7 @mnocon: |
adriendupuis
added a commit
that referenced
this pull request
Feb 5, 2025
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Checklist