-
Notifications
You must be signed in to change notification settings - Fork 6
/
cow-setup.sh
executable file
·142 lines (134 loc) · 7.53 KB
/
cow-setup.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
#!/bin/bash -x
#
# This script is called by cowbuilder.
#
set -e
cat << 'EOF' > /etc/apt/apt.conf.d/00proxy
Acquire::http { Proxy "http://127.0.0.1:3142"; };
EOF
cat << 'EOF' > /etc/apt/sources.list
deb http://127.0.0.1:3142/deb.debian.org/debian stretch main contrib non-free
deb-src http://127.0.0.1:3142/deb.debian.org/debian stretch main contrib non-free
## Security updates
deb http://127.0.0.1:3142/deb.debian.org/debian-security stretch/updates main contrib non-free
deb-src http://127.0.0.1:3142/deb.debian.org/debian-security stretch/updates main contrib non-free
EOF
apt update -y
apt -y install gnupg2 ca-certificates
# Add subgraph repo to the cow
cat << EOF > /etc/apt/sources.list.d/subgraph.list
deb http://127.0.0.1:3142/devrepo.subgraph.com/subgraph aaron main
EOF
cat << EOF > /tmp/subgraph-apt-key.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
mQINBFb7EwUBEAC+3OgLf6jMkORLm3qCpOng4KqG8ZRda0tNJCJqk5MYyr1BxRKW
FmCZPq5zXRyk/2ZjnHNHlYfK0RZ0C2gCm3kgIMXORaAmmexoIJcagDlbCugxraw6
DzK8cHhmCn6IRFM+KBs63dm5wEPD7wb+XUa23oW+dexYcMyompvTlI0hjpjubIGy
rzzg4ciAVPfTmFleSwZoF6dPmyQSTgdR19qszqrPdRpPg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wv
-----END PGP PUBLIC KEY BLOCK-----
EOF
apt-key add /tmp/subgraph-apt-key.asc
rm /tmp/subgraph-apt-key.asc
apt update
apt dist-upgrade -y
apt clean