Giter Site home page Giter Site logo

jonfairbanks / docker-node-app Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 1.09 MB

A sample Node.js app in Docker

License: GNU General Public License v3.0

Dockerfile 12.57% JavaScript 21.96% CSS 22.62% EJS 22.15% Mustache 20.69%
dockerfile node-js kubernetes-node docker-node arm kubernetes

docker-node-app's Introduction

docker-node-app

Docker+Node

CI - Main CI - Development GitHub top language Docker Pulls GitHub last commit Lines of code License

A sample Node.js app in Docker

  • Final Image Size: ~70MB
  • Includes the latest versions of Node, NPM and Yarn
  • Runs as a non-root user for enhanced security
  • Multi-stage including development, test, audit and production environments
  • Scan and audit dependencies with Microscanner
  • Properly handles SIGINT and SIGTERM events with tini
  • Follows many development, virtualization and styling best-practices

Docker

This application is also available on Dockerhub.

To launch the container: docker run -d -p 8080:8080 --name docker-node-app jonfairbanks/docker-node-app:latest

To attach to a running container: docker exec -it docker-node-app /bin/ash

Kubernetes

You can find this app on Helm!

This application can also be helpful verifying Kubernetes:

  • Scaling and Downtime Mitigation
  • Cluster Load Balancing
  • Request IP Passthrough

For testing that pods are balancing correctly, you can make multiple requests to your app to verify.

To make 50 requests and write them to a file, you can run the following with your endpoint: for run in {1..50}; do curl -sSL -D - kube.fairbanks.dev -o /dev/null | grep X-Hostname; done

docker-node-app's People

Contributors

bsord avatar dependabot-preview[bot] avatar dependabot[bot] avatar imgbotapp avatar jonfairbanks avatar

Watchers

 avatar  avatar  avatar

Forkers

bsord

docker-node-app's Issues

Your .dependabot/config.yml contained invalid details

Dependabot encountered the following error when parsing your .dependabot/config.yml:

Automerging is not enabled for this account. You can enable it from the [account settings](https://app.dependabot.com/accounts/jonfairbanks/settings) screen in your Dependabot dashboard.

Please update the config file to conform with Dependabot's specification using our docs and online validator.

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.