Skip to content
This repository was archived by the owner on Oct 29, 2025. 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
4 changes: 4 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
FROM node:latest
ADD . /app
WORKDIR /app
ENTRYPOINT ["npm", "start"]
11 changes: 10 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

CFPB's internal chat bot built on [Hubot](http://hubot.github.com).

## Installation
## Installation (Docker-less)

1. Install [Node.js](https://nodejs.org) (v4 or greater).
1. Install and start [Redis](http://redis.io/).
Expand All @@ -13,6 +13,15 @@ CFPB's internal chat bot built on [Hubot](http://hubot.github.com).

See [INSTALL](INSTALL.md) for complete installation steps.

## Installation using Docker

1. Clone this repo.
1. `cp .env.sample .env`
1. Add `export REDIS_URL="redis://redis:6379"` to the end of `.env`
1. Add or modify any other settings in `.env`
1. Run `docker-compose up -d`
1. Run `docker-compose run cfpbot start`

## Contributing

**IMPORTANT:** All git commits to this repo should have messages consisting of a single [emoji code](http://www.emoji-cheat-sheet.com/).
Expand Down
9 changes: 9 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
version: '3'
services:
cfpbot:
build: .
volumes:
- .:/app
redis:
image: "redis:latest"
2 changes: 1 addition & 1 deletion start.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
#!/bin/bash

ENV_FILE="./.env"
ENV_PRIVATE_FILE="./.env_private"
Expand Down