{"id":16144236,"url":"https://github.com/ryanj/origin-s2i-nodejs","last_synced_at":"2025-07-02T14:36:00.285Z","repository":{"id":66461867,"uuid":"55566510","full_name":"ryanj/origin-s2i-nodejs","owner":"ryanj","description":"A basic Source to Image builder for OpenShift Origin, with runtime binaries from Nodejs.org","archived":false,"fork":false,"pushed_at":"2017-05-29T09:12:55.000Z","size":175,"stargazers_count":20,"open_issues_count":9,"forks_count":30,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-02T17:53:09.262Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://hub.docker.com/r/ryanj/centos7-s2i-nodejs/","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryanj.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-04-06T01:20:06.000Z","updated_at":"2022-11-04T13:56:24.000Z","dependencies_parsed_at":"2023-03-08T20:30:52.203Z","dependency_job_id":null,"html_url":"https://github.com/ryanj/origin-s2i-nodejs","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryanj/origin-s2i-nodejs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Forigin-s2i-nodejs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Forigin-s2i-nodejs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Forigin-s2i-nodejs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Forigin-s2i-nodejs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryanj","download_url":"https://codeload.github.com/ryanj/origin-s2i-nodejs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryanj%2Forigin-s2i-nodejs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263157265,"owners_count":23422586,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-10T00:12:01.476Z","updated_at":"2025-07-02T14:36:00.263Z","avatar_url":"https://github.com/ryanj.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"Origin S2I NodeJS\n=================\n\nThis repository contains sources for an [s2i](https://github.com/openshift/source-to-image) builder image, based on CentOS7 and nodejs releases from nodejs.org.\n\nIf you are interested in developing against SCL-based nodejs releases, try [sti-nodejs](https://github.com/openshift/sti-nodejs).\n\n[![docker hub stats](http://dockeri.co/image/ryanj/centos7-s2i-nodejs)](https://hub.docker.com/r/ryanj/centos7-s2i-nodejs/)\n\n[![](https://images.microbadger.com/badges/image/ryanj/centos7-s2i-nodejs.svg)](https://microbadger.com/images/ryanj/centos7-s2i-nodejs \"Get your own image badge on microbadger.com\")\n\nFor more information about using these images with OpenShift, please see the\nofficial [OpenShift Documentation](https://docs.openshift.org/latest/using_images/s2i_images/nodejs.html).\n\nVersions\n---------------\n[Node.JS versions currently provided are](https://hub.docker.com/r/ryanj/centos7-s2i-nodejs/tags/):\n\n* `7.7.4` `current`\n* `6.10.1` `lts`\n* `5.12.0`\n* `4.8.1`\n* `0.12.18`\n* `0.10.48`\n\nUsage\n---------------------------------\n\nOpenShift allows you to quickly start a build using the web console, or the CLI.\n\nThe [`oc` command-line tool](https://github.com/openshift/origin/releases) can be used to start a build, layering your desired nodejs `REPO_URL` sources into a centos7 image with your selected `RELEASE` of nodejs via the following command format:\n\n    oc new-app ryanj/centos7-s2i-nodejs:RELEASE~REPO_URL\n\nFor example, you can run a build (including `npm install` steps), using my [`http-base`](http://github.com/ryanj/http-base) example repo, and the `current` release of nodejs with:\n\n    oc new-app ryanj/centos7-s2i-nodejs:current~http://github.com/ryanj/http-base\n\nOr, to run the latest `lts` release with my [`pillar-base`](http://github.com/ryanj/pillar-base) example:\n\n    oc new-app ryanj/centos7-s2i-nodejs:lts~http://github.com/ryanj/pillar-base\n\nYou can try using any of the available tagged nodejs releases, and your own repo sources - as long as your application source will init correctly with `npm start`, and listen on port 8080.\n\nBuilds\n------\n\nThe [Source2Image cli tools](https://github.com/openshift/source-to-image/releases) are available as a standalone project, allowing you to [run builds outside of OpenShift](https://github.com/ryanj/origin-s2i-nodejs/blob/master/nodejs.org/README.md#usage).\n\nThis example will produce a new docker image named `pillarjs`:\n\n    s2i build https://github.com/ryanj/pillar-base ryanj/centos7-s2i-nodejs:current pillarjs\n\nInstallation\n---------------\n\nThere are several ways to make this base image and the full list of tagged nodejs releases available to users during OpenShift's web-based \"Add to Project\" workflow.\n\n#### For OpenShift Online Next Gen Developer Preview\nThose without admin privileges can install the latest nodejs releases within their project context with:\n\n    oc create -f https://raw.githubusercontent.com/ryanj/origin-s2i-nodejs/master/image-streams.json\n\nTo ensure that each of the latest NodeJS release tags are available and displayed correctly in the web UI, try upgrading / reinstalling the imageStream:\n\n    oc delete is/centos7-s2i-nodejs ; oc create -f https://raw.githubusercontent.com/ryanj/origin-s2i-nodejs/master/image-streams.json\n\nIf you've (automatically) imported this image using the [`oc new-app` example command](#usage), then you may need to clear the auto-imported image stream reference and re-install it.\n\n#### For Administrators\n\nAdministrators can make these NodeJS releases available globally (visible in all projects, by all users) by adding them to the `openshift` namespace:\n\n    oc create -n openshift -f https://raw.githubusercontent.com/ryanj/origin-s2i-nodejs/master/image-streams.json\n\nTo replace [the default SCL-packaged `openshift/nodejs` image](https://hub.docker.com/r/openshift/nodejs-010-centos7/) (admin access required), run:\n\n    oc delete is/nodejs -n openshift ; oc create -n openshift -f https://raw.githubusercontent.com/ryanj/origin-s2i-nodejs/master/centos7-s2i-nodejs.json\n\nBuilding your own Builder images\n--------------------------------\nClone a copy of this repo to fetch the build sources:\n\n    $ git clone https://github.com/ryanj/origin-s2i-nodejs.git\n    $ cd origin-s2i-nodejs\n\nTo build your own S2I Node.JS builder images from scratch, run:\n\n    $ docker pull openshift/base-centos7\n    $ make build\n\nYou can also build a specific release, or try building the alternate `ONBUILD` version of this base:\n\n    $ ONBUILD=true make VERSION=7.7.4\n\nThe `ONBUILD` base images are available at https://hub.docker.com/r/ryanj/centos7-nodejs\n\nTest\n---------------------\nThis repository also provides a [S2I](https://github.com/openshift/source-to-image) test framework,\nwhich launches tests to check functionality of a simple Node.JS application built on top of the sti-nodejs image.\n\nUsers can choose between testing a Node.JS test application based on a RHEL or CentOS image.\n\n*  **CentOS based image**\n\n    ```\n    $ cd sti-nodejs\n    $ make test\n    ```\n\nRepository organization\n------------------------\n* **`nodejs.org/`**\n\n    Dockerfile and scripts to build container images.\n\n* **`hack/`**\n\n    Folder containing scripts which are responsible for the build and test actions performed by the `Makefile`.\n\n* ** `image-streams.json` **\n\n    Use this file to add these runtimes to OpenShift's web-based **\"Add to Project\"** workflow.\n\n* ** `Makefile` **\n\n    See the [build your own builder images](#build_your_own_builder_images) section of the `README` for `build` and `test` usage details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Forigin-s2i-nodejs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryanj%2Forigin-s2i-nodejs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryanj%2Forigin-s2i-nodejs/lists"}