Public Repository

Last pushed: 3 years ago
Short Description
sharelatex for raspberry pi 2
Full Description

Sharelatex for raspberry pi


FROM armv7/armhf-baseimage:0.9.16

RUN apt-get update

RUN apt-get install -y aspell aspell-en aspell-am aspell-de aspell-de-alt 

RUN apt-get install -y --force-yes git mongodb-server redis-server wget sudo time build-essential python zlib1g-dev unzip

RUN wget; \
    tar xvf node-v0.10.21-linux-arm-pi.tar.gz; \
    cp -r node-v0.10.21-linux-arm-pi/* /usr/;

RUN git clone -b v0.1.4 --single-branch; \
    cd sharelatex; \
    npm install; \
    npm install -g grunt-cli; \
    grunt install;

ADD /usr/bin/

ADD /etc/sharelatex/

RUN apt-get install -y wget

RUN wget; \
    mkdir /install-tl-unx; \
    tar -xvf install-tl-unx.tar.gz -C /install-tl-unx --strip-components=1

RUN echo "selected_scheme scheme-basic" >> /install-tl-unx/texlive.profile; \
    /install-tl-unx/install-tl -profile /install-tl-unx/texlive.profile

RUN rm -r /install-tl-unx; \
    rm install-tl-unx.tar.gz

ENV PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/texlive/2015/bin/armhf-linux/

RUN tlmgr install latexmk



Run it

mkdir /srv/sharelatex-data
docker run -d -p 3000:3000 -v /srv/sharelatex-data:/data rpi-sharelatex

Create user

docker ps

For container id

docker exec -it <container id> bash
cd /sharelatex/web
grunt create-admin-user --email
# click the url and set your password
# new users can be registred at http://localhost:3000/admin/register
Docker Pull Command