#docker-sharelatex
This builds and configures a docker image with Ubuntu 14.04 and TeX Live 2014
##Pull with:
docker pull cfriedline/sharelatex
##Build with:
Given that TeX Live is huge, it's a better idea to either wget the iso or download it via torrent. For the torrent,
just put in the docker-sharelatex
directory named texlive2014.iso
.
git clone https://github.com/cfriedline/docker-sharelatex.git
cd docker-sharelatex
wget http://mirror.unl.edu/ctan/systems/texlive/Images/texlive2014.iso
docker build -t cfriedline/sharelatex:sharelatex .
###Caveat
For the time being, there's a bug (#148) with the current procedure. I've fixed it in my image on the hub, but basically:
- build according to the above
- run your image interactively (
-i -t ... /bin/bash
) - comment out the smoke test in
/sharelatex/clsi/app.coffee
(lines 53-56) - go back to
/sharelatex
andgrunt install
to recompile - exit your image and
commit
back with the original name - test/run as above
Note: This has been amended in the Dockerfile with the addition of a custom app.coffee
##Test with: docker run -p 3000:3000 -v /path/to/db:/data/db -v /path/to/user_files:/sharelatex/user_files cfriedline/sharelatex:sharelatex run_sharelatex.sh
For example:
docker run -p 3000:3000 -v /mnt/sda1/sharelatex/db:/data/db -v /mnt/sda1/sharelatex/user_files:/sharelatex/user_files cfriedline/sharelatex:sharelatex run_sharelatex.sh
##Run with:
docker run -d -p 3000:3000 -v /path/to/db:/data/db -v /path/to/repo/user_files:/sharelatex/user_files cfriedline/sharelatex:sharelatex run_sharelatex.sh
For example:
docker run -d -p 3000:3000 -v /mnt/sda1/sharelatex/db:/data/db -v /mnt/sda1/sharelatex/user_files:/sharelatex/user_files cfriedline/sharelatex:sharelatex run_sharelatex.sh
Note: if you're running with a boot2docker virtual machine, you need to also forward the local port tcp/3000 to the guest tcp/3000
Based on the originals from ShareLaTex and Tiago's sharelatex-docker