Skip to content

Instantly share code, notes, and snippets.

@gilbertsoft
Last active August 26, 2020 10:41
Show Gist options
  • Save gilbertsoft/c2972b1d1290b2506caab412a723ff7c to your computer and use it in GitHub Desktop.
Save gilbertsoft/c2972b1d1290b2506caab412a723ff7c to your computer and use it in GitHub Desktop.
Automatically setup the Aimeos Distribution using DDEV and Composer

Automatically Setup The Aimeos Distribution

ddev config --project-type=typo3 --docroot=public --create-docroot=true
ddev composer create "typo3/cms-base-distribution:^9" --no-install

Define the following environment variables via .ddev/docker-compose.environment.yaml:

version: '3.6'

services:
  web:
    environment:
      - TYPO3_CONTEXT=Development
      # TYPO3 Console Setup support
      - TYPO3_INSTALL_ADMIN_USER=admin
      - TYPO3_INSTALL_ADMIN_PASSWORD=password
      - TYPO3_INSTALL_SITE_NAME=Aimeos Introduction Package
      - TYPO3_INSTALL_SITE_SETUP_TYPE=no
      - TYPO3_INSTALL_WEB_SERVER_CONFIG=apache
      # TYPO3 Testing Framework support
      - typo3DatabaseHost=db
      - typo3DatabaseName=t3func
      - typo3DatabasePassword=root
      - typo3DatabaseUsername=root

Remove the typo3-cms-scripts and add Aimeos\\Aimeos\\Custom\\Composer::install to post-autoload-dump in the composer.json.

ddev start
ddev composer config sort-packages true
ddev composer remove typo3/cms-fluid-styled-content --no-update
ddev composer require typo3-console/composer-auto-commands --no-update
ddev composer require "typo3-console/composer-typo3-auto-install:^0.3.1" --dev
ddev composer require aimeos/aimeos-typo3-dist
ddev composer "require aimeos/aimeos-typo3:^19.10.9"
ddev launch typo3

Enter the defined credentials admin and password to login to the TYPO3 Backend.

See also the resulting composer.json attached here.

{
"repositories": [
{ "type": "composer", "url": "https://composer.typo3.org/" }
],
"name": "typo3/cms-base-distribution",
"description" : "TYPO3 CMS Base Distribution",
"license": "GPL-2.0-or-later",
"config": {
"platform": {
"php": "7.2"
},
"sort-packages": true
},
"require": {
"aimeos/aimeos-typo3": "^19.10.9",
"aimeos/aimeos-typo3-dist": "^19.4",
"helhum/typo3-console": "^5.8.5",
"typo3-console/composer-auto-commands": "^0.4.2",
"typo3/cms-about": "^9.5",
"typo3/cms-adminpanel": "^9.5",
"typo3/cms-belog": "^9.5",
"typo3/cms-beuser": "^9.5",
"typo3/cms-felogin": "^9.5",
"typo3/cms-form": "^9.5",
"typo3/cms-impexp": "^9.5",
"typo3/cms-info": "^9.5",
"typo3/cms-redirects": "^9.5",
"typo3/cms-reports": "^9.5",
"typo3/cms-rte-ckeditor": "^9.5",
"typo3/cms-seo": "^9.5",
"typo3/cms-setup": "^9.5",
"typo3/cms-sys-note": "^9.5",
"typo3/cms-t3editor": "^9.5",
"typo3/cms-tstemplate": "^9.5",
"typo3/cms-viewpage": "^9.5",
"typo3/minimal": "^9.5"
},
"require-dev": {
"typo3-console/composer-typo3-auto-install": "^0.3.1"
},
"scripts":{
"post-autoload-dump": [
"Aimeos\\Aimeos\\Custom\\Composer::install"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment