Commit dc2b4da
authored
buildbox-ng: Add node et al to build web UI and Teleport Connect (#57295)
Add node and other required tools to buildbox-ng so it can be used to
build the web UI and Teleport Connect. This allows buildbox-ng to
replace buildbox-node - one fewer buildboxes in the end.
Note that Teleport connect must be built via the top-level Makefile
target `release-connect` as the Makefile sets up the environment for
cross-compiling properly, which is needed by `node-gyp` for building
native code for the target.
`python3` is installed for `node-gyp`.
`binaryen` is installed for `wasm-opt` as `wasm-pack` 0.12.1 cannot
install it on ARM64, so we just install it globally.
`fpm` (via `ruby` `gem`) is installed as `electron-builder` tries to
install a amd64 version on an arm64 host, which fails for obvious
reasons. We set the `USE_SYSTEM_FPM` env var so `electron-builder` uses
this version.
Set `HOME` as node and associated tooling wants to create stuff in there
for caching. We point it to `/tmp/build` as that is already set up as
the base cache directory for the buildbox for when you want to be able
to persist caches across invocations.1 parent 1a0b371 commit dc2b4da
2 files changed
+44
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
| 162 | + | |
162 | 163 | | |
163 | 164 | | |
164 | 165 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
100 | 100 | | |
101 | 101 | | |
102 | 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 | + | |
103 | 127 | | |
104 | 128 | | |
105 | 129 | | |
| |||
138 | 162 | | |
139 | 163 | | |
140 | 164 | | |
| 165 | + | |
141 | 166 | | |
142 | 167 | | |
143 | 168 | | |
| |||
147 | 172 | | |
148 | 173 | | |
149 | 174 | | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
150 | 180 | | |
151 | 181 | | |
152 | 182 | | |
| |||
156 | 186 | | |
157 | 187 | | |
158 | 188 | | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
159 | 197 | | |
160 | 198 | | |
161 | 199 | | |
| |||
170 | 208 | | |
171 | 209 | | |
172 | 210 | | |
| 211 | + | |
173 | 212 | | |
174 | 213 | | |
175 | 214 | | |
| |||
187 | 226 | | |
188 | 227 | | |
189 | 228 | | |
190 | | - | |
| 229 | + | |
191 | 230 | | |
192 | | - | |
| 231 | + | |
193 | 232 | | |
194 | 233 | | |
195 | 234 | | |
| |||
211 | 250 | | |
212 | 251 | | |
213 | 252 | | |
| 253 | + | |
| 254 | + | |
214 | 255 | | |
215 | 256 | | |
216 | 257 | | |
| |||
0 commit comments