-
Notifications
You must be signed in to change notification settings - Fork 19
/
provision.sh
executable file
·628 lines (538 loc) · 20.4 KB
/
provision.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
#!/bin/bash
#
# provision.sh
#
# This file is specified in Vagrantfile and is loaded by Vagrant as the primary
# provisioning script whenever the commands `vagrant up`, `vagrant provision`,
# or `vagrant reload` are used. It provides all of the default packages and
# configurations included with Varying Vagrant Vagrants.
# By storing the date now, we can calculate the duration of provisioning at the
# end of this script.
start_seconds="$(date +%s)"
# PACKAGE INSTALLATION
#
# Build a bash array to pass all of the packages we want to install to a single
# apt-get command. This avoids doing all the leg work each time a package is
# set to install. It also allows us to easily comment out or add single
# packages. We set the array as empty to begin with so that we can append
# individual packages to it as required.
apt_package_install_list=()
# Start with a bash array containing all packages we want to install in the
# virtual machine. We'll then loop through each of these and check individual
# status before adding them to the apt_package_install_list array.
apt_package_check_list=(
# copied from https://github.com/civicrm/civicrm-buildkit/blob/master/bin/civi-download-tools#L259
# acl - seems not so required in later versions
git
wget
mysql-server
mysql-client-core-5.7
php7.2-cli
php7.2-imap
php7.2-ldap
php7.2-curl
php7.2-mysql
php7.2-intl
php7.2-gd
php-xdebug
php7.2-xml
php7.2-mbstring
php7.2-bcmath
php7.2-soap
php7.2-zip
php-imagick
php-apcu
apache2
libapache2-mod-php7.2
phantomjs
ruby
ruby-dev
rake
# other packages that come in handy
imagemagick
git-core
zip
unzip
ngrep
curl
make
vim
colordiff
patch
postfix
php-pear
php7.2-dev
libcurl3-openssl-dev
# dnsmasq to redirect *.test to locahost
#dnsmasq
# ntp service to keep clock current
ntp
# Req'd for i18n tools
gettext
# Req'd for Webgrind
graphviz
# dos2unix
# Allows conversion of DOS style line endings to something we'll have less
# trouble with in Linux.
dos2unix
#Mailcatcher requirement
libsqlite3-dev
# mkdocs
python-pip
python-wheel
python-dev
)
### FUNCTIONS
network_detection() {
# Network Detection
#
# Make an HTTP request to google.com to determine if outside access is available
# to us. If 3 attempts with a timeout of 5 seconds are not successful, then we'll
# skip a few things further in provisioning rather than create a bunch of errors.
if [[ "$(wget --tries=3 --timeout=5 --spider http://google.com 2>&1 | grep 'connected')" ]]; then
echo "Network connection detected..."
ping_result="Connected"
else
echo "Network connection not detected. Unable to reach google.com..."
ping_result="Not Connected"
fi
}
phpmyadmin_available() {
# Check if files.phpmyadmin.net is available
#
# Make an HTTP request to files.phpmyadmin.net to determine if outside access is available
# to us. If 3 attempts with a timeout of 5 seconds are not successful, then we'll
# add a dns entry to google's dns 8.8.8.8
if [[ "$(wget --tries=3 --timeout=5 --spider http://files.phpmyadmin.net 2>&1 | grep 'connected')" ]]; then
echo "Network working to phpmyadmin host"
myphpadmin_result="Connected without change"
else
echo "Full connection not detected. Unable to reach files.phpmyadmin.net..."
echo "nameserver 8.8.8.8" >> /etc/resolv.conf
echo "resolver updated"
phpmyadmin_result="resolver update"
fi
}
network_check() {
network_detection
if [[ ! "$ping_result" == "Connected" ]]; then
echo -e "\nNo network connection available, skipping package installation"
exit 0
fi
}
noroot() {
sudo -EH -u "vagrant" "$@";
}
profile_setup() {
# Copy custom dotfiles and bin file for the vagrant user from local
cp "/srv/config/bash_profile" "/home/vagrant/.bash_profile"
cp "/srv/config/bash_aliases" "/home/vagrant/.bash_aliases"
cp "/srv/config/vimrc" "/home/vagrant/.vimrc"
if [[ ! -d "/home/vagrant/bin" ]]; then
mkdir "/home/vagrant/bin"
fi
rsync -rvzh --delete "/srv/config/homebin/" "/home/vagrant/bin/"
echo " * Copied /srv/config/bash_profile to /home/vagrant/.bash_profile"
echo " * Copied /srv/config/bash_aliases to /home/vagrant/.bash_aliases"
echo " * Copied /srv/config/vimrc to /home/vagrant/.vimrc"
echo " * rsync'd /srv/config/homebin to /home/vagrant/bin"
# If a bash_prompt file exists in the cividev config/ directory, copy to the VM.
if [[ -f "/srv/config/bash_prompt" ]]; then
cp "/srv/config/bash_prompt" "/home/vagrant/.bash_prompt"
echo " * Copied /srv/config/bash_prompt to /home/vagrant/.bash_prompt"
fi
# Make vagrant own vagrant's files, otherwise you can't edit ~/.bash_profile etc.
chown -R vagrant: ~vagrant/
}
package_check() {
# Loop through each of our packages that should be installed on the system. If
# not yet installed, it should be added to the array of packages to install.
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:ondrej/php
sudo apt-get update -y
local pkg
local package_version
for pkg in "${apt_package_check_list[@]}"; do
package_version=$(dpkg -s "${pkg}" 2>&1 | grep 'Version:' | cut -d " " -f 2)
if [[ -n "${package_version}" ]]; then
space_count="$(expr 20 - "${#pkg}")" #11
pack_space_count="$(expr 30 - "${#package_version}")"
real_space="$(expr ${space_count} + ${pack_space_count} + ${#package_version})"
printf " * $pkg %${real_space}.${#package_version}s ${package_version}\n"
else
echo " *" $pkg [not installed]
apt_package_install_list+=($pkg)
fi
done
}
package_install() {
package_check
# dnsmasq configuration
#echo "address=/dev/127.1.0.1" >> /etc/dnsmasq.conf
#service dnsmasq restart
# MySQL
#
# Use debconf-set-selections to specify the default password for the root MySQL
# account. This runs on every provision, even if MySQL has been installed. If
# MySQL is already installed, it will not affect anything.
echo mysql-server mysql-server/root_password password "root" | debconf-set-selections
echo mysql-server mysql-server/root_password_again password "root" | debconf-set-selections
# Postfix
#
# Use debconf-set-selections to specify the selections in the postfix setup. Set
# up as an 'Internet Site' with the host name 'civi.test'. Note that if your current
# Internet connection does not allow communication over port 25, you will not be
# able to send mail, even with postfix installed.
echo postfix postfix/main_mailer_type select Internet Site | debconf-set-selections
echo postfix postfix/mailname string civi.test | debconf-set-selections
# Disable ipv6 as some ISPs/mail servers have problems with it
echo "inet_protocols = ipv4" >> "/etc/postfix/main.cf"
if [[ ${#apt_package_install_list[@]} = 0 ]]; then
echo -e "No apt packages to install.\n"
else
# Update all of the package references before installing anything
echo "Running apt-get update..."
apt-get update -y
# Install required packages
echo "Installing apt-get packages..."
apt-get install -y ${apt_package_install_list[@]}
# Clean up apt caches
apt-get clean
fi
}
tools_install() {
# npm
#
# nodejs
# Install suported version of nodejs
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
# xdebug
#
# XDebug 2.2.3 is provided with the Ubuntu install by default. The PECL
# installation allows us to use a later version. Not specifying a version
# will load the latest stable.
pecl install xdebug
# COMPOSER
#
# Install Composer if it is not yet available.
if [[ ! -n "$(composer --version --no-ansi | grep 'Composer version')" ]]; then
echo "Installing Composer..."
curl -sS "https://getcomposer.org/installer" | php
chmod +x "composer.phar"
mv "composer.phar" "/usr/local/bin/composer"
fi
if [[ -f /vagrant/provision/github.token ]]; then
ghtoken=`cat /vagrant/provision/github.token`
composer config --global github-oauth.github.com $ghtoken
echo "Your personal GitHub token is set for Composer."
fi
# Update both Composer and any global packages. Updates to Composer are direct from
# the master branch on its GitHub repository.
if [[ -n "$(composer --version --no-ansi | grep 'Composer version')" ]]; then
echo "Updating Composer..."
COMPOSER_HOME=/usr/local/src/composer composer self-update
COMPOSER_HOME=/usr/local/src/composer composer -q global require --no-update phpunit/phpunit:>4.0
COMPOSER_HOME=/usr/local/src/composer composer -q global require --no-update phpunit/php-invoker:1.1.*
COMPOSER_HOME=/usr/local/src/composer composer -q global require --no-update mockery/mockery:0.9.*
COMPOSER_HOME=/usr/local/src/composer composer -q global require --no-update d11wtq/boris:v1.0.8
COMPOSER_HOME=/usr/local/src/composer composer -q global config bin-dir /usr/local/bin
COMPOSER_HOME=/usr/local/src/composer composer global update
fi
# Graphviz
#
# Set up a symlink between the Graphviz path defined in the default Webgrind
# config and actual path.
echo "Adding graphviz symlink for Webgrind..."
ln -sf "/usr/bin/dot" "/usr/local/bin/dot"
}
apache2_setup() {
# Apache
#
# Set the default hostname
cp "/srv/config/apache2-config/conf/localhost.conf" "/etc/apache2/conf-available/"
a2enconf localhost
if [[ ! -d "/srv/www/default" ]]; then
mkdir "/srv/www/default"
fi
if [[ ! -d "/srv/www/default/phpinfo" ]]; then
mkdir "/srv/www/default/phpinfo"
fi
cp -a "/srv/config/cividev-config/index.php" "/srv/www/default/"
cp -aR "/srv/config/cividev-config/phpinfo/" "/srv/www/default/phpinfo/index.php"
cp "/srv/config/apache2-config/conf/civi.test.conf" "/etc/apache2/conf-available/"
a2enconf civi.test
# Essential modules
a2enmod rewrite
a2enmod ssl
# PHP packages that need extra setup
phpenmod imap
# Restart Apache
apache2ctl restart
}
mysql_setup() {
# If MySQL is installed, go through the various imports and service tasks.
local exists_mysql
exists_mysql="$(service mysql status)"
if [[ "mysql: unrecognized service" != "${exists_mysql}" ]]; then
echo -e "\nSetup MySQL configuration file links..."
# Copy mysql configuration from local
cp "/srv/config/mysql-config/my.cnf" "/etc/mysql/my.cnf"
cp "/srv/config/mysql-config/root-my.cnf" "/home/vagrant/.my.cnf"
echo " * Copied /srv/config/mysql-config/my.cnf to /etc/mysql/my.cnf"
echo " * Copied /srv/config/mysql-config/root-my.cnf to /home/vagrant/.my.cnf"
# MySQL gives us an error if we restart a non running service, which
# happens after a `vagrant halt`. Check to see if it's running before
# deciding whether to start or restart.
if [[ "mysql stop/waiting" == "${exists_mysql}" ]]; then
echo "service mysql start"
service mysql start
else
echo "service mysql restart"
service mysql restart
fi
# IMPORT SQL
#
# Create the databases (unique to system) that will be imported with
# the mysqldump files located in database/backups/
if [[ -f "/srv/database/init-custom.sql" ]]; then
mysql -u "root" -p"root" < "/srv/database/init-custom.sql"
echo -e "\nInitial custom MySQL scripting..."
else
echo -e "\nNo custom MySQL scripting found in database/init-custom.sql, skipping..."
fi
# Setup MySQL by importing an init file that creates necessary
# users and databases that our vagrant setup relies on.
mysql -u "root" -p"root" < "/srv/database/init.sql"
echo "Initial MySQL prep..."
# Process each mysqldump SQL file in database/backups to import
# an initial data set for MySQL.
"/srv/database/import-sql.sh"
else
echo -e "\nMySQL is not installed. No databases imported."
fi
}
mailcatcher_setup_gem() {
# Install dependencies
# Install the gem
gem install mime-types --version "< 3"
gem install mailcatcher --conservative
# Make it start on boot
cp "/srv/config/init/mailcatcher-gem.conf" "/etc/init/mailcatcher.conf"
# Make php use it to send mail
cp "/srv/config/php-fpm-config/mailcatcher-gem.ini" "/etc/php/7.2/mods-available/mailcatcher.ini"
# Notify php mod manager (5.5+)
sudo phpenmod mailcatcher
# Start it now
/usr/bin/env $(which mailcatcher) --ip=0.0.0.0
}
mailcatcher_setup() {
# Mailcatcher
#
# Installs mailcatcher using RVM. RVM allows us to install the
# current version of ruby and all mailcatcher dependencies reliably.
local pkg
rvm_version="$(/usr/bin/env rvm --silent --version 2>&1 | grep 'rvm ' | cut -d " " -f 2)"
if [[ -n "${rvm_version}" ]]; then
pkg="RVM"
space_count="$(( 20 - ${#pkg}))" #11
pack_space_count="$(( 30 - ${#rvm_version}))"
real_space="$(( ${space_count} + ${pack_space_count} + ${#rvm_version}))"
printf " * $pkg %${real_space}.${#rvm_version}s ${rvm_version}\n"
else
# RVM key D39DC0E3
# Signatures introduced in 1.26.0
gpg -q --no-tty --batch --keyserver "hkp://keyserver.ubuntu.com:80" --recv-keys D39DC0E3
gpg -q --no-tty --batch --keyserver "hkp://keyserver.ubuntu.com:80" --recv-keys BF04FF17
gpg -q --no-tty --batch --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
printf " * RVM [not installed]\n Installing from source"
curl --silent -L "https://get.rvm.io" | sudo bash -s stable --ruby
source "/usr/local/rvm/scripts/rvm"
fi
mailcatcher_version="$(/usr/bin/env mailcatcher --version 2>&1 | grep 'mailcatcher ' | cut -d " " -f 2)"
if [[ -n "${mailcatcher_version}" ]]; then
pkg="Mailcatcher"
space_count="$(( 20 - ${#pkg}))" #11
pack_space_count="$(( 30 - ${#mailcatcher_version}))"
real_space="$(( ${space_count} + ${pack_space_count} + ${#mailcatcher_version}))"
printf " * $pkg %${real_space}.${#mailcatcher_version}s ${mailcatcher_version}\n"
else
echo " * Mailcatcher [not installed]"
/usr/bin/env rvm default@mailcatcher --create do gem install mailcatcher --no-rdoc --no-ri
/usr/bin/env rvm wrapper default@mailcatcher --no-prefix mailcatcher catchmail
fi
if [[ -f "/etc/init/mailcatcher.conf" ]]; then
echo " *" Mailcatcher upstart already configured.
else
cp "/srv/config/init/mailcatcher.conf" "/etc/init/mailcatcher.conf"
echo " * Copied /srv/config/init/mailcatcher.conf to /etc/init/mailcatcher.conf"
fi
if [[ -f "/etc/php7.2/mods-available/mailcatcher.ini" ]]; then
echo " *" Mailcatcher php7 already configured.
else
cp "/srv/config/php-fpm-config/mailcatcher.ini" "/etc/php7.2/mods-available/mailcatcher.ini"
echo " * Copied /srv/config/php-fpm-config/mailcatcher.ini to /etc/php7.2/mods-available/mailcatcher.ini"
fi
}
services_install() {
# Used to ensure proper services are started on `vagrant up`
cp "/srv/config/init/cividev-start.conf" "/etc/init/cividev-start.conf"
echo " * Copied /srv/config/init/cividev-start.conf to /etc/init/cividev-start.conf"
}
services_restart() {
# RESTART SERVICES
#
# Make sure the services we expect to be running are running.
echo -e "\nRestart services..."
service memcached restart
service mailcatcher restart
# Enable PHP mailcatcher sendmail settings by default
sudo phpenmod mailcatcher
# Add the vagrant user to the www-data group so that it has better access
# to PHP and Nginx related files.
usermod -a -G www-data vagrant
}
memcached_admin() {
# Download and extract phpMemcachedAdmin to provide a dashboard view and
# admin interface to the goings on of memcached when running
if [[ ! -d "/srv/www/default/memcached-admin" ]]; then
echo -e "\nDownloading phpMemcachedAdmin, see https://github.com/wp-cloud/phpmemcacheadmin"
cd /srv/www/default
wget -q -O phpmemcachedadmin.tar.gz "https://github.com/wp-cloud/phpmemcacheadmin/archive/1.2.2.1.tar.gz"
tar -xf phpmemcachedadmin.tar.gz
mv phpmemcacheadmin* memcached-admin
rm phpmemcachedadmin.tar.gz
else
echo "phpMemcachedAdmin already installed."
fi
}
opcached_status(){
# Checkout Opcache Status to provide a dashboard for viewing statistics
# about PHP's built in opcache.
if [[ ! -d "/srv/www/default/opcache-status" ]]; then
echo -e "\nDownloading Opcache Status, see https://github.com/rlerdorf/opcache-status/"
cd /srv/www/default
git clone "https://github.com/rlerdorf/opcache-status.git" opcache-status
else
echo -e "\nUpdating Opcache Status"
cd /srv/www/default/opcache-status
git pull --rebase origin master
fi
}
webgrind_install() {
# Webgrind install (for viewing callgrind/cachegrind files produced by
# xdebug profiler)
if [[ ! -d "/srv/www/default/webgrind" ]]; then
echo -e "\nDownloading webgrind, see https://github.com/michaelschiller/webgrind.git"
git clone "https://github.com/michaelschiller/webgrind.git" "/srv/www/default/webgrind"
else
echo -e "\nUpdating webgrind..."
cd /srv/www/default/webgrind
git pull --rebase origin master
fi
}
php_codesniff() {
# PHP_CodeSniffer (for running WordPress-Coding-Standards)
if [[ ! -d "/srv/www/phpcs" ]]; then
echo -e "\nDownloading PHP_CodeSniffer (phpcs), see https://github.com/squizlabs/PHP_CodeSniffer"
git clone -b master "https://github.com/squizlabs/PHP_CodeSniffer.git" "/srv/www/phpcs"
else
cd /srv/www/phpcs
if [[ $(git rev-parse --abbrev-ref HEAD) == 'master' ]]; then
echo -e "\nUpdating PHP_CodeSniffer (phpcs)..."
git pull --no-edit origin master
else
echo -e "\nSkipped updating PHP_CodeSniffer since not on master branch"
fi
fi
# Sniffs WordPress Coding Standards
if [[ ! -d "/srv/www/phpcs/CodeSniffer/Standards/WordPress" ]]; then
echo -e "\nDownloading WordPress-Coding-Standards, sniffs for PHP_CodeSniffer, see https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards"
git clone -b master "https://github.com/WordPress-Coding-Standards/WordPress-Coding-Standards.git" "/srv/www/phpcs/CodeSniffer/Standards/WordPress"
else
cd /srv/www/phpcs/CodeSniffer/Standards/WordPress
if [[ $(git rev-parse --abbrev-ref HEAD) == 'master' ]]; then
echo -e "\nUpdating PHP_CodeSniffer WordPress Coding Standards..."
git pull --no-edit origin master
else
echo -e "\nSkipped updating PHPCS WordPress Coding Standards since not on master branch"
fi
fi
# Install the standards in PHPCS
/srv/www/phpcs/scripts/phpcs --config-set installed_paths ./CodeSniffer/Standards/WordPress/
/srv/www/phpcs/scripts/phpcs --config-set default_standard WordPress-Core
/srv/www/phpcs/scripts/phpcs -i
}
phpmyadmin_setup() {
# Download phpMyAdmin
if [[ ! -d /srv/www/default/database-admin ]]; then
echo "Downloading phpMyAdmin..."
cd /srv/www/default
wget -q -O phpmyadmin.tar.gz "https://files.phpmyadmin.net/phpMyAdmin/4.4.10/phpMyAdmin-4.4.10-all-languages.tar.gz"
tar -xf phpmyadmin.tar.gz
mv phpMyAdmin-4.4.10-all-languages database-admin
rm phpmyadmin.tar.gz
else
echo "PHPMyAdmin already installed."
fi
cp "/srv/config/phpmyadmin-config/config.inc.php" "/srv/www/default/database-admin/"
}
mkdocs_setup() {
# Download mkdocs
sudo pip install mkdocs mkdocs-material pygments pymdown-extensions
}
git_setup() {
## Git repos in shared folders have wonky permissions.
git config --system core.filemode false
}
buildkit() {
sudo -H -u vagrant /home/vagrant/bin/buildkit_init
}
### SCRIPT
#set -xv
network_check
phpmyadmin_available
# Profile_setup
echo "Bash profile setup and directories."
profile_setup
network_check
# Package and Tools Install
echo " "
echo "Main packages check and install."
package_install
apache2_setup
tools_install
#mailcatcher_setup
mailcatcher_setup_gem
services_install
services_restart
mysql_setup
network_check
# development and debugging tools
echo " "
echo "Installing/updating debugging tools"
memcached_admin
opcached_status
webgrind_install
php_codesniff
phpmyadmin_setup
mkdocs_setup
network_check
echo " "
echo "Configuring git"
git_setup
# Time for buildkit!
echo " "
echo "Installing/updating buildkit and default sites"
buildkit
#set +xv
# And it's done
end_seconds="$(date +%s)"
echo "-----------------------------"
echo "Provisioning complete in "$((${end_seconds} - ${start_seconds}))" seconds"
echo "For further setup instructions, visit:"
echo "- CiviCRM docs & guides at https://docs.civicrm.org"
echo "- Developer guide: https://docs.civicrm.org/dev/en/latest/"
echo "- This set of tools: https://docs.civicrm.org/dev/en/latest/tools/buildkit/"
echo "- CiviCRM Chat: https://chat.civicrm.org/"
echo "- CiviCRM Q&A: https://civicrm.stackexchange.com/"