This repository has been archived by the owner on Jan 15, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Hans Kristian Flaatten
committed
Dec 20, 2018
1 parent
ac5dfad
commit 86ffdd4
Showing
9 changed files
with
382 additions
and
30 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
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 @@ | ||
node_modules/ |
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 |
---|---|---|
@@ -1 +1,12 @@ | ||
FROM nginx:alpine | ||
FROM node:9-alpine | ||
|
||
WORKDIR /usr/src/app | ||
|
||
ADD package.json /usr/src/app | ||
ADD yarn.lock /usr/src/app | ||
|
||
RUN yarn install | ||
|
||
ADD . /usr/src/app | ||
|
||
CMD ["node", "index.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
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,10 @@ | ||
version: '2' | ||
|
||
services: | ||
node: | ||
image: node:9-alpine | ||
working_dir: /usr/src/app | ||
volumes: | ||
- ".:/usr/src/app" | ||
environment: | ||
- NODE_ENV=development |
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,13 @@ | ||
var express = require('express'); | ||
|
||
var app = express(); | ||
|
||
app.get('/', function(req, res){ | ||
res.send('Hello World'); | ||
}); | ||
|
||
/* istanbul ignore next */ | ||
if (!module.parent) { | ||
app.listen(8080); | ||
console.log('Express started on port 3000'); | ||
} |
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,13 @@ | ||
{ | ||
"name": "jenkins-test", | ||
"version": "1.0.0", | ||
"description": "Jenkins Test App", | ||
"main": "index.js", | ||
"repository": "git@github.com:evry-ace/jenkins-test.git", | ||
"author": "Hans Kristian Flaatten", | ||
"license": "MIT", | ||
"private": false, | ||
"dependencies": { | ||
"express": "^4.16.4" | ||
} | ||
} |
Oops, something went wrong.