David Martin

Recent Posts

Working with peer, scoped and private npm dependencies in RHMAP

RHMAP Environments

An RHMAP Environment provides a Node.js runtime for Mobile Backends. There are 2 environment types: Dynofarm & OpenShift. The former is an LXC based PaaS, written in Node.js & bash. It is superseded by OpenShift environments. However, there are still many Dynofarm environments in use in the RHMAP SaaS offering.

Continue reading “Working with peer, scoped and private npm dependencies in RHMAP”

Share

Installing Node.js dependencies with Yarn via s2i builds and OpenShift

Building a docker formatted container image for a Node.js application

There are 2 main strategies for building an image for a Node.js Application. The most common strategy is simply using a Dockerfile with a base image of something like FROM node:4-onbuild. Then do a docker build. This will produce an image with your application in it, ready to be run. This strategy is known as the Docker strategy in an OpenShift BuildConfig.

Another strategy is using the s2i tool for taking the application source from a repository and producing the image. A typical command would be.s2i build git@github.com/me/myrepo.git bucharestgold/centos7-s2i-nodejs:latest myapp. With this strategy, there is no explicit Dockerfile. It is known as the Source strategy in an OpenShift BuildConfig.

Continue reading “Installing Node.js dependencies with Yarn via s2i builds and OpenShift”

Share