All Projects → nodeshift → Centos7 S2i Nodejs

nodeshift / Centos7 S2i Nodejs

Licence: apache-2.0
DEPRECATED OpenShift S2I builder images for Node.js ✨

Programming Languages

shell
77523 projects

Projects that are alternatives of or similar to Centos7 S2i Nodejs

Helloworld Msa
Main repository with documentation and support files
Stars: ✭ 218 (+541.18%)
Mutual labels:  redhat, devops, containers, openshift
Origin
Conformance test suite for OpenShift
Stars: ✭ 8,046 (+23564.71%)
Mutual labels:  devops, containers, openshift
Minishift
Run OpenShift 3.x locally
Stars: ✭ 2,246 (+6505.88%)
Mutual labels:  devops, containers, openshift
Jx
Jenkins X provides automated CI+CD for Kubernetes with Preview Environments on Pull Requests using Cloud Native pipelines from Tekton
Stars: ✭ 4,041 (+11785.29%)
Mutual labels:  devops, openshift
Tsuru
Open source and extensible Platform as a Service (PaaS).
Stars: ✭ 3,761 (+10961.76%)
Mutual labels:  devops, containers
Please Contain Yourself
A Docker tutorial written for people who don't actually know Docker already.
Stars: ✭ 385 (+1032.35%)
Mutual labels:  containers, docker-image
Bitnami Docker Redis
Bitnami Redis Docker Image
Stars: ✭ 317 (+832.35%)
Mutual labels:  containers, docker-image
Docker Squid
Dockerfile to create a Docker container image for Squid proxy server
Stars: ✭ 669 (+1867.65%)
Mutual labels:  containers, docker-image
Dokku
A docker-powered PaaS that helps you build and manage the lifecycle of applications
Stars: ✭ 22,155 (+65061.76%)
Mutual labels:  devops, containers
Sparrow
运维管理平台(python3+flask+pycharts+apscheduler+gunicorn),模块化结构设计,底层依托mysql、influxdb、elasticsearch、zabbix、k8s等数据源数据
Stars: ✭ 723 (+2026.47%)
Mutual labels:  devops, containers
Microservices Observability
This project is a demonstration on how to instrument, monitor and trace applications using java frameworks and open-source tools like prometheus, grafana and jaeger.
Stars: ✭ 23 (-32.35%)
Mutual labels:  redhat, openshift
Devops Guide
DevOps Guide - Development to Production all configurations with basic notes to debug efficiently.
Stars: ✭ 4,119 (+12014.71%)
Mutual labels:  devops, containers
Umoci
umoci modifies Open Container images
Stars: ✭ 349 (+926.47%)
Mutual labels:  containers, docker-image
Picluster
A Simplified Docker Swarm or Kubernetes Alternative to Container Scheduling and Orchestration
Stars: ✭ 390 (+1047.06%)
Mutual labels:  containers, docker-image
Lxdock
Build and orchestrate your development environments with LXD - a.k.a. Vagrant is Too Heavy™
Stars: ✭ 350 (+929.41%)
Mutual labels:  devops, containers
Bitnami Docker Wordpress
Bitnami Docker Image for WordPress
Stars: ✭ 476 (+1300%)
Mutual labels:  containers, docker-image
Azure Openshift
RedHat Openshift Origin cluster on Azure
Stars: ✭ 17 (-50%)
Mutual labels:  redhat, openshift
Ansible Role Docker
Ansible Role - Docker
Stars: ✭ 845 (+2385.29%)
Mutual labels:  redhat, containers
Platform As Code Example
Platform as Code - Example
Stars: ✭ 28 (-17.65%)
Mutual labels:  devops, openshift
Adapt
ReactJS for your infrastructure. Create and deploy full-stack apps to any infrastructure using the power of React.
Stars: ✭ 317 (+832.35%)
Mutual labels:  devops, containers

DEPRECATED

This is no longer supported, please consider using ubi8/nodejs-10 instead.

Build Status

This repository contains sources for an s2i builder image, based on CentOS7 and Node.js RPM releases from https://github.com/nodeshift/node-rpm. The RPMs and this builder image are the upstream sources for the Red Hat OpenShift Application Runtimes Node.js distribution.

docker hub stats

Versions

Node.js versions currently provided.

Version Tag
12.11.1 (12.x, latest)
10.16.3 (10.x, Dubnium)
8.16.2 (8.x, Carbon)

Usage

Using this image with OpenShift oc command line tool, or with s2i directly, will assemble your application source with its required dependencies, creating a new container image. This image contains your Node.js application and all required dependencies, and can be run either on OpenShift or directly on Docker.

OpenShift

The oc command-line tool can be used to start a build, layering your desired nodejs REPO_URL sources into a centos7 image with your selected RELEASE of Node.js via the following command format:

oc new-app nodeshift/centos7-s2i-nodejs:latest~https://github.com/nodeshift/nodejs-rest-http

OpenShift Catalog

With OpenShift, it is also possible to import this builder image into the online Catalog, so that applications can be created and deployed using this Node.js image through the web-based user interface. To import the images, run the following openshift command.

oc create -f imagestreams/nodejs-centos7.json

Docker

The Source2Image cli tools are available as a standalone project, allowing you to run your application directly in Docker.

This example will produce a new Docker image named webapp:

s2i build https://github.com/nodeshift-starters/nodejs-rest-http nodeshift/centos7-s2i-nodejs:latest webapp

Then you can run the application image like this.

docker run -p 8080:8080 --rm -it webapp

Configuration

Use the following environment variables to configure the runtime behavior of the application image created from this builder image.

NAME Description
NPM_RUN Select an alternate / custom runtime mode, defined in your package.json file's scripts section (default: npm run "start")
NPM_MIRROR Sets the npm registry URL
NODE_ENV Node.js runtime mode (default: "production")
HTTP_PROXY use an npm proxy during assembly
HTTPS_PROXY use an npm proxy during assembly
NO_PROXY set URLs that should be excluded from proxying during assembly

One way to define a set of environment variables is to include them as key value pairs in a .s2i/environment file in your source repository.

Example: DATABASE_USER=sampleUser

Debug Mode

When NODE_ENV is set to development or DEV_MODE is set to true, your Node.js application will be started using nodemon.

npx nodemon --inspect="$DEBUG_PORT"

Using Docker's exec

To change your source code in a running container, use Docker's exec command:

docker exec -it <CONTAINER_ID> /bin/bash

After you Docker exec into the running container, your current directory is set to /opt/app-root/src, where the source code for your application is located.

Using OpenShift's rsync

If you have deployed your application to OpenShift, you can use oc rsync to copy local files to a remote container running in an OpenShift pod.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].