Skip to content

Commit

Permalink
Remove old Python server
Browse files Browse the repository at this point in the history
I don't even know if this works any more. 2.0 has a new server,
so remove this in preparation for that.
  • Loading branch information
bfirsh committed Jul 4, 2018
1 parent e38d93b commit 6d25cd3
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 1,003 deletions.
12 changes: 0 additions & 12 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,5 @@
/node_modules
/yarn-error.log

# arxiv-sanity-sanity prototype
/server/papers
/server/github-access-token.txt

# emacs
*_flymake.py

# python
*.egg
*.egg-info
*.pyc

# integration test output
tests/__image_snapshots__/__diff_output__
11 changes: 2 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN sed -i 's/deb.debian.org/mirrors.kernel.org/g' /etc/apt/sources.list
# Change logs here: https://packages.debian.org/buster/texlive
RUN apt-get update -qq && apt-get install -qy texlive-full=2018.20180505*

# Node.js and Python dependencies
# Node.js dependencies
RUN apt-get update -qq && apt-get install -qy curl gnupg2
RUN curl -sL https://deb.nodesource.com/setup_8.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
Expand All @@ -17,8 +17,6 @@ RUN apt-get update -qq && apt-get install -qy \
ca-certificates \
nodejs=8.11.3* \
git-core \
python \
python-pip \
yarn=1.7.0*

# latexml dependencies
Expand All @@ -27,7 +25,7 @@ RUN apt-get update -qq && apt-get install -qy \
libio-string-perl libjson-xs-perl libtext-unidecode-perl \
libparse-recdescent-perl liburi-perl libuuid-tiny-perl libwww-perl \
libxml2 libxml-libxml-perl libxslt1.1 libxml-libxslt-perl \
imagemagick libimage-magick-perl perl-doc
imagemagick libimage-magick-perl perl-doc build-essential

# Google Chrome for Puppeteer
# https://github.com/GoogleChrome/puppeteer/blob/master/docs/troubleshooting.md
Expand Down Expand Up @@ -60,10 +58,6 @@ RUN mkdir -p /app /node_modules
RUN chown engrafo:engrafo /app /node_modules
WORKDIR /app

# server
COPY server/requirements.txt /app/server/
RUN pip install -r server/requirements.txt

# Run user as non privileged.
USER engrafo

Expand All @@ -75,7 +69,6 @@ COPY package.json yarn.lock /
RUN cd /; yarn install --pure-lockfile
ENV PATH /node_modules/.bin:$PATH

ENV PYTHONUNBUFFERED=1
ENV PATH="/app/bin:${PATH}"

COPY . /app
Empty file removed server/__init__.py
Empty file.
242 changes: 0 additions & 242 deletions server/arxiv-sanity-snapshots/live-20170727.html

This file was deleted.

237 changes: 0 additions & 237 deletions server/arxiv-sanity-snapshots/top-20170727.html

This file was deleted.

125 changes: 0 additions & 125 deletions server/debug_panels.py

This file was deleted.

3 changes: 0 additions & 3 deletions server/requirements.txt

This file was deleted.

Loading

0 comments on commit 6d25cd3

Please sign in to comment.