This repository has been archived by the owner on May 4, 2019. It is now read-only.
/
install_all.sh
executable file
·62 lines (34 loc) · 1.59 KB
/
install_all.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
#!/bin/sh -ex
_scripts/check.sh
# Set ulimit, need it for npm
ulimit -S -n 2048 || echo "Setting ulimit failed"
# Clone all the projects
git clone https://github.com/mozilla/fxa-content-server.git &
git clone https://github.com/mozilla/fxa-content-server-l10n.git &
git clone https://github.com/mozilla/fxa-js-client.git &
git clone https://github.com/mozilla/fxa-auth-server.git &
git clone https://github.com/mozilla/fxa-auth-db-mysql.git &
git clone https://github.com/mozilla/fxa-customs-server.git &
git clone https://github.com/vladikoff/browserid-verifier.git -b http &
git clone https://github.com/mozilla/fxa-oauth-server.git &
git clone https://github.com/mozilla/fxa-oauth-console.git &
git clone https://github.com/mozilla/fxa-profile-server.git &
git clone https://github.com/mozilla/fxa-basket-proxy.git &
git clone https://github.com/mozilla/123done.git -b oauth &
wait
# Install and Setup all the projects
cd fxa-content-server; npm i --production; npm i; cp server/config/local.json-dist server/config/local.json; cd ..
cd fxa-auth-server; npm i; node ./scripts/gen_keys.js; node ./scripts/gen_vapid_keys.js ; cd ..
cd fxa-auth-db-mysql; npm i; cd ..
# Install a custom http only verifier
cd browserid-verifier; npm i; npm i vladikoff/browserid-local-verify#http; cd ..
cd fxa-oauth-server; npm i; cd ..
cd fxa-profile-server; npm i; mkdir -p var/public/; cd ..
cd fxa-basket-proxy; npm i; cd ..
cd 123done; npm i; cd ..
docker pull memcached
docker pull mozilla/syncserver
docker pull pafortin/goaws
docker pull redis
docker pull mysql/mysql-server:5.6
ln -sf node_modules/.bin/pm2 pm2