GithubHelp home page GithubHelp logo

dandelionwenjing / blog-helm Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 4.0 147 KB

An example hello world application to show Docker and Helm

License: MIT License

Kotlin 43.92% Shell 20.59% Smarty 1.36% JavaScript 34.14%

blog-helm's Introduction

blog-helm

An example hello world application to show Docker and Helm

Standalone usage

Install the dependencies with:

npm install

Run the app with:

node index.js

Lint the app with:

npm run lint

Docker usage

Build the production Docker image with:

docker build -t blog-helm .

Run the app with:

docker run -p 3000:3000 blog-helm

Build the CI Docker image with:

docker build -t blog-helm-ci -f Dockerfile-ci .

Use the CI Docker image to lint the app with:

docker run --rm -v $(pwd)/test-reports:/app/test-reports blog-helm-ci npm run lint

For the XML report:

docker run --rm -v $(pwd)/test-reports:/app/test-reports blog-helm-ci npm run lint-junit

Correct user permissions if needed with:

docker run --rm -v $(pwd)/test-reports:/app/test-reports blog-helm-ci chown -R $(id -u):$(id -g) test-reports

WebdriverIO

To run tests against an app that runs on http://localhost:3000/ :

npm run wdio

To run tests against an app at a different base URL:

npm run wdio -- -b http://some.other.url/

blog-helm's People

Contributors

ngeor avatar

Watchers

 avatar

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.