add commit-watcher;

Signed-off-by: Jess Frazelle <me@jessfraz.com>
This commit is contained in:
Jess Frazelle 2016-09-22 01:59:15 -07:00
parent 543e540010
commit 5b94937a1c
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3
2 changed files with 57 additions and 0 deletions

29
commit-watcher/Dockerfile Normal file
View File

@ -0,0 +1,29 @@
FROM mhart/alpine-node:5
RUN apk add --no-cache \
ca-certificates \
libxml2 \
libxslt \
ruby
RUN set -x \
&& apk add --no-cache --virtual .build-deps \
build-base \
cmake \
git \
libxml2-dev \
libxslt-dev \
mariadb-dev \
ruby-dev \
&& git clone --depth 1 https://github.com/srcclr/commit-watcher.git /usr/src/commit-watcher \
&& cd /usr/src/commit-watcher \
&& gem install bundler io-console --no-rdoc --no-ri \
&& bundle config build.nokogiri --use-system-libraries \
&& bundle install \
&& apk del .build-deps
WORKDIR /usr/src/commit-watcher
COPY database.yml /usr/src/commit-watcher/config/database.yml
CMD ["./scripts/deploy"]

View File

@ -0,0 +1,28 @@
default: &default
adapter: mysql2
encoding: utf8
pool: 5
username: root
password:
# Use this for local mysql instances
# socket: /tmp/mysql.sock
# Use this for Docker
host: localhost:3306
development:
<<: *default
database: commit_watcher_development
# Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake".
# Do not set this db to the same as development or production.
test:
<<: *default
database: commit_watcher_test
production:
<<: *default
username: commit_watcher
password: <%= ENV['COMMIT_WATCHER_DATABASE_PASSWORD'] %>
database: commit_watcher_production