mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-23 07:03:53 +00:00
Basic docker file.
This commit is contained in:
parent
6bc78ccf77
commit
c38d903f92
3 changed files with 73 additions and 0 deletions
53
services/document-updater/.dockerignore
Normal file
53
services/document-updater/.dockerignore
Normal 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
|
12
services/document-updater/Dockerfile
Normal file
12
services/document-updater/Dockerfile
Normal 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
|
|
@ -0,0 +1,8 @@
|
|||
#! /usr/bin/env bash
|
||||
|
||||
service redis-server start
|
||||
service mongodb start
|
||||
|
||||
cd /document-updater
|
||||
npm install
|
||||
grunt test:acceptance:docker
|
Loading…
Reference in a new issue