Code Monkey home page Code Monkey logo

devfile-sample's Introduction

nodejs-starter

This is a sample starter project that provides you with a basic Express app and a sample test in a /src/test sub directory. This sample project uses Express v4.17.x and enables health checking and application metrics out of the box. You can override or enhance the following endpoints by configuring your own health checks in your application.

Health checking

Health-checking enables the cloud platform to determine the readiness and liveness of your application.

These endpoints will be available for you to use:

Application metrics

The prom-client module will collect a wide range of resource-centric (CPU, memory) and application-centric (HTTP request responsiveness) metrics from your application, and then expose them as multi-dimensional time-series data through an application endpoint for Prometheus to scrape and aggregate.

This endpoints will be available for you to use:

License

This stack is licensed under the EPL 2.0 license.

devfile-sample's People

Contributors

andrewballantyne avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

devfile-sample's Issues

Sample apps that use base image from Docker Hub might fail deployment due to pull rate limit

Currently, some (at least one - the nodeJS one ) built-in examples are using Docker.io. Users might hit Docker pull rate limit. Even if there is a workaround, it requires a Dockerhub account and some specific manipulations.

Cloning "https://github.com/redhat-developer/devfile-sample.git" ...
	Commit:	5ffa4845474ed8321cba9b69f47f02ca16210334 (Devfile Sample Repo)
	Author:	Andrew Ballantyne <[email protected]>
	Date:	Thu Jan 7 14:13:29 2021 -0500
time="2021-11-29T10:25:19Z" level=info msg="Not using native diff for overlay, this may cause degraded performance for building images: kernel has CONFIG_OVERLAY_FS_REDIRECT_DIR enabled"
I1129 10:25:19.069266       1 defaults.go:102] Defaulting to storage driver "overlay" with options [mountopt=metacopy=on].
Caching blobs under "/var/cache/blobs".

Pulling image node:current-slim ...
Warning: Pull failed, retrying in 5s ...
Warning: Pull failed, retrying in 5s ...
Warning: Pull failed, retrying in 5s ...
error: build error: failed to pull image: After retrying 2 times, Pull image still failed due to error: Error initializing source docker://node:current-slim: Error reading manifest current-slim in docker.io/library/node: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.