Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
ipgallery
/
devops
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Registry
Issues
0
Merge Requests
0
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d0aa5f4c
authored
Dec 10, 2017
by
Amir Aharon
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
dockerize this!
parent
a21490d3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
28 additions
and
1 deletions
tools/wsEventEmulator/Dockerfile
tools/wsEventEmulator/docker-compose.yml
tools/wsEventEmulator/package.json
tools/wsEventEmulator/Dockerfile
0 → 100644
View file @
d0aa5f4c
FROM
node:8-alpine
# Create app directory
WORKDIR
/usr/src/app
## NODE PART
# Install app dependencies
COPY
package.json .
# install dependencies
RUN
npm install
# Bundle app source
COPY
app.js .
CMD
[ "npm", "start"]
\ No newline at end of file
tools/wsEventEmulator/docker-compose.yml
0 → 100644
View file @
d0aa5f4c
version
:
'
2'
services
:
ws-event-simulator
:
environment
:
file
:
"
/tmp/events.json"
delay
:
10
image
:
municipalitybank.com:5050/mcx/devops/ws-event-simulator
ports
:
-
"
8053:8053"
volumes
:
-
"
/home/amir/git/ipgallery/transportation/doc/events.json:/tmp/events.json"
\ No newline at end of file
tools/wsEventEmulator/package.json
View file @
d0aa5f4c
...
@@ -4,7 +4,8 @@
...
@@ -4,7 +4,8 @@
"description"
:
"emulate events in websocket"
,
"description"
:
"emulate events in websocket"
,
"main"
:
"app.js"
,
"main"
:
"app.js"
,
"scripts"
:
{
"scripts"
:
{
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
"test"
:
"echo
\"
Error: no test specified
\"
&& exit 1"
,
"start"
:
"node app.js"
},
},
"keywords"
:
[
"keywords"
:
[
"event"
,
"event"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment