Commit 1554dc51 authored by Matthias Stegmann's avatar Matthias Stegmann
Browse files

Merge branch 'task/add-ddev-provider' into 'main'

[FEATURE] Add ddev provider to get db and files

See merge request !68
parents 14681e04 181e77f1
Pipeline #13044 passed with stages
in 5 minutes and 32 seconds
......@@ -13,7 +13,14 @@ mysql_version: ""
provider: default
use_dns_when_possible: true
composer_version: ""
hooks:
pre-pull:
- exec: "mkdir -p ./.ddev/typo3-demo-data"
- exec: "curl https://git-t3o.typo3.org/api/v4/projects/98/packages/generic/site/1.0.0/demo-data.zip -o ./.ddev/typo3-demo-data/demo-data.zip"
- exec: "unzip ./.ddev/typo3-demo-data/demo-data.zip -d ./.ddev/typo3-demo-data/"
post-pull:
- exec: "rm -Rf ./.ddev/typo3-demo-data"
- exec: "bin/typo3cms database:updateschema"
# This config.yaml was created with ddev version v1.16.0
# webimage: drud/ddev-webserver:v1.16.0
......
db_pull_command:
command: |
cp ./.ddev/typo3-demo-data/dump/dump.sql.gz ./.ddev/.downloads/db.sql.gz
service: web
files_pull_command:
command: |
rsync -avz ./.ddev/typo3-demo-data/dump/fileadmin/* ./.ddev/.downloads/files/
service: web
......@@ -26,13 +26,14 @@ To set up the TYPO3 Demo Project for local development
1. Download code `git clone ssh://git@gitlab.typo3.org:2222/services/demo.typo3.org/site.git`
2. Install composer packages `ddev composer install`
3. Build the frontend `ddev composer frontend-builds`
4. Download database/fileadmin: Go to the [Generic Packages](https://gitlab.typo3.org/services/demo.typo3.org/site/-/packages) section in Gitlab, select the "site"-Package and download the latest "demo-data.zip"
5. Extract the downloaded file
6. Copy the `fileadmin` folder to `<document root>web/fileadmin`
7. Import database: `ddev import-db --src=/path/to/database/dump.sql.gz`
8. Update schema: `ddev exec bin/typo3cms database:updateschema`
9. Create a backend user `ddev exec bin/typo3cms backend:createadmin username password`
10. Start the project running `ddev start`
4. Get database and fileadmin using `ddev pull dump` or download and import it manually:
1. Download database/fileadmin: Go to the [Generic Packages](https://gitlab.typo3.org/services/demo.typo3.org/site/-/packages) section in Gitlab, select the "site"-Package and download the latest "demo-data.zip"
2. Extract the downloaded file
3. Copy the `fileadmin` folder to `<document root>web/fileadmin`
4. Import database: `ddev import-db --src=/path/to/database/dump.sql.gz`
6. Update schema: `ddev typo3cms database:updateschema`
7. Create a backend user `ddev typo3cms backend:createadmin username password`
8. Start the project running `ddev start`
## License
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment