{"id":18293084,"url":"https://github.com/kubesphere/s2i-nodejs-container","last_synced_at":"2025-04-05T11:30:46.058Z","repository":{"id":49922282,"uuid":"173662597","full_name":"kubesphere/s2i-nodejs-container","owner":"kubesphere","description":null,"archived":false,"fork":false,"pushed_at":"2022-12-18T06:53:53.000Z","size":41,"stargazers_count":3,"open_issues_count":1,"forks_count":7,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-04-13T21:43:09.075Z","etag":null,"topics":["devops"],"latest_commit_sha":null,"homepage":"","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/kubesphere.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}},"created_at":"2019-03-04T02:51:39.000Z","updated_at":"2022-07-21T06:37:16.000Z","dependencies_parsed_at":"2023-01-29T18:46:10.903Z","dependency_job_id":null,"html_url":"https://github.com/kubesphere/s2i-nodejs-container","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-nodejs-container","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-nodejs-container/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-nodejs-container/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kubesphere%2Fs2i-nodejs-container/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kubesphere","download_url":"https://codeload.github.com/kubesphere/s2i-nodejs-container/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247330405,"owners_count":20921624,"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":["devops"],"created_at":"2024-11-05T14:21:49.266Z","updated_at":"2025-04-05T11:30:45.792Z","avatar_url":"https://github.com/kubesphere.png","language":"Shell","readme":"[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/kubesphere/s2i-nodejs-container)\n\nNodeJS container images\n====================\n\nThis repository contains the source for building various versions of\nthe Node.JS application as a reproducible container image using\n[source-to-image](https://github.com/kubesphere/s2ioperator).\nUsers can choose between RHEL and CentOS based builder images.\nThe resulting image can be run using [Docker](http://docker.io).\n\nVersions\n---------------\nNode.JS versions currently provided are:\n* [NodeJS 6](6)\n* [NodeJS 8](8)\n\nRHEL versions currently supported are:\n* RHEL7\n\nCentOS versions currently supported are:\n* CentOS7\n\n\nInstallation\n---------------\nTo build a Node.JS image, choose either the CentOS or RHEL based image:\n\n*  **CentOS based image**\n\n    This image is available on DockerHub. To download it run:\n\n    ```\n    $ docker pull kubespheredev/nodejs-8-centos7\n    ```\n\n    To build a Node.JS image from scratch run:\n\n    ```\n    $ git clone --recursive https://github.com/kubesphere/s2i-nodejs-container.git\n    $ cd s2i-nodejs-container\n    $ git submodule update --init\n    $ make build TARGET=centos7 VERSIONS=8\n    ```\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all provided versions of Node.JS.**\n\n\nUsage\n---------------------------------\n\nFor information about usage of Dockerfile for NodeJS 6,\nsee [usage documentation](6/README.md).\nFor information about usage of Dockerfile for NodeJS 8,\nsee [usage documentation](8/README.md).\n\nTest\n---------------------\nThis repository also provides a [S2I](https://github.com/kubesphere/s2ioperator) test framework,\nwhich launches tests to check functionality of a simple Node.JS application built on top of the s2i-nodejs image.\n\nUsers can choose between testing a Node.JS test application based on a RHEL or CentOS image.\n\n*  **RHEL based image**\n\n    To test a RHEL7 based Node.JS image, you need to run the test on a properly\n    subscribed RHEL machine.\n\n    ```\n    $ cd s2i-nodejs-container\n    $ git submodule update --init\n    $ make test TARGET=rhel7 VERSIONS=8\n    ```\n\n*  **CentOS based image**\n\n    ```\n    $ cd s2i-nodejs-container\n    $ git submodule update --init\n    $ make test TARGET=centos7 VERSIONS=8\n    ```\n\n**Notice: By omitting the `VERSIONS` parameter, the build/test action will be performed\non all provided versions of Node.JS.**\n\n\nRepository organization\n------------------------\n* **`\u003cnodejs-version\u003e`**\n\n    * **Dockerfile**\n\n        CentOS based Dockerfile.\n\n    * **Dockerfile.rhel7**\n\n        RHEL based Dockerfile. In order to perform build or test actions on this\n        Dockerfile you need to run the action on a properly subscribed RHEL machine.\n\n    * **`s2i/bin/`**\n\n        This folder contains scripts that are run by [S2I](https://github.com/kubesphere/s2ioperator):\n\n        *   **assemble**\n\n            Used to install the sources into the location where the application\n            will be run and prepare the application for deployment (eg. installing\n            modules using npm, etc.)\n\n        *   **run**\n\n            This script is responsible for running the application, by using the\n            application web server.\n\n        *   **usage***\n\n            This script prints the usage of this image.\n\n    * **`contrib/`**\n\n        This folder contains a file with commonly used modules.\n\n    * **`test/`**\n\n        This folder contains the [S2I](https://github.com/kubesphere/s2ioperator)\n        test framework with simple Node.JS echo server.\n\n        * **`test-app/`**\n\n            A simple Node.JS echo server used for testing purposes by the [S2I](https://github.com/kubesphere/s2ioperator) test framework.\n\n        * **run**\n\n            This script runs the [S2I](https://github.com/kubesphere/s2ioperator) test framework.\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fs2i-nodejs-container","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkubesphere%2Fs2i-nodejs-container","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkubesphere%2Fs2i-nodejs-container/lists"}