-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #149 from arXiv/develop
Pre-release merge for base v0.16.1
- Loading branch information
Showing
33 changed files
with
707 additions
and
500 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -123,3 +123,4 @@ dist/ | |
*.egg-info/ | ||
*.DS_Store | ||
.sass-cache/ | ||
.pytest_cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,25 +2,41 @@ | |
|
||
FROM centos:centos7 | ||
|
||
# | ||
LABEL maintainer="arXiv <[email protected]>" \ | ||
org.opencontainers.image.authors="arXiv IT Team <[email protected]>" \ | ||
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\ | ||
|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.