diff --git a/services/document-updater/.dockerignore b/services/document-updater/.dockerignore new file mode 100644 index 0000000000..ad21f261b4 --- /dev/null +++ b/services/document-updater/.dockerignore @@ -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 diff --git a/services/document-updater/Dockerfile b/services/document-updater/Dockerfile new file mode 100644 index 0000000000..a4133cb030 --- /dev/null +++ b/services/document-updater/Dockerfile @@ -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 \ No newline at end of file diff --git a/services/document-updater/test/acceptance/docker-entrypoint.sh b/services/document-updater/test/acceptance/docker-entrypoint.sh new file mode 100644 index 0000000000..04453f402c --- /dev/null +++ b/services/document-updater/test/acceptance/docker-entrypoint.sh @@ -0,0 +1,8 @@ +#! /usr/bin/env bash + +service redis-server start +service mongodb start + +cd /document-updater +npm install +grunt test:acceptance:docker