Skip to content
This repository was archived by the owner on Apr 24, 2018. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,20 @@ install: vagga _build nodejs-7-ubuntu-bin

# Run tests
script: vagga test

# Docker analog
sudo: required

language: javascript

services:
- docker

before_install:
- docker build -t events-parser:latest .
- docker run --rm events-parser:latest
- docker ps -a

script:
- npm i standard
- standard
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:latest
MAINTAINER Maksym Vlasov <m.vlasov@post.com>
LABEL Name=events-parser Version=0.5.1
COPY package.json /tmp/package.json
RUN cd /tmp && npm install --production
RUN mkdir -p /usr/src/app && mv /tmp/node_modules /usr/src
WORKDIR /usr/src/app
COPY . /usr/src/app
EXPOSE 3000
CMD node main.js
25 changes: 25 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Licensed under the Apache License, Version 2.0.

+
* [Vagga](http://vagga.readthedocs.io/en/latest/installation.html) (higly recomended)
+
* [Docker](https://docs.docker.com/engine/getstarted/)
<br>OR
* [Node.JS](https://nodejs.org/uk/) 4+ (not recomended)

Expand Down Expand Up @@ -65,6 +67,29 @@ $ vagga run
```


### Docker-way


#### Add enviroment keys
Add variables to your `Dockerfile` on this pattern:
```bash
ENV %variable% %value%
```

**[All supported enviroment variables](#all-supported-enviroment-variables)**

#### Build image
```bash
$ docker build -f Dockerfile -t events-parser:latest .
```

#### Run
```bash
$ docker run --rm events-parser:latest
```



### NodeJS-way


Expand Down