Skip to content

Commit 0ec53bf

Browse files
committed
Updated version information and added badges.
1 parent 5c01858 commit 0ec53bf

File tree

2 files changed

+28
-31
lines changed

2 files changed

+28
-31
lines changed

README.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Hello Kubernetes!
22

3+
![Docker Image Version (latest by date)](https://img.shields.io/docker/v/paulbouwer/hello-kubernetes) ![Docker Image Size (latest by date)](https://img.shields.io/docker/image-size/paulbouwer/hello-kubernetes) ![Docker Pulls](https://img.shields.io/docker/pulls/paulbouwer/hello-kubernetes)
4+
35
This container image can be deployed on a Kubernetes cluster. When accessed via a web browser on port `8080`, it will display:
6+
47
- a default **Hello world!** message
58
- the pod name
69
- node os information
@@ -9,12 +12,6 @@ This container image can be deployed on a Kubernetes cluster. When accessed via
912

1013
The default "Hello world!" message displayed can be overridden using the `MESSAGE` environment variable. The default port of 8080 can be overriden using the `PORT` environment variable.
1114

12-
## DockerHub
13-
14-
It is available on DockerHub as:
15-
16-
- [paulbouwer/hello-kubernetes:1.8](https://hub.docker.com/r/paulbouwer/hello-kubernetes/)
17-
1815
## Deploy
1916

2017
### Standard Configuration
@@ -51,7 +48,7 @@ spec:
5148
spec:
5249
containers:
5350
- name: hello-kubernetes
54-
image: paulbouwer/hello-kubernetes:1.8
51+
image: paulbouwer/hello-kubernetes:1.9
5552
ports:
5653
- containerPort: 8080
5754
```
@@ -102,7 +99,7 @@ spec:
10299
spec:
103100
containers:
104101
- name: hello-kubernetes
105-
image: paulbouwer/hello-kubernetes:1.8
102+
image: paulbouwer/hello-kubernetes:1.9
106103
ports:
107104
- containerPort: 8080
108105
env:
@@ -137,7 +134,7 @@ spec:
137134
spec:
138135
containers:
139136
- name: hello-kubernetes
140-
image: paulbouwer/hello-kubernetes:1.8
137+
image: paulbouwer/hello-kubernetes:1.9
141138
ports:
142139
- containerPort: 80
143140
env:
@@ -166,7 +163,7 @@ spec:
166163
spec:
167164
containers:
168165
- name: hello-kubernetes
169-
image: paulbouwer/hello-kubernetes:1.8
166+
image: paulbouwer/hello-kubernetes:1.9
170167
ports:
171168
- containerPort: 8080
172169
env:
@@ -182,12 +179,12 @@ If you'd like to build the image yourself, then you can do so as follows. The `b
182179

183180
Bash
184181
```bash
185-
$ docker build --no-cache --build-arg IMAGE_VERSION="1.8" --build-arg IMAGE_CREATE_DATE="`date -u +"%Y-%m-%dT%H:%M:%SZ"`" --build-arg IMAGE_SOURCE_REVISION="`git rev-parse HEAD`" -f Dockerfile -t "hello-kubernetes:1.8" app
182+
$ docker build --no-cache --build-arg IMAGE_VERSION="1.9" --build-arg IMAGE_CREATE_DATE="`date -u +"%Y-%m-%dT%H:%M:%SZ"`" --build-arg IMAGE_SOURCE_REVISION="`git rev-parse HEAD`" -f Dockerfile -t "hello-kubernetes:1.9" app
186183
```
187184

188185
Powershell
189186
```powershell
190-
PS> docker build --no-cache --build-arg IMAGE_VERSION="1.8" --build-arg IMAGE_CREATE_DATE="$(Get-Date((Get-Date).ToUniversalTime()) -UFormat '%Y-%m-%dT%H:%M:%SZ')" --build-arg IMAGE_SOURCE_REVISION="$(git rev-parse HEAD)" -f Dockerfile -t "hello-kubernetes:1.8" app
187+
PS> docker build --no-cache --build-arg IMAGE_VERSION="1.9" --build-arg IMAGE_CREATE_DATE="$(Get-Date((Get-Date).ToUniversalTime()) -UFormat '%Y-%m-%dT%H:%M:%SZ')" --build-arg IMAGE_SOURCE_REVISION="$(git rev-parse HEAD)" -f Dockerfile -t "hello-kubernetes:1.9" app
191188
```
192189

193190
## Develop Application

app/package.json

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
{
2-
"name": "hello-kubernetes",
3-
"version": "1.8.0",
4-
"description": "Hello Kubernetes!",
5-
"author": "Paul Bouwer",
6-
"license": "MIT",
7-
"main": "server.js",
8-
"scripts": {
9-
"start": "node server.js"
10-
},
11-
"dependencies": {
12-
"bytes": "^3.1.0",
13-
"express": "^4.17.1",
14-
"express-handlebars": "^3.1.0",
15-
"handlebars": "^4.7.6",
16-
"minimist": ">=1.2.5",
17-
"morgan": "^1.9.1"
18-
}
19-
}
1+
{
2+
"name": "hello-kubernetes",
3+
"version": "1.9.0",
4+
"description": "Hello Kubernetes!",
5+
"author": "Paul Bouwer",
6+
"license": "MIT",
7+
"main": "server.js",
8+
"scripts": {
9+
"start": "node server.js"
10+
},
11+
"dependencies": {
12+
"bytes": "^3.1.0",
13+
"express": "^4.17.1",
14+
"express-handlebars": "^3.1.0",
15+
"handlebars": "^4.7.6",
16+
"minimist": ">=1.2.5",
17+
"morgan": "^1.9.1"
18+
}
19+
}

0 commit comments

Comments
 (0)