Note that the locally hosted binary installs need the tag in the URL

This commit is contained in:
Christopher Jones 2017-11-19 11:04:07 +11:00
parent d18b4da694
commit 252acceed1
2 changed files with 13 additions and 11 deletions

View File

@ -19,11 +19,10 @@ PAT=$(shell grep '\#define \+NJS_NODE_ORACLEDB_PATCH' ../src/njsOracle.h | sed -
VER=$(MAJ).$(MIN).$(PAT)
# The staging-oracledb-X.Y.Z.tgz package will try to download binaries from
# https://$NODE_ORACLEDB_PACKAGE_HOSTNAME/$NODE_ORACLEDB_PACKAGE_URL_PATH/
# https://$NODE_ORACLEDB_PACKAGE_HOSTNAME/$NODE_ORACLEDB_PACKAGE_URL_PATH/vX.Y.Z/
ifndef NODE_ORACLEDB_PACKAGE_HOSTNAME
NODE_ORACLEDB_PACKAGE_HOSTNAME='your-staging-server.example.com'
endif
ifndef NODE_ORACLEDB_PACKAGE_URL_PATH
NODE_ORACLEDB_PACKAGE_URL_PATH='/your-url-path-to-directory/'
endif

View File

@ -70,21 +70,24 @@ Installation is described in [INSTALL](../INSTALL.md).
`NODE_ORACLEDB_PACKAGE_URL_PATH` (e.g. "/yourpath/") which must be set
before running `make`.
You can use `staging-oracledb-X.Y.Z.tgz` to host binaries on your
own network. Copy `staging-oracledb-X.Y.Z.tgz`, the binary packages
for each desired architectures, and a single SHASUMS256.txt file
(with one line per available binary package) to an HTTPS-enabled web
server. Note if the web server has a self-signed certificate, then
before running `npm install
https://your.example.com/yourpath/staging-oracledb-X.Y.X.tgz` you
may need to set:
- The`staging-oracledb-X.Y.Z.tgz` package can be used to host binaries
on internal networks. Copy `staging-oracledb-X.Y.Z.tgz`, the binary
packages for each desired architectures, and a single SHASUMS256.txt
file (with one line per available binary package) to an
HTTPS-enabled web server to the directory that
https://your.example.com/yourpath/vX.Y.Z/ resolves to. Note if the
web server has a self-signed certificate, then you you may need to
bypass some npm checks:
```
export NODE_TLS_REJECT_UNAUTHORIZED=0
npm config set strict-ssl false
npm install https://your.example.com/yourpath/vX.Y.Z/staging-oracledb-X.Y.X.tgz
```
Remember to do `npm config delete strict-ssl` when not testing.
Remember to do `npm config delete strict-ssl` and unset the
environment variable when not testing.
- At install time, setting the environment variable
`NODE_ORACLEDB_TRACE_INSTALL` to `TRUE` will cause `npm install` to