-
Notifications
You must be signed in to change notification settings - Fork 4
/
.gitpod.yml
71 lines (68 loc) · 2.89 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
---
# Example
# 8.1 https://gitpod.io/#TDK_PHP_VERSION=8.1,TDK_BRANCH=main,TDK_PATCH_REF=refs%2Fchanges%2F43%2F70643%2F36,TDK_USERNAME=ochorocho,TDK_PATCH_ID=70643/https://github.com/ochorocho/tdk/tree/main
# 8.0 https://gitpod.io/#TDK_PHP_VERSION=8.0,TDK_BRANCH=main,TDK_PATCH_REF=refs%2Fchanges%2F43%2F70643%2F36,TDK_USERNAME=ochorocho,TDK_PATCH_ID=70643/https://github.com/ochorocho/tdk/tree/main
# Detect php: https://gitpod.io/#TDK_BRANCH=11.5,TDK_PATCH_REF=refs%2Fchanges%2F43%2F70643%2F36,TDK_USERNAME=ochorocho,TDK_PATCH_ID=70643/https://github.com/ochorocho/tdk/tree/main
# https://gitpod.io/#TDK_BRANCH=11.5,TDK_PATCH_REF=refs%2Fchanges%2F43%2F70643%2F36,TDK_USERNAME=ochorocho,TDK_PATCH_ID=70643/https://github.com/ochorocho/tdk/tree/feature/add-ssh-command
image: ghcr.io/ochorocho/gitpod-tdk:latest
tasks:
- name: TDK
init: |
cp -Rp .gitpod/vscode .vscode
cp -Rp .gitpod/phpstorm .idea
tdk php "$(php .gitpod/php/version.php)" --no-reload
gp open .gitpod/info.md
composer tdk:clone
composer tdk:checkout
composer install
composer tdk:set-git-config
composer tdk:enable-hooks -- --force
composer tdk:set-commit-template -- --file=./.gitmessage.txt
tdk ssh-add
composer tdk:apply-patch
composer install
mkdir -p config/system/
cp -Rp .gitpod/typo3/AdditionalConfiguration.php config/system/additional.php
command: |
tdk ssh-add
tdk php "$(php .gitpod/php/version.php)"
sudo service mailpit start
sudo service mysql start
sudo service cron start
sleep 5
tdk db create
TYPO3_CONTEXT=Development TYPO3_DB_DRIVER=mysqli TYPO3_DB_USERNAME=db TYPO3_DB_PASSWORD=db TYPO3_DB_PORT=3306 TYPO3_DB_HOST=127.0.0.1 TYPO3_DB_DBNAME=db [email protected] TYPO3_SETUP_ADMIN_USERNAME=admin TYPO3_SETUP_ADMIN_PASSWORD=Password.1 TYPO3_PROJECT_NAME=TYPO3-Dev ./vendor/bin/typo3 setup --server-type=apache --force -n
./vendor/bin/typo3 extension:setup
./vendor/bin/typo3 styleguide:generate frontend --create
sleep 5
mysql -udb -pdb db -e 'update pages SET hidden=0 where tx_styleguide_containsdemo = "tx_styleguide_frontend_root";'
composer tdk:help
echo -e "\n** Backend Login **\nUsername: admin\nPassword: Password.1\n"
tdk preview be
vscode:
extensions:
- felixfbecker.php-debug
- wongjn.php-sniffer
- neilbrayfield.php-docblocker
- bmewburn.vscode-intelephense-client
# @todo: Installing sqltools does not work as expected
# it requires a window reload in some cases
- mtxr.sqltools
- mtxr.sqltools-driver-mysql
ports:
- port: 3306
name: database
onOpen: ignore
- port: 8001
name: apache
onOpen: ignore
- port: 1025
name: mailpit catcher
onOpen: ignore
- port: 8025
name: mailpit
onOpen: ignore
- port: 9003
name: xdebug
description: xdebug
onOpen: ignore