-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinstall-app.sh
executable file
·67 lines (54 loc) · 1.63 KB
/
install-app.sh
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
#!/bin/bash
set -e
PROJECT_DIR=$1
export HOME=/apps
cd $HOME
git config --global user.email "opensource@sitepark.com"
git config --global user.name "Atoolo e2e test bot"
if [ "${GITHUB_TOKEN}" != "" ]; then
composer config --global github-oauth.github.com ${GITHUB_TOKEN}
fi
symfony new $PROJECT_DIR --version="^7.0"
cd $HOME/$PROJECT_DIR
# symfony-recipes config
composer config extra.symfony.allow-contrib true
composer config --json extra.symfony.endpoint \
'["'\
'https://api.github.com/repos/sitepark/'\
'symfony-recipes/contents/index.json'\
'?ref=flex/main'\
'"]'
composer config --json --merge extra.symfony.endpoint \
'["flex://defaults"]'
# Atoolo runtime config
composer config --json extra.atoolo.runtime \
'{'\
' "ini": {'\
' "set": {'\
' "date.timezone": "Europe/Berlin"'\
' }'\
' },'\
' "umask": "0002",'\
' "users": ['\
' "www-data",'\
' "{SCRIPT_OWNER}"'\
' ]'\
'}'
composer config minimum-stability dev
composer config platform-check true
# install toolo suite
composer config --no-plugins allow-plugins.atoolo/runtime true
composer require --no-interaction \
atoolo/runtime:dev-main \
atoolo/runtime-check-bundle:dev-main \
atoolo/deployment-bundle:dev-main \
atoolo/resource-bundle:dev-main \
atoolo/search-bundle:dev-main \
atoolo/citygov-bundle:dev-main \
atoolo/citycall-bundle:dev-main \
atoolo/events-calendar-bundle:dev-main \
atoolo/graphql-search-bundle:dev-main \
atoolo/security-bundle:dev-main \
atoolo/form-bundle:dev-feature/initial-implementation \
symfony/monolog-bundle
./bin/console lexik:jwt:generate-keypair