Skip to content

Commit

Permalink
Merge pull request #149 from arXiv/develop
Browse files Browse the repository at this point in the history
Pre-release merge for base v0.16.1
  • Loading branch information
erickpeirson authored Aug 5, 2019
2 parents 0bbb141 + 5ec5c2c commit 74f8019
Show file tree
Hide file tree
Showing 33 changed files with 707 additions and 500 deletions.
137 changes: 137 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,137 @@
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class

# C extensions
*.so

# Distribution / packaging
.Python
env/
build/
develop-eggs/
dist/
downloads/
eggs/
.eggs/
lib/
lib64/
parts/
sdist/
var/
wheels/
*.egg-info/
.installed.cfg
*.egg

# PyInstaller
# Usually these files are written by a python script from a template
# before PyInstaller builds the exe, so as to inject date/other infos into it.
*.manifest
*.spec

# Installer logs
pip-log.txt
pip-delete-this-directory.txt

# Unit test / coverage reports
htmlcov/
.tox/
.coverage
.coverage.*
.cache
nosetests.xml
coverage.xml
*.cover
.hypothesis/

# Translations
*.mo
*.pot

# Django stuff:
*.log
local_settings.py

# Flask stuff:
instance/
.webassets-cache

# Scrapy stuff:
.scrapy

# Sphinx documentation
docs/_build/

# PyBuilder
target/

# Jupyter Notebook
.ipynb_checkpoints

# pyenv
.python-version

# celery beat schedule file
celerybeat-schedule

# SageMath parsed files
*.sage.py

# dotenv
.env

# virtualenv
requirements.txt
.venv
venv/
ENV/

# Spyder project settings
.spyderproject
.spyproject

# Rope project settings
.ropeproject

# mkdocs documentation
/site

# sphinx
docs/source/_build

# mypy
.mypy_cache/

.coverage
.DS_Store
zero.db

# Editor files & misc
*~
*.idea
*.vscode
default.nix
*.db
*#*
*.#*

*.pyc
build/
dist/
*.egg-info/
*.DS_Store
.sass-cache/

*tests/*
.*
README.md
update-docs.sh
LICENSE
.pylintrc
.coverage
.coveragerc
.gitignore
docs/*
four
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,4 @@ dist/
*.egg-info/
*.DS_Store
.sass-cache/
.pytest_cache/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ script:
- pip install pipenv
- pipenv install --dev
- pipenv install ./
- pipenv run nose2 -s fourohfour
- pipenv run nose2 -s arxiv --with-coverage
- "./tests/lintstats.sh"
- pipenv run python tests/run_app_tests.py
Expand Down
45 changes: 30 additions & 15 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,41 @@

FROM centos:centos7

#
LABEL maintainer="arXiv <nextgen@arxiv.org>" \
org.opencontainers.image.authors="arXiv IT Team <nextgen@arxiv.org>" \
org.opencontainers.image.version="1.0" \
org.opencontainers.image.title="arXiv Base" \
org.opencontainers.image.description="Base image for arXiv NG applications" \
org.opencontainers.image.url="https://arxiv.github.io/arxiv-base" \
org.opencontainers.image.source="https://github.com/arxiv/arxiv-base" \
org.opencontainers.image.vendor="arXiv.org" \
org.opencontainers.image.licenses="MIT"

LABEL version="0.15.9"

ENV LC_ALL=en_US.UTF-8 \
LANG=en_US.UTF-8 \
APPLICATION_ROOT="/"

# Below we use && chaining and an embedded script in a single RUN
# command to keep image size and layer count to a minimum, while
# the embedded script will make 'docker build' fail fast
# if a package is missing.
#
RUN yum -y update && yum -y install epel-release \
&& yum -y install https://centos7.iuscommunity.org/ius-release.rpm \
&& yum -y update --security \
&& echo $'#!/bin/bash\n\
RUN yum -y install epel-release \
&& yum -y install https://centos7.iuscommunity.org/ius-release.rpm \
&& echo $'#!/bin/bash\n\
PKGS_TO_INSTALL=$(cat <<-END\n\
ca-certificates\n\
gcc\n\
gcc-c++ \n\
git\n\
mariadb-devel\n\
python36u\n\
python36u-devel\n\
which\n\
sqlite\n\
wget\n\
which\n\
END\n\
)\n\
for pkg in ${PKGS_TO_INSTALL}; do\n\
Expand All @@ -31,16 +47,15 @@ for pkg in ${PKGS_TO_INSTALL}; do\n\
}\n\
done\n\
yum -y install ${PKGS_TO_INSTALL}\n' >> /tmp/safe_yum.sh \
&& /bin/bash /tmp/safe_yum.sh \
&& yum clean all
&& /bin/bash /tmp/safe_yum.sh \
&& yum clean all \
&& rm /tmp/safe_yum.sh \
&& rm -rf /tmp/* /var/tmp/* \
&& rm -rf /var/lib/apt/lists/*

RUN wget https://bootstrap.pypa.io/get-pip.py \
&& python3.6 get-pip.py

#
# This is needed by click: http://click.pocoo.org/5/python3/
#
ENV LC_ALL=en_US.UTF-8
ENV LANG=en_US.UTF-8
&& python3.6 get-pip.py \
&& pip install -U pip pipenv uwsgi \
&& rm -rf ~/.cache/pip

CMD /bin/bash
14 changes: 0 additions & 14 deletions Dockerfile-with-git

This file was deleted.

2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ typing-extensions = "*"

[dev-packages]
pydocstyle = "*"
mypy = "==0.670"
mypy = "==0.720"
pylint = "<2"
"nose2" = "*"
hypothesis = "*"
Expand Down
Loading

0 comments on commit 74f8019

Please sign in to comment.