Clone this repo:

Branches

  1. 51da050 Fix turnilo after upgrade. Upgrade to vesion 1.38.2 by stevemunene · 1 year, 5 months ago master
  2. c126c3c Make an-tool1011.eqiad.wmnet the new turnilo staging by Razzi Abuissa · 2 years ago
  3. 5983f14 Upgrade to upstream version 1.35.0 by Razzi Abuissa · 2 years, 1 month ago
  4. 052348b Upgrade to upstream version 1.29.0 by Dan Andreescu · 3 years, 3 months ago
  5. 334627e Upgrade to upstream version 1.27.0 by Luca Toscano · 3 years, 6 months ago

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.