TeX Live!
This commit is contained in:
parent
7615e29b37
commit
8d5e703059
|
@ -1,5 +1,6 @@
|
||||||
FROM ubuntu:xenial
|
FROM ubuntu:xenial
|
||||||
|
|
||||||
|
# Install tools
|
||||||
RUN apt-get update
|
RUN apt-get update
|
||||||
RUN apt-get install -y emacs-nox openssh-server
|
RUN apt-get install -y emacs-nox openssh-server
|
||||||
RUN apt-get install -y ruby ruby-dev build-essential libsqlite3-dev sqlite3
|
RUN apt-get install -y ruby ruby-dev build-essential libsqlite3-dev sqlite3
|
||||||
|
@ -9,20 +10,29 @@ RUN mkdir /var/run/sshd
|
||||||
# SSH login fix. Otherwise user is kicked off after login
|
# SSH login fix. Otherwise user is kicked off after login
|
||||||
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
RUN sed 's@session\s*required\s*pam_loginuid.so@session optional pam_loginuid.so@g' -i /etc/pam.d/sshd
|
||||||
|
|
||||||
|
# Copy Emacs Shell
|
||||||
COPY tmp/eshell /usr/bin/
|
COPY tmp/eshell /usr/bin/
|
||||||
|
|
||||||
|
# Install Ruby gems
|
||||||
COPY tmp/Gemfile* /tmp/
|
COPY tmp/Gemfile* /tmp/
|
||||||
WORKDIR /tmp
|
WORKDIR /tmp
|
||||||
RUN bundle install
|
RUN bundle install
|
||||||
|
|
||||||
ENV app /app
|
|
||||||
RUN mkdir $app
|
|
||||||
COPY tmp/run_server.sh /app/
|
|
||||||
WORKDIR $app
|
|
||||||
|
|
||||||
#ENV BUNDLE_PATH /box
|
#ENV BUNDLE_PATH /box
|
||||||
#ADD ../. $app
|
#ADD ../. $app
|
||||||
|
|
||||||
|
# TeX Live
|
||||||
|
ENV TEX /tex
|
||||||
|
RUN mkdir $TEX
|
||||||
|
COPY tmp/texlive $TEX
|
||||||
|
RUN echo 'export PATH=$PATH:/tex/bin/x86_64-linux' > /etc/profile.d/texlive.sh
|
||||||
|
|
||||||
|
# Copy run_server
|
||||||
|
ENV app /app
|
||||||
|
RUN mkdir $app
|
||||||
|
COPY tmp/run_server.sh $app
|
||||||
|
WORKDIR $app
|
||||||
|
|
||||||
VOLUME /home
|
VOLUME /home
|
||||||
|
|
||||||
EXPOSE 22
|
EXPOSE 22
|
||||||
|
|
|
@ -1,8 +1,22 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
ORIG_DIR=`pwd`
|
||||||
|
rm -r tmp
|
||||||
mkdir tmp
|
mkdir tmp
|
||||||
cp ../init_passwd.rb ./tmp/
|
cp ../init_passwd.rb ./tmp/
|
||||||
cp ../run_server.sh ./tmp/
|
cp ../run_server.sh ./tmp/
|
||||||
cp ../eshell ./tmp/
|
cp ../eshell ./tmp/
|
||||||
cp ../Gemfile* ./tmp/
|
cp ../Gemfile* ./tmp/
|
||||||
|
|
||||||
|
# TeX Live
|
||||||
|
#if [ "$(uname)" == "Darwin" ]; then
|
||||||
|
# cd texlive/bin/x86_64-darwin
|
||||||
|
#elif [ "$(expr substr $(uname -s) 1 5)" == "Linux" ]; then
|
||||||
|
# cd texlive/bin/x86_64-linux
|
||||||
|
#fi
|
||||||
|
#./tlmgr update --all
|
||||||
|
cd $ORIG_DIR
|
||||||
|
cp -r texlive ./tmp/
|
||||||
|
rm -r tmp/texlive/bin/x86_64-darwin
|
||||||
|
|
||||||
docker build -t emacs-collab:latest .
|
docker build -t emacs-collab:latest .
|
||||||
rm -R tmp
|
rm -R tmp
|
||||||
|
|
Loading…
Reference in New Issue
Block a user