Investigate hosting Treeherder's UI on Netlify
Categories
(Tree Management :: Treeherder: Infrastructure, enhancement, P3)
Tracking
(Not tracked)
People
(Reporter: emorley, Unassigned)
References
(Blocks 1 open bug)
Details
Comment 1•6 years ago
|
||
I poked at this and it doesn't work out of the box.
We will need to use their Docker image and make it think that it is a Yarn project rather than a Python project (the requirements.txt file fools into it):
https://github.com/netlify/build-image
We will probably need to move node specific files under ui/ (or symlink them) and make their build system build from ui/
Comment 2•6 years ago
|
||
You can checkout the netlify
branch if you're interested.
In the branch I moved all Js related files (e.g. .neutrinorc.js
, package.json
under the ui/
directory).
This is because Netlify's Docker image eagerly starts using the Python version from runtime.txt
(It supports 3.6 not 3.7.2) and the requirements.txt
files that are listed and fails to build.
You can see an initial deployment here:
https://5d6ec76f1a2e6460ae23930f--treeherder.netlify.com/#/jobs?repo=autoland
Here are just some notes of what I was trying locally to reproduce the environment (see official docs):
docker pull netlify/build:xenial
./test-tools/start-image.sh treeherder/ui/
# Inside the Docker container
NETLIFY_VERBOSE=true NODE_VERSION=10 NODE_ENV=production ; build yarn build
Description
•