Skip to content

Instantly share code, notes, and snippets.

@adamhipster
Created May 5, 2018 13:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adamhipster/1c5507a09c8fd9be446a9be38e7aa43c to your computer and use it in GitHub Desktop.
Save adamhipster/1c5507a09c8fd9be446a9be38e7aa43c to your computer and use it in GitHub Desktop.
Install Sharelatex (their getting started guide is confusing)
# Download compose file
curl https://github.com/sharelatex/sharelatex/blob/master/docker-compose.yml > ./docker-compose.yml
# Run docker-compose
docker-compose run -d \
-v ~/sharelatex_data:/var/lib/sharelatex \
-p 5000:80 \
--name=sharelatex \
sharelatex
# Create admin account
sharelatex /bin/bash -c "cd /var/www/sharelatex; grunt user:create-admin --email my_email@gmail.com"
# Install full TeXLive
docker exec sharelatex /bin/bash -c "cd /usr/local/texlive && curl http://ctan.triasinformatica.nl/systems/texlive/tlnet/update-tlmgr-latest.sh > update-tlmgr-latest.sh"
docker exec sharelatex /bin/bash -c "cd /usr/local/texlive && chmod +x ./update-tlmgr-latest.sh && ./update-tlmgr-latest.sh"
docker exec sharelatex tlmgr install scheme-full
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment