| author | Vincent Tondellier <tonton+hg@team1664.org> |
| Sat, 31 Dec 2016 20:34:01 +0100 | |
| changeset 126 | 01078f0097b3 |
| parent 125 | c019ceb604a4 |
| permissions | -rw-r--r-- |
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
1 |
=head1 INSTALLATION |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
2 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
3 |
=head2 Compile breakpad and stackwalker from Socorro |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
4 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
5 |
Install system packages: |
|
51
2894d97715c9
Update install instructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
15
diff
changeset
|
6 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
7 |
apt install build-essential libjsoncpp-dev libcurl4-openssl-dev git wget python pkg-config |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
8 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
9 |
Get and build breakpad: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
10 |
L<https://chromium.googlesource.com/breakpad/breakpad> |
|
51
2894d97715c9
Update install instructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
15
diff
changeset
|
11 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
12 |
Get and build the json minidump-stackwalk from soccoro: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
13 |
L<https://github.com/mozilla/socorro/tree/master/minidump-stackwalk/> |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
14 |
|
|
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
15 |
Full compilation instructions: |
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
16 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
17 |
mkdir breakpad-stackwalker && cd breakpad-stackwalker |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
18 |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
19 |
export PATH="$PWD/depot_tools:$PATH" |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
20 |
fetch breakpad |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
21 |
mkdir obj-breakpad && cd obj-breakpad |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
22 |
../src/configure |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
23 |
make |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
24 |
cd ../ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
25 |
mkdir minidump-stackwalk && cd minidump-stackwalk |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
26 |
wget https://github.com/mozilla/socorro/raw/master/minidump-stackwalk/{Makefile,stackwalker.cc,http_symbol_supplier.cc,http_symbol_supplier.h,common.h}
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
27 |
make stackwalker \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
28 |
BREAKPAD_SRCDIR=../src/src \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
29 |
BREAKPAD_LIBS="../obj-breakpad/src/libbreakpad.a ../obj-breakpad/src/third_party/libdisasm/libdisasm.a" \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
30 |
JSON_INCLUDEDIR=/usr/include/jsoncpp \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
31 |
stackwalker_OBJS="/usr/lib/libjsoncpp.so" |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
32 |
|
|
51
2894d97715c9
Update install instructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
15
diff
changeset
|
33 |
|
|
2894d97715c9
Update install instructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
15
diff
changeset
|
34 |
Note: the paths above are for the system-installed libjsoncpp on debian. Get |
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
35 |
jsoncpp from socorro repository, or adjust the paths for you system if you |
|
51
2894d97715c9
Update install instructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
15
diff
changeset
|
36 |
use another distribution. |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
37 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
38 |
=head2 Web Interface installation |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
39 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
40 |
=head3 Install system packages (Debian) |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
41 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
42 |
Install direct dependencies: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
43 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
44 |
apt install libjs-jquery libuuid-perl libdata-page-perl libdatetime-format-pg-perl \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
45 |
libsearch-queryparser-perl libdbi-perl libdbd-pg-perl libpq-dev |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
46 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
47 |
and indirect dependencies: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
48 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
49 |
apt install cpanminus libextutils-installpaths-perl libfile-sharedir-perl libfile-sharedir-install-perl \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
50 |
libextutils-helpers-perl libmodule-build-cleaninstall-perl \ |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
51 |
libmojolicious-plugin-i18n-perl libdata-dump-perl |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
52 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
53 |
If your system is recent enough (Debian jessie is too old), also install: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
54 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
55 |
apt install libmojolicious-perl libminion-perl libmojo-pg-perl |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
56 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
57 |
Or use carton (Bundler for perl), if you prefer to bundle dependencies: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
58 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
59 |
apt install carton uuid-dev |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
60 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
61 |
=head3 Install the web interface |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
62 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
63 |
tar -xf CrashTest-$VERSION.tar.gz |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
64 |
cd CrashTest-$VERSION |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
65 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
66 |
use cpanm to install missing perl dependencies: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
67 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
68 |
cpanm Minion@4.0 . |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
69 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
70 |
or carton to vendorize half of CPAN: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
71 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
72 |
carton install |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
73 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
74 |
=head3 Database |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
75 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
76 |
Install PostgreSQL (PostgreSQL E<gt>= 9.4 is required): |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
77 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
78 |
apt install postgresql postgresql-contrib postgresql-9.4-debversion |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
79 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
80 |
Create the user and database: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
81 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
82 |
su postgres |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
83 |
psql |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
84 |
CREATE USER crashtest LOGIN; |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
85 |
CREATE DATABASE crashtest OWNER crashtest; |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
86 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
87 |
Add PostgreSQL extensions to the database: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
88 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
89 |
\c crashtest |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
90 |
CREATE EXTENSION pg_trgm; |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
91 |
CREATE EXTENSION debversion; |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
92 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
93 |
debversion is not required, but is really useful to sort and filter on product versions |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
94 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
95 |
=head2 Configuration |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
96 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
97 |
Copy the example crash_test.conf from F<extras/> and edit: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
98 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
99 |
cp extras/crash_test.conf . |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
100 |
vim crash_test.conf |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
101 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
102 |
It's a perl file, so you can check the syntax with: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
103 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
104 |
perl -c crash_test.conf |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
105 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
106 |
Some things to change: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
107 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
108 |
=over |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
109 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
110 |
=item Database |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
111 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
112 |
Adjust your database connection string in C<Processor/JobQueue/Backend/Minion> and C<Storage/Sql/db>. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
113 |
The database can be shared by the JobQueue and Storage. |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
114 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
115 |
=item stackwalker path |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
116 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
117 |
If you did not install stackwalker in your $PATH, adjust C<Processor/CrashProcessor/Breakpad/JSONStackwalker> |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
118 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
119 |
=item Breakpad symbols directories |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
120 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
121 |
Set the paths where you store you breakpad symbols in C<Processor/CrashProcessor/Breakpad/SymbolsPath>. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
122 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
123 |
SECURITY WARNING: this will be shell-expanded using C<system()>, don't use wildcards if you do not trust |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
124 |
the users that have write permissions on these directories. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
125 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
126 |
=item Storage directory |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
127 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
128 |
Adjust C<Storage/File> or comment the section if you don't want to store the raw minidumps. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
129 |
Processed crashs are also stored in the database. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
130 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
131 |
=item Web links |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
132 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
133 |
You can link to your source code browser (this require post-processing of the symbol files), |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
134 |
see C<WebInterface/ScmLinks>. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
135 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
136 |
It's a C<Mojo::Template> with the 3 variables C<$scmpath>, C<$rev> and C<$line> defined. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
137 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
138 |
You can also add links to your bugtracker (C<WebInterface/BugTrackerLinks>), but there is no interface |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
139 |
to edit them yet. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
140 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
141 |
=back |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
142 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
143 |
=head2 Create database structure |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
144 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
145 |
Run: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
146 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
147 |
CrashTest db create |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
148 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
149 |
or with carton: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
150 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
151 |
carton exec CrashTest db create |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
152 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
153 |
If you have installed the debversion PostgreSQL extension, use it: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
154 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
155 |
psql |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
156 |
ALTER TABLE products ALTER version TYPE debversion; |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
157 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
158 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
159 |
=head1 RUNNING |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
160 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
161 |
=head2 Manually (for testing) |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
162 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
163 |
Start the background workers |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
164 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
165 |
CrashTest minion worker |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
166 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
167 |
Start the web interface |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
168 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
169 |
CrashTest daemon |
|
13
b5d8f0f977aa
Add install instruction
Vincent Tondellier <tonton+hg@team1664.org>
parents:
diff
changeset
|
170 |
|
|
125
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
171 |
=head2 Production (services) |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
172 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
173 |
In the F<extras/> directory, you will find: |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
174 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
175 |
=over |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
176 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
177 |
=item F<crash_test.production.conf> |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
178 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
179 |
A config file with production settings for hypnotoad. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
180 |
Copy to the same location as F<crash_test.conf>, F</etc/crashtest/> for a system-wide install. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
181 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
182 |
=item F<crashtest.nginx.conf> |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
183 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
184 |
Config file for nginx. Usually in F</etc/nginx/sites-enabled/>. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
185 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
186 |
=item F<systemd/*.service> |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
187 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
188 |
Systemd services for the workers and the web interface. Usually in F</etc/systemd/system/>. |
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
189 |
|
|
c019ceb604a4
Refresh install intructions
Vincent Tondellier <tonton+hg@team1664.org>
parents:
51
diff
changeset
|
190 |
=back |