Public Repository

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

Sharelatex for raspberry pi

Dockerfile:


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 http://nodejs.org/dist/v0.10.21/node-v0.10.21-linux-arm-pi.tar.gz; \
    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 https://github.com/sharelatex/sharelatex.git; \
    cd sharelatex; \
    npm install; \
    npm install -g grunt-cli; \
    grunt install;

ADD sharelatex.sh /usr/bin/sharelatex.sh

ADD settings.development.coffee /etc/sharelatex/settings.coffee

RUN apt-get install -y wget

RUN wget http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz; \
    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

CMD sharelatex.sh

EXPOSE 3000

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 joe@example.com
# click the url and set your password
# new users can be registred at http://localhost:3000/admin/register
Docker Pull Command
Owner
mukumuku

Comments (0)