Skip to content

cfriedline/docker-sharelatex

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#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:

  1. build according to the above
  2. run your image interactively (-i -t ... /bin/bash)
  3. comment out the smoke test in /sharelatex/clsi/app.coffee (lines 53-56)
  4. go back to /sharelatex and grunt install to recompile
  5. exit your image and commit back with the original name
  6. 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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published