-
-
Notifications
You must be signed in to change notification settings - Fork 5
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 #29 from gmrukwa/develop
Release v2.3.10
- Loading branch information
Showing
9 changed files
with
83 additions
and
50 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
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
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
__version__ = '2.3.9' | ||
__version__ = '2.3.10' | ||
|
||
from ._seeding import seeded | ||
from ._utils import DivikResult | ||
|
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 |
---|---|---|
@@ -1,28 +1,36 @@ | ||
FROM python:3.7-slim | ||
FROM python:3.7-slim AS base | ||
ENV PYTHONUNBUFFERED TRUE | ||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
WORKDIR /app | ||
|
||
|
||
FROM base as builder | ||
RUN mkdir -p /install/lib/python3.7/site-packages | ||
ENV PYTHONPATH .:/install/lib/python3.7/site-packages | ||
RUN apt-get update &&\ | ||
apt-get install -y gcc &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PYTHONUNBUFFERED TRUE | ||
|
||
COPY requirements.txt /app/requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install --no-cache-dir -r requirements.txt | ||
FROM builder AS deps_builder | ||
COPY requirements.txt requirements.txt | ||
RUN pip install \ | ||
--no-cache-dir \ | ||
--prefix=/install \ | ||
--no-warn-script-location \ | ||
-r requirements.txt | ||
|
||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
|
||
FROM builder as divik_builder | ||
COPY --from=deps_builder /install /usr/local | ||
COPY . /app | ||
RUN python setup.py install --prefix=/install | ||
|
||
RUN python setup.py install | ||
|
||
FROM base | ||
EXPOSE 8050 | ||
|
||
VOLUME /data | ||
|
||
WORKDIR /data | ||
|
||
RUN rm -rf /app | ||
COPY --from=deps_builder /install /usr/local | ||
COPY --from=divik_builder /install /usr/local |
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 |
---|---|---|
@@ -1,25 +1,35 @@ | ||
FROM python:3.7-slim | ||
FROM python:3.7-slim AS base | ||
ENV PYTHONUNBUFFERED TRUE | ||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
WORKDIR /app | ||
|
||
|
||
FROM base as builder | ||
RUN mkdir -p /install/lib/python3.7/site-packages | ||
ENV PYTHONPATH .:/install/lib/python3.7/site-packages | ||
RUN apt-get update &&\ | ||
apt-get install -y gcc &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PYTHONUNBUFFERED TRUE | ||
|
||
COPY requirements.txt /requirements.txt | ||
FROM builder AS deps_builder | ||
COPY requirements.txt requirements.txt | ||
RUN pip install \ | ||
--no-cache-dir \ | ||
--prefix=/install \ | ||
--no-warn-script-location \ | ||
-r requirements.txt | ||
|
||
RUN pip install --no-cache-dir -r /requirements.txt &&\ | ||
rm /requirements.txt | ||
|
||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
|
||
WORKDIR /app | ||
|
||
COPY gamred_native /app/gamred_native | ||
FROM builder as gamred_builder | ||
COPY --from=deps_builder /install /usr/local | ||
COPY dev_setup.py dev_setup.py | ||
COPY gamred_native gamred_native | ||
RUN python dev_setup.py install --prefix=/install | ||
|
||
COPY dev_setup.py /app/dev_setup.py | ||
|
||
RUN python dev_setup.py install &&\ | ||
rm -rf /app/gamred_native &&\ | ||
rm /app/dev_setup.py | ||
FROM base | ||
COPY --from=deps_builder /install /usr/local | ||
COPY --from=gamred_builder /install /usr/local | ||
COPY . /app |
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 |
---|---|---|
@@ -1,22 +1,36 @@ | ||
FROM python:3.7-slim | ||
FROM python:3.7-slim AS base | ||
ENV PYTHONUNBUFFERED TRUE | ||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
WORKDIR /app | ||
|
||
|
||
FROM base as builder | ||
RUN mkdir -p /install/lib/python3.7/site-packages | ||
ENV PYTHONPATH .:/install/lib/python3.7/site-packages | ||
RUN apt-get update &&\ | ||
apt-get install -y gcc &&\ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
ENV PYTHONUNBUFFERED TRUE | ||
|
||
COPY requirements.txt /app/requirements.txt | ||
FROM builder AS deps_builder | ||
COPY requirements.txt requirements.txt | ||
RUN pip install \ | ||
--no-cache-dir \ | ||
--prefix=/install \ | ||
--no-warn-script-location \ | ||
-r requirements.txt | ||
|
||
WORKDIR /app | ||
|
||
RUN pip install -r requirements.txt | ||
FROM builder as gamred_builder | ||
COPY --from=deps_builder /install /usr/local | ||
COPY dev_setup.py dev_setup.py | ||
COPY gamred_native gamred_native | ||
RUN python dev_setup.py install --prefix=/install | ||
|
||
RUN mkdir -p /root/.config/matplotlib &&\ | ||
echo "backend : Agg" > /root/.config/matplotlib/matplotlibrc | ||
|
||
FROM base | ||
COPY --from=deps_builder /install /usr/local | ||
COPY --from=gamred_builder /install /usr/local | ||
COPY . /app | ||
|
||
RUN python dev_setup.py install | ||
|
||
RUN python -m unittest discover |
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