Browse Source

Document js tool installation in scratch doc

We need the js tools to be present so that zuul from scratch install
docs produce a working javascript build. Add a step to that process to
run our helper script for js toolchain install.

Note this adds support for opensuse to that script as opensuse is a
valid from scratch install target.

Change-Id: I4c3584957f7a4afaeb0315a57d56f93e915eace1
tags/3.10.2
Clark Boylan 3 weeks ago
parent
commit
e91e89b2cf
2 changed files with 6 additions and 0 deletions
  1. 3
    0
      doc/source/admin/zuul_install.rst
  2. 3
    0
      tools/install-js-tools.sh

+ 3
- 0
doc/source/admin/zuul_install.rst View File

@@ -41,6 +41,9 @@ required.
41 41
    # For openSUSE:
42 42
    $ zypper install -y $(bindep -b compile)
43 43
 
44
+   # All:
45
+   $ tools/install-js-tools.sh
46
+
44 47
    # All:
45 48
    $ sudo pip3 install .
46 49
    $ sudo zuul-manage-ansible

+ 3
- 0
tools/install-js-tools.sh View File

@@ -37,6 +37,9 @@ elif type yum; then
37 37
     $SUDO curl https://dl.yarnpkg.com/rpm/yarn.repo -o /etc/yum.repos.d/yarn.repo
38 38
     $SUDO $(dirname $0)/install-js-repos-rpm.sh
39 39
     $SUDO yum -y install nodejs yarn
40
+elif type zypper; then
41
+    $SUDO zypper install -y nodejs10 npm10
42
+    $SUDO npm install yarn
40 43
 elif type brew; then
41 44
     brew install nodejs yarn
42 45
 else

Loading…
Cancel
Save