An example hello world application to show Docker and Helm
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.teamcity
.vscode
ci-scripts
helm/blog-helm
teamcity-server
test
.dockerignore
.editorconfig
.eslintignore
.eslintrc.js
.gitattributes
.gitignore
Dockerfile
GitVersion.yml
LICENSE
README.md
index.js
package-lock.json
package.json
wdio.conf.js

README.md

blog-helm

An example hello world application to show Docker and Helm

Standalone usage

Command Action
npm i Install dependencies
node index.js Run the application
npm run lint Lint the app

Docker usage

Build the production Docker image with:

docker build -t blog-helm .

Run the app with:

docker run -p 3000:3000 blog-helm

To lint the app using Docker:

docker run --rm -v $(pwd):/src -w /src node:8-jessie npm run lint

For the XML report:

docker run --rm -v $(pwd):/src -w /src node:8-jessie npm run lint-junit

Correct user permissions if needed with:

docker run --rm -v $(pwd):/src -w /src node:8-jessie chown -R $(id -u):$(id -g) test-reports

WebdriverIO

To run tests against an app that already 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/

minikube

Read the guide here about setting up minikube and TeamCity.