Skip to content
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
5 changes: 5 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.git/
.env
.DS_Store
.gitignore
8 changes: 0 additions & 8 deletions .env.example

This file was deleted.

23 changes: 23 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
FROM node:10

LABEL maintainer="Amrut Jadhav <[email protected]>"

# Create app directory
RUN mkdir /usr/src/app

WORKDIR /usr/src/app

# Install app dependencies
# A wildcard is used to ensure both package.json AND package-lock.json are copied
# where available (npm@5+)
COPY package*.json ./

# If you are building your code for production
RUN npm install

# Bundle app source
COPY . .

EXPOSE 8080

CMD [ "npm", "start" ]
16 changes: 16 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,5 +71,21 @@ Everyone has their own unique development flow. Keeping this mind, **CardChecker
Check whether pull request is attached to card as attachment or not. There are some cases, where you have a card in development which don't require to do, any coding or it don't have any pull request. So in that case, you can skip pull request check using labels. You can configure which labels you want to skip and depending on that, **CardChecker** will decide whether to check pull request or not.
- *vcHostingDomain* - Version control hosting service domain name.
- *ignoreLabel* - Name of label on card, which if present, you want to skip pull request check.

#### Deployment
1. Docker
```
docker run \
-e "TRELLO_TOKEN=<TRELLO_TOKEN>" \
-e "TRELLO_KEY=<TRELLO_KEY>" \
-e "TRELLO_CALLBACK_URL=<HOST_ADDRESS>" \
-e "SLACK_WEBHOOK_URL=<SLACK_INCOMING_WEBHOOK_URL>" \
-e "TEAMS_WEBHOOK_URL=<TEAMS_INCOMING_WEBHOOK_URL>" \
-e "FLOCK_WEBHOOK_URL=<FLOCK_INCOMING_WEBHOOK_URL>" \
-e "APP_ENV=production" \
-e "DB_URI=<MONGODB_HOST_URL>" \
amrut007/card_checker
```

##### Companies using **CardChecker**
- [HivesLab](https://www.hiveslab.com/)
19 changes: 19 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
version: "3"
services:
card_checker:
image: amrut007/card-checker:latest
ports:
- '8080:8080'
depends_on:
- mongo
environment:
- APP_ENV=development
- PORT=8080
- DB_URI=mongo:27017/card_checker
volumes:
- ./:/usr/src/app
command: npm start
mongo:
image: mongo:4.1
ports:
- "27017"
1 change: 0 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require('dotenv').config()
const bodyParser = require('body-parser')
const express = require('express')
const app = express()
Expand Down
Loading