Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
FROM node:7-onbuild

# set maintainer
LABEL maintainer "miiro@getintodevops.com"
LABEL maintainer "academy@release.works"

# set a health check
HEALTHCHECK --interval=5s \
--timeout=5s \
CMD curl -f http://127.0.0.1:8000 || exit 1

# tell docker what port to expose
EXPOSE 8000
EXPOSE 8000

2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ node {
/* This builds the actual image; synonymous to
* docker build on the command line */

app = docker.build("getintodevops/hellonode")
app = docker.build("releaseworks/hellonode")
}

stage('Test image') {
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ This is a very basic Hello World application written with Node.

It includes a `Dockerfile` for building a Docker image with the application, and a `Jenkinsfile` that defines a build pipeline for it.

https://getintodevops.com
https://www.releaseworksacademy.com
4 changes: 2 additions & 2 deletions main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ var http = require('http');
// configure our HTTP server
var server = http.createServer(function (request, response) {
response.writeHead(200, {"Content-Type": "text/plain"});
response.end("Hello getintodevops.com\n");
response.end("Hello www.releaseworksacademy.com\n");
});

// listen on localhost:8000
server.listen(8000);
console.log("Server listening at http://127.0.0.1:8000/");
console.log("Server listening at http://127.0.0.1:8000/");
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "getintodevops-hellonode",
"name": "releaseworks-hellonode",
"version": "1.0.0",
"description": "A Hello World HTTP server",
"main": "main.js",
Expand All @@ -9,14 +9,14 @@
},
"repository": {
"type": "git",
"url": "https://github.com/getintodevops/masterclass-codeexamples/"
"url": "https://github.com/releaseworks/hellonode/"
},
"keywords": [
"node",
"docker",
"dockerfile"
],
"author": "miiro@getintodevops.com",
"author": "academy@release.works",
"license": "ISC",
"devDependencies": { "test": ">=0.6.0" }
}
Expand Down