-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Create app.js * Create Containerfile * Create README.md * Update README.md * Rename Containerfile to Containerfile * Rename README.md to README.md * Rename app.js to app.js * Update README.md * Update Makefile * Update Containerfile
- Loading branch information
Showing
5 changed files
with
24 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
FROM node:22 | ||
ADD app.js /app.js | ||
ENTRYPOINT ["node", "app.js"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
# Node JS app for a webserver pod | ||
|
||
## Image Repository | ||
* quay.io/cloud-bulldozer/sampleapp:latest | ||
|
||
## Application | ||
* Listens on port 8080 | ||
* Returns 200 for GETs |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
const http = require('http'); | ||
const os = require('os'); | ||
|
||
|
||
var handler = function(request, response) { | ||
console.log("Received request from " + request.connection.remoteAddress); | ||
response.writeHead(200); | ||
}; | ||
|
||
var www = http.createServer(handler); | ||
www.listen(8080); |