-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-matomo-installation.yaml
56 lines (55 loc) · 1.65 KB
/
component-matomo-installation.yaml
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
name: 'Download and expand Matomo'
description: "This component installs Matomo's dependencies and Matomo itself."
schemaVersion: 1.0
parameters:
- MatomoUrl:
type: string
default: 'http://builds.matomo.org/matomo-4.15.1.zip'
description: 'Source of Matomo application archive.'
- MatomoChecksum:
type: string
default: '33389e1286938a8435e11d025efe5fb2f94774b7d9a39df34e36bfd01664a156'
description: 'Matomo archive SHA256 checksum.'
- MatomoArchive:
type: string
default: 'matomo.zip'
description: 'Archive download filename.'
phases:
- name: build
steps:
- name: InstallMatomoDependencies
action: ExecuteBash
onFailure: Abort
maxAttempts: 3
inputs:
commands:
- |
sudo apt-get install -y \
nginx \
mysql-client \
php7.4 \
php7.4-fpm \
php7.4-gd \
php7.4-curl \
php7.4-mysql \
php7.4-xml \
php7.4-mbstring \
php-apcu \
unzip \
zip
- name: DownloadMatomoArchive
action: WebDownload
onFailure: Abort
maxAttempts: 3
inputs:
- source: '{{ MatomoUrl }}'
checksum: '{{ MatomoChecksum }}'
algorithm: SHA256
destination: '{{ MatomoArchive }}'
- name: ExpandMatomoArchive
action: ExecuteBash
onFailure: Abort
maxAttempts: 1
inputs:
commands:
- unzip -qq {{ build.DownloadMatomoArchive.inputs[0].destination }} -d /var/www/html