WMF scap deploy repository for turnilo.
This repository contains a simple package.json file that specifices turnilo as a dependency. This version in package.json should match the turnilo version.
To ensure you have the right versions, a Dockerfile is included. Use it as follows. First, update the turnilo-deploy version in package.json and the dependency turnilo version. Then, build a docker image and tag it with that version; the docker run will run the npm install
.
export DEPLOY_TURNILO_VERSION=$(jq -r .version package.json) docker build . -t wikimedia-deploy-turnilo:$DEPLOY_TURNILO_VERSION docker run --volume $(pwd)/node_modules:/app/node_modules wikimedia-deploy-turnilo:$DEPLOY_TURNILO_VERSION
Then add node_modules
and commit your changes, and git-review
to create a patch on https://gerrit.wikimedia.org/g/analytics/turnilo/deploy
. Note that you may have configured git to ignore node_modules
globally; if you're only seeing modifications and nothing added or removed, you'll have to git add --force node_modules
.
If you don't use docker, you must run npm install on the same OS and nodejs major version that Turnilo runs on. For example, at the time of writing we run Turnilo on Debian Buster; see package.json under engines
for node version.
One course of action is to create a Stretch VM and install nodejs/npm via the official repositories (Debian Stretch in fact does not include npm due to difficulties in packaging all the dependencies, see https://packages.qa.debian.org/n/npm.html).
If you're not using the docker image, update the turnilo version in package.json, the turnilo-deploy package version, run rm -r node_modules && npm install
and commit the results.