This is a cache of https://docs.openshift.com/enterprise/3.1/using_images/s2i_images/nodejs.html. It is a snapshot of the page at 2024-11-22T04:38:04.572+0000.
Node.js - Source-to-Image (<strong>s2i</strong>) | Using Images | OpenShift Enterprise 3.1
×

Overview

OpenShift Enterprise provides s2i enabled Node.js images for building and running Node.js applications. The Node.js s2i builder image assembles your application source with any required dependencies to create a new image containing your Node.js application. This resulting image can be run either by OpenShift Enterprise or by Docker.

Versions

Currently, OpenShift Enterprise provides version 0.10 of Node.js.

Images

This image comes in two flavors, depending on your needs:

  • RHEL 7

  • CentOS 7

RHEL 7 Based Image

The RHEL 7 image is available through Red Hat’s subscription registry using:

$ docker pull registry.access.redhat.com/openshift3/nodejs-010-rhel7

CentOS 7 Based Image

This image is available on DockerHub. To download it:

$ docker pull openshift/nodejs-010-centos7

To use these images, you can either access them directly from these image registries, or push them into your OpenShift Enterprise Docker registry. Additionally, you can create an image stream that points to the image, either in your Docker registry or at the external location. Your OpenShift Enterprise resources can then reference the ImageStream. You can find example image stream definitions for all the provided OpenShift Enterprise images.

Configuration

The Node.js image does not offer any environment variable based configuration settings.