Links:
https://github.com/Shrinidhikulkarni7/OracleClient_Alpine
https://github.com/node-red/node-red-docker
The node-red-docker-oracle directory contains files you need to build your own images.
The follow steps describe in short which steps to take to build your own images.
Clone the node-red-docker-oracle project from github
git clone https://github.com/ryuunosukeds3/node-red-docker-oracle
Change dir to node-red-docker-oracle
cd /node-red-docker-oracle
- Change the node-red version in package.json (from the docker-custom directory) to the version you require
- Add optionally packages you require
- The
flows.json
file is the default flow that will be used if no external volume is mounted to/data
. You can replace this by a preconfigured flow and launch it by not mounting a /data volume, but most users will mount and save data and flows externally.
The docker-alpine.sh
is a helper scripts to build a custom Node-RED docker image. The docker-alpine script is based on Alpine as per the default docker package.
Change the build arguments as needed:
I think instant client is only available for amd64. If not, you should change the link and the parameters of the instant client instalation on the Dockerfile
--build-arg ARCH=amd64
: architecture your are building for (arm32v6, arm32v7, arm64v8, amd64)--build-arg NODE_VERSION=10
: NodeJS version you like to use--build-arg NODE_RED_VERSION=${NODE_RED_VERSION}
: don't change this, ${NODE_RED_VERSION} gets populated from package.json--build-arg OS=alpine
: the linux distro to use (alpine)--build-arg BUILD_DATE="$(date +"%Y-%m-%dT%H:%M:%SZ")"
: don't change this--build-arg TAG_SUFFIX=default
: to build the default or minimal image--file Dockerfile.custom
: Dockerfile to use to build your image.--tag testing:node-red-build
: set the image name and tag
Run docker-alpine.sh
$ ./docker-alpine.sh
This starts building your custom image and might take a while depending on the system you are running on.
When building is done you can run the custom image by the following command:
$ docker run -it -p1880:1880 -v node_red_data:/data --name myNRtest node-red-docker-oracle:latest
With the following command you can verify your docker image:
$ docker inspect node-red-docker-oracle:latest
The relevant Dockerfile
can be modified as required.
Uncomment and change the NLS_LANG with your database NLS_LANG. Default is American_America.WE8ISO8859P1
Change the version from oracle instant client on the docker file as needed. Default is latest.
The instant client library location is located on /lib