-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
87 additions
and
8 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,20 @@ | ||
2.2.0 | ||
----- | ||
|
||
Tracks Mathics 2.2.0 core release and related packages. | ||
|
||
1.0.0 | ||
----- | ||
|
||
First public release. | ||
|
||
Pulls in | ||
|
||
* Mathics3, | ||
* mathicsscript, and | ||
* mathics-django. | ||
|
||
And pymathics modules: | ||
|
||
* pymathics-natlang, | ||
* pymathics-graph, |
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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
version: '2' | ||
|
||
services: | ||
mathics: | ||
build: ./docker | ||
image: mathicsorg/mathics:latest | ||
|
||
volumes: | ||
- ./app/data:/usr/src/app/data | ||
|
||
ports: | ||
- "8000:8000" |
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
FROM python:3.8-buster | ||
|
||
ENV MATHICS_HOME=/usr/src/app | ||
ENV ENTRYPOINT_COMMAND="docker run -it {MATHICS_IMAGE}" | ||
|
||
WORKDIR $MATHICS_HOME | ||
|
||
COPY entrypoint.sh / | ||
RUN chmod +x /entrypoint.sh | ||
|
||
COPY requirements.txt ./ | ||
RUN apt-get update | ||
RUN apt-get install -qq apt-utils | ||
# we need libsqlite3-dev now if ubuntu doesn't come with that, we'll need | ||
# to build our own Python | ||
RUN apt-get install -qq liblapack-dev llvm-dev gfortran maria sqlite3 | ||
RUN pip install --no-cache-dir -r requirements.txt | ||
COPY requirements-mathicsscript.txt ./ | ||
RUN pip install --no-cache-dir -r requirements-mathicsscript.txt | ||
|
||
RUN pip install git+git://github.com/mathics/Mathics.git#egg=Mathics3 | ||
RUN python -m pip install -e git://github.com/Mathics3/mathics-django#egg=Mathics-Django | ||
RUN pip install pymathics-natlang | ||
RUN pip install pymathics-graph | ||
RUN python -m pip install -e git://github.com/Mathics3/mathicsscript#egg=mathicsscript | ||
RUN cd src/mathicsscript; make | ||
|
||
RUN python -m nltk.downloader wordnet omw | ||
RUN python -m spacy download en | ||
|
||
# debug stuff | ||
RUN apt-get install -qq emacs | ||
RUN pip install trepan3k | ||
|
||
EXPOSE 8000 | ||
|
||
RUN groupadd mathics && \ | ||
useradd -d $MATHICS_HOME -g mathics -m -s /bin/bash mathics && \ | ||
mkdir -p $MATHICS_HOME/data && \ | ||
chown -R mathics:mathics $MATHICS_HOME | ||
|
||
USER mathics | ||
COPY django-db/mathics.sqlite /usr/src/app/.local/var/mathics/mathics.sqlite | ||
|
||
ENTRYPOINT ["/entrypoint.sh"] | ||
|
||
CMD ["--help"] |
Binary file not shown.
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