Skip to content
This repository was archived by the owner on Oct 1, 2022. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 21 additions & 4 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,33 @@
FROM python:3.6
FROM python:3.7 AS builder

RUN pip install --user pipenv

RUN useradd -ms /bin/bash servicex

# Tell pipenv to create venv in the current directory
ENV PIPENV_VENV_IN_PROJECT=1

ADD Pipfile.lock Pipfile /home/servicex/

WORKDIR /home/servicex
RUN /root/.local/bin/pipenv sync
RUN /root/.local/bin/pipenv install gunicorn

FROM python:3.7 AS runtime

RUN useradd -ms /bin/bash servicex

COPY --from=builder /home/servicex/.venv /home/servicex/.venv

WORKDIR /home/servicex
RUN mkdir ./servicex

COPY README.rst README.rst
COPY setup.py setup.py
COPY setup.cfg setup.cfg
COPY requirements.txt requirements.txt
RUN pip install -e .
RUN pip install gunicorn
#COPY requirements.txt requirements.txt
#RUN pip install -e .
#RUN pipenv install gunicorn

COPY *.py docker-dev.conf boot.sh ./
COPY servicex/ ./servicex
Expand Down
34 changes: 34 additions & 0 deletions Pipfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
[[source]]
url = "https://pypi.org/simple"
verify_ssl = true
name = "pypi"

[packages]
flask = "<2.0"
Flask-WTF = "==0.14.3"
WTForms = "==2.3.3"
email-validator = "==1.1.2"
pika = "==1.2.0"
flask-restful = "==0.3.8"
flask-jwt-extended = "==3.25.1"
passlib = "==1.7.4"
flask-sqlalchemy = "==2.5.1"
Flask-Migrate = "==2.7.0"
kubernetes = "==12.0.1"
minio = "==7.0.2"
psycopg2 = "==2.8.6"
globus_sdk = "==2.0.1"
cryptography = "1.6.0"
bootstrap-flask = "==2.0.1"
humanize = "==3.5.0"
MarkupSafe = "==2.0.1"

[dev-packages]
coverage = "5.5"
flake8 = "3.9.0"
pytest = "6.2.3"
pytest-mock = "3.2.0"
pytest-flask = "1.0.0"

[requires]
python_version = "3.7"
Loading