-
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
Open
adriendupuis
wants to merge
16
commits into
master
Choose a base branch
from
ddev-ibexa-cloud
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Conversation
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
adriendupuis
changed the title
ddev_and_ibexa_cloud.md
IBX-9395: ddev-ibexa-cloud add-on
Jan 21, 2025
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 |
adriendupuis
commented
Jan 22, 2025
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 |
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