Commit 4f13aae2 authored by TrungND's avatar TrungND

first commit

parents
Pipeline #1345 failed with stages
# Default ignored files
/shelf/
/workspace.xml
# Datasource local storage ignored files
/dataSources/
/dataSources.local.xml
# Editor-based HTTP Client requests
/httpRequests/
<?xml version="1.0" encoding="UTF-8"?>
<module type="JAVA_MODULE" version="4">
<component name="NewModuleRootManager" inherit-compiler-output="true">
<exclude-output />
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="JavaScriptSettings">
<option name="languageLevel" value="ES6" />
</component>
<component name="ProjectRootManager" version="2" languageLevel="JDK_11" project-jdk-name="11" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/out" />
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/cicd_started.iml" filepath="$PROJECT_DIR$/.idea/cicd_started.iml" />
</modules>
</component>
</project>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
</project>
\ No newline at end of file
FROM node:12.18-alpine
WORKDIR /app
COPY . .
RUN npm install && npm install -g pm2
CMD ["pm2-runtime", "ecosystem.config.js"]
\ No newline at end of file
version: "3.4"
services:
app:
image: learning-docker:cicd-started
ports:
- "3000:3000"
restart: unless-stopped
healthcheck:
test: wget --quiet --tries=1 --spider http://localhost:3000 || exit 1z
interval: 30s
timeout: 10s
retries: 5
\ No newline at end of file
module.exports = {
apps: [{
name: 'speech-api',
script: 'npm',
args: 'start',
exec_mode: 'fork', // need explicitly declare mode otherwise it will fallback to cluster mode and cause infinite reload
instances: 1,
autorestart: true,
watch: false,
max_memory_restart: '1G'
}],
}
{
"name": "gitlabci-started",
"version": "1.0.0",
"description": "",
"main": "server.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "node server.js"
},
"author": "Mai Trung Duc <maitrungduc1410@gmail.com> (https://maitrungduc1410.github.io)",
"license": "MIT",
"dependencies": {
"express": "^4.17.1"
}
}
const express = require('express')
const app = express()
const port = 3000
app.get('/', (req, res) => res.send('Hello World!'))
app.listen(port, () => console.log(`Example app listening at http://localhost:${port}`))
\ 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