Basic docker file.

This commit is contained in:
Shane Kilkelly 2016-07-07 16:07:14 +01:00
parent 6bc78ccf77
commit c38d903f92
3 changed files with 73 additions and 0 deletions

View file

@ -0,0 +1,53 @@
compileFolder
Compiled source #
###################
*.com
*.class
*.dll
*.exe
*.o
*.so
# Packages #
############
# it's better to unpack these files and commit the raw source
# git has its own built in compression methods
*.7z
*.dmg
*.gz
*.iso
*.jar
*.rar
*.tar
*.zip
# Logs and databases #
######################
*.log
*.sql
*.sqlite
# OS generated files #
######################
.DS_Store?
ehthumbs.db
Icon?
Thumbs.db
/node_modules/*
app.js
app/js/*
test/unit/js/*
test/acceptance/js/*
forever/
**.swp
# Redis cluster
**/appendonly.aof
**/dump.rdb
**/nodes.conf

View file

@ -0,0 +1,12 @@
FROM ubuntu
COPY ./test/acceptance/docker-entrypoint.sh /entrypoint.sh
RUN apt-get update && apt-get upgrade
RUN apt-get install build-essential redis-server mongodb-server nodejs npm
RUN ln -s /usr/bin/nodejs /usr/bin/node
RUN mkdir /document-updater
VOLUME /document-updater
ENTRYPOINT /entrypoint.sh

View file

@ -0,0 +1,8 @@
#! /usr/bin/env bash
service redis-server start
service mongodb start
cd /document-updater
npm install
grunt test:acceptance:docker