overleaf/docker-image
2020-02-17 13:50:21 +01:00
..
hotfix Merging docker-image to master 2020-02-17 13:50:21 +01:00
init_scripts Merging docker-image to master 2020-02-17 13:50:21 +01:00
logrotate Merging docker-image to master 2020-02-17 13:50:21 +01:00
nginx Merging docker-image to master 2020-02-17 13:50:21 +01:00
runit Merging docker-image to master 2020-02-17 13:50:21 +01:00
.dockerignore Merging docker-image to master 2020-02-17 13:50:21 +01:00
.editorconfig Merging docker-image to master 2020-02-17 13:50:21 +01:00
.gitignore Merging docker-image to master 2020-02-17 13:50:21 +01:00
Dockerfile Merging docker-image to master 2020-02-17 13:50:21 +01:00
Dockerfile-base Merging docker-image to master 2020-02-17 13:50:21 +01:00
git-revision.sh Merging docker-image to master 2020-02-17 13:50:21 +01:00
Makefile Merging docker-image to master 2020-02-17 13:50:21 +01:00
README.md Merging docker-image to master 2020-02-17 13:50:21 +01:00
services.js Merging docker-image to master 2020-02-17 13:50:21 +01:00
settings.coffee Merging docker-image to master 2020-02-17 13:50:21 +01:00

Overleaf Docker Image

This is the source for building the Overleaf community-edition docker image.

End-User Install

Please see the offical wiki for install guides

Development

This repo contains two dockerfiles, Dockerfile-base, which builds the sharelatex/sharelatex-base image, and Dockerfile which builds the sharelatex/sharelatex (or "community") image.

The Base image generally contains the basic dependencies like wget and aspell, plus texlive. We split this out because it's a pretty heavy set of dependencies, and it's nice to not have to rebuild all of that every time.

The sharelatex/sharelatex image extends the base image and adds the actual Overleaf code and services.

Use make build-base and make build-community to build these images.

How the Overleaf code gets here

This repo uses the public Overleaf repository, which used to be the main public source for the Overleaf system.

That repo is cloned down into the docker image, and a script then installs all the services.

How services run inside the container

We use the Phusion base-image (which is extended by our base image) to provide us with a VM-like container in which to run the Overleaf services. Baseimage uses the runit service manager to manage services, and we add our init-scripts from the ./runit folder.