Commit cb3ab6e2 authored by Lucas dos Santos Abreu's avatar Lucas dos Santos Abreu
Browse files

v1

parent 60ac5b0b
.gitlab-ci.*
node_modules
*.sw*
build:
image: docker:latest
services:
- docker:dind
stage: build
script:
- docker login -u "gitlab-ci-token" -p "$CI_JOB_TOKEN" $CI_REGISTRY
- docker build --pull -t "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME" .
- docker push "$CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
- echo "Pushing image $CI_REGISTRY_IMAGE:$CI_COMMIT_REF_NAME"
only:
- branches
FROM node:7.5.0-alpine
COPY ./ /app/
WORKDIR /app
RUN npm install --production
ENTRYPOINT /app/cli/entrypoint.sh
#!/bin/sh
if [[ "$ENV" = "DEV" ]]; then
exec node_modules/.bin/node-supervisor --extensions js,node,html,svg index.js
else
exec node index.js
fi
'use stricti'
var express = require('express');
var app = express();
app.use(express.static('public'));
var port = process.env.PORT || 8080;
app.listen(port, () => {
console.log('App listening on port ' + port + ' !');
});
{
"name": "k8s-pr-envs",
"version": "1.0.0",
"description": "A simple k8s deploy sample",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+ssh://git@gitlab.com:lucassabreu/k8s-pr-envs.git"
},
"author": "Lucas dos Santos Abreu <lucas.s.abreu@gmail.com>",
"license": "ISC",
"dependencies": {
"express": "^4.15.2"
},
"devDependencies": {
"supervisor": "^0.12.0"
}
}
<html>
<head>
<title>Hello world!</title>
<link href='//fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
<style>
body {
background-color: white;
text-align: center;
padding: 50px;
font-family: "Open Sans","Helvetica Neue",Helvetica,Arial,sans-serif;
}
#logo {
margin: auto;
padding-right: 3rem;
margin-bottom: 40px;
width: 20rem;
}
</style>
</head>
<body>
<img id="logo" src="logo.svg"
alt="CodeRocker" title="CodeRocker" />
<h1>Hello World !</h1>
</body>
</html>
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 290.78 85.31" fill="#1d1d1b"><title>Coderockr Logo</title><path d="M31.23 28.79c.1-1 .15-2.17.19-3.28s.1-2.45.21-3.51c.33-3 1.13-11.78 1.2-13.21v-.68a27.49 27.49 0 0 0 .05-4.83 3.85 3.85 0 0 0-3-3.23A3.68 3.68 0 0 0 26.2 2c-1.52 2.52-1.92 6.58-2.13 8.77-.08.87-.4 3.53-.65 5.66l-.09.79a4.4 4.4 0 0 0-.43-.41 6.5 6.5 0 0 0-3.14-1.29 4.76 4.76 0 0 0-3.17.52 3.8 3.8 0 0 0-1.48 1.31 5.69 5.69 0 0 0-4.41-1 5.89 5.89 0 0 0-2.39 1 11.11 11.11 0 0 0-.15-1.7c-.07-.46-.14-.93-.2-1.4s-.14-1-.21-1.44c0-.18-.05-.36-.08-.54a8 8 0 0 0-1.38-4.01 3 3 0 0 0-2.18-.82A3.32 3.32 0 0 0 1.4 8.58C-.07 10.36 0 11.89 0 14.43v.49c.05 2 .16 3.8.27 5.74 0 .82.1 1.64.14 2.49a41.92 41.92 0 0 1-.21 5.53c-.07.92-.15 1.88-.2 2.8a22.7 22.7 0 0 0 .77 8.29l.13.36a20 20 0 0 0 2.34 5c.07.83.12 1.47.16 2a37.82 37.82 0 0 1 0 7l-.08 1.81c-.24 6.3 1.8 11.21 6.12 14.56l1.16.9v-1.47c0-.58 0-1-.07-1.36a8.46 8.46 0 0 1 .1-2.57c3.28 4 3.36 7.18 3.49 12.65 0 1.59.08 3.39.21 5.44l.08 1.21 1-.66a19 19 0 0 0 9.13-14.25 26.43 26.43 0 0 0-.8-9.57 9.33 9.33 0 0 0 3.55 1.37l1.63.34-.88-1.41c-2.68-4.3-2.71-8.64-2.73-12.46v-1a20 20 0 0 0 3.25-2.43 17 17 0 0 0 4.77-8 10.14 10.14 0 0 0-2.1-8.44zm-6.41-12.15c.27-2.25.57-4.8.66-5.69.2-2.07.58-5.93 1.94-8.17a2.3 2.3 0 0 1 2.29-1.34 2.48 2.48 0 0 1 1.83 2.12A31.87 31.87 0 0 1 31.46 8v.69c-.07 1.41-.86 10.12-1.2 13.13-.12 1.12-.17 2.39-.22 3.61 0 .71-.06 1.43-.1 2.12a15.68 15.68 0 0 0-5.81-2.36c.09-.85.17-2.33.27-4 0-.7.07-1.3.09-1.45.01-.4.16-1.66.33-3.1zm-7.58.71a3.37 3.37 0 0 1 2.29-.35A5.15 5.15 0 0 1 22 18a3.09 3.09 0 0 1 1 1.82c0 .24 0 .68-.08 1.36-.06 1.08-.16 2.88-.25 3.83a2.85 2.85 0 0 0-2.24.82c-1.17 1.19-1.19 3.29-.82 4.86a5.41 5.41 0 0 0 .75 1.7 4.26 4.26 0 0 1-3.86.28 2.54 2.54 0 0 1-.69-1.19v-.11a19.34 19.34 0 0 0 .5-4.37v-.56c0-.17 0-.62.05-.92a22.42 22.42 0 0 0 0-3.54 22.88 22.88 0 0 0-.5-3.3l.25-.35a2.58 2.58 0 0 1 1.13-.98zm-2.38 1.08c-.23-.91.11.38 0 0zM11 17.82c1.12-.22 3.07.12 3.51 1a19.43 19.43 0 0 1 .49 3.34 21.09 21.09 0 0 1 0 3.31c0 .31 0 .63-.05.94s0 .37 0 .57a17.14 17.14 0 0 1-.52 4.17C13.85 32.84 13 33 12.77 33a2.9 2.9 0 0 1-2.43-.51c-1-.78-1.6-2.45-1.71-4.57V23.4c0-.43-.09-1.36-.15-2.18 0-.59-.09-1.13-.1-1.42v-.11A3.27 3.27 0 0 1 11 17.82zM32 37a15.59 15.59 0 0 1-4.34 7.22 17.89 17.89 0 0 1-3.37 2.47 8.23 8.23 0 0 1-3.61 1.13l.06 1.42a8.89 8.89 0 0 0 3.21-.8v.26c0 3.58 0 7.58 2.11 11.71-1.69-.59-2.45-1.46-3.47-3.22a29.67 29.67 0 0 0-2-2.47 23.17 23.17 0 0 0 .7 3.08c2 5 5.21 17.16-5.6 25-.08-1.52-.11-2.89-.14-4.14-.15-6.09-.24-9.76-4.81-14.64L9.8 63l-.28 1.32a13.08 13.08 0 0 0-.45 4c-3.12-3-4.53-7.06-4.3-12.33l.08-1.82a38.92 38.92 0 0 0 0-7.14v-.17A16.93 16.93 0 0 0 6.32 48a7.09 7.09 0 0 0 1.41.73c.24.1.47.2.72.33l.65-1.26c-.3-.15-.56-.26-.82-.37a5.81 5.81 0 0 1-1.15-.59 15.53 15.53 0 0 1-1.66-1.31 6.83 6.83 0 0 1-.85-.92 17.38 17.38 0 0 1-2.34-4.95l-.12-.36a21.4 21.4 0 0 1-.69-7.75c0-.89.12-1.79.19-2.75a42.83 42.83 0 0 0 .21-5.72c0-.85-.09-1.68-.14-2.5-.11-1.92-.22-3.73-.27-5.69v-.49c-.07-2.43-.1-3.54 1-4.91a1.88 1.88 0 0 1 1.35-.63 2.38 2.38 0 0 1 1.32.26 6.76 6.76 0 0 1 1.1 3.44c0 .18 0 .37.08.56l.21 1.43c.07.48.13 1 .2 1.42a9 9 0 0 1 .11 2.11 14.52 14.52 0 0 0 0 1.55v.3c0 .3.06.85.1 1.44.06.82.13 1.74.15 2.15v4.53c.08 1.48.47 4.18 2.24 5.6a4.29 4.29 0 0 0 3.55.8A3 3 0 0 0 15 33a3 3 0 0 0 .56.65 4.31 4.31 0 0 0 2.59.69 5.09 5.09 0 0 0 3.07-.95 9 9 0 0 0 .8.72 8 8 0 0 0-1.61 1.36l-.26.28a6.47 6.47 0 0 0-1.7 2.49l1.37.37a5.53 5.53 0 0 1 1.37-1.89l.27-.29a4.84 4.84 0 0 1 1.95-1.4 9.05 9.05 0 0 0 3.59 1.2l.12-1.41a8.11 8.11 0 0 1-5.19-2.75 4.39 4.39 0 0 1-.93-1.76 4.09 4.09 0 0 1 .45-3.54 1.71 1.71 0 0 1 1.69-.33h.11c2.46.59 5 1.21 6.71 3l.12.13A8.69 8.69 0 0 1 32 37zm109.28 22.72V25.59h11.31v4.13h-6.75v10.37h4.32v4.14h-4.32v11.35h6.75v4.14zm110.57-34.13h-4.56v34.13h4.56zm4 17l5.34-17H257l-5.3 17.16V43l6.2 16.68h4.56zM170 42h3q2 0 2-2.47V32.2q0-2.47-2-2.47h-3zm-4.56-16.44h8.94q5.23 0 5.23 5.85v8.41q0 4.47-2.71 5.66l4 14.21h-4.33l-3.82-13.78H170v13.81h-4.56zM279.87 42h3q2 0 2-2.47V32.2q0-2.47-2-2.47h-3zm-4.56-16.45h8.93q5.23 0 5.23 5.85v8.41q0 4.47-2.71 5.66l4 14.21h-4.33L282.6 45.9h-2.76v13.82h-4.56zm-156.66 30h3.42q1.81 0 1.81-1.52V32.2q0-2.47-2-2.47h-3.18zm-4.56 4.13V25.59H122q6.42 0 6.42 6.56v22.63q0 4.94-5.47 4.94zm-23.6-6.13a1.79 1.79 0 0 0 2 2h2.33q1.81 0 1.81-2V31.72a1.79 1.79 0 0 0-2-2h-2.15a1.76 1.76 0 0 0-2 2v21.87m1 6.13q-5.51 0-5.51-5.8V31.44q0-5.85 5.46-5.85h4.37q5.47 0 5.47 5.85v22.48q0 5.8-5.51 5.8zm-18.35-8v2.19q0 5.8-5.47 5.8h-2.98q-5.47 0-5.47-5.8V31.39q0-5.8 5.47-5.8h2.95q5.47 0 5.47 5.8v3.85h-4.57v-3.52a1.79 1.79 0 0 0-2-2h-.9q-1.81 0-1.81 2v21.87q0 2 1.81 2h1.14q1.81 0 1.81-2v-1.86zm161.35 0v2.19q0 5.8-5.47 5.8H226q-5.47 0-5.46-5.8V31.39q0-5.8 5.46-5.8h3q5.46 0 5.47 5.8v3.85h-4.56v-3.52a1.79 1.79 0 0 0-2-2h-.9q-1.81 0-1.81 2v21.87q0 2 1.81 2h1.14q1.8 0 1.81-2v-1.86zM197 53.59a1.79 1.79 0 0 0 2 2h2.33q1.8 0 1.81-2V31.72a1.79 1.79 0 0 0-2-2H199a1.76 1.76 0 0 0-2 2v21.87m1 6.13q-5.52 0-5.51-5.8V31.44q0-5.85 5.47-5.85h4.37q5.46 0 5.47 5.85v22.48q0 5.8-5.51 5.8z" data-name="Layer 1"/></svg>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment