-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Bring back support for docker #681
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
74df5b3
add first version of dockerfile and corresponding texlive.profile
behackl a51da0f
add reference to docker in the installation docs
behackl 0ae06ea
rename textlive.profile -> texlive-profile.txt
behackl 24fea40
newline at end of file
behackl 35a5d71
remove libpango1.0-dev
behackl af0e314
Merge remote-tracking branch 'origin/master' into docker
behackl fbc28ba
Merge remote-tracking branch 'origin/master' into docker
behackl 60bbfdf
add docker badge to readme, fix links for badges
behackl 95d5c20
let banner link to manim.community
behackl cde6d23
Fix broken link
kolibril13 492bb0b
Docker images --> docker images
behackl File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,40 @@ | ||
| FROM python:3.7-slim | ||
|
|
||
| RUN apt-get update -q \ | ||
| && apt-get install --no-install-recommends -y \ | ||
| ffmpeg \ | ||
| gcc \ | ||
| git \ | ||
| libcairo2-dev \ | ||
| libffi-dev \ | ||
| pkg-config \ | ||
| wget | ||
|
|
||
| # setup a minimal texlive installation | ||
| COPY ./texlive-profile.txt /tmp/ | ||
| ENV PATH=/usr/local/texlive/bin/x86_64-linux:$PATH | ||
| RUN wget -O /tmp/install-tl-unx.tar.gz http://mirror.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz && \ | ||
| mkdir /tmp/install-tl && \ | ||
| tar -xzf /tmp/install-tl-unx.tar.gz -C /tmp/install-tl --strip-components=1 && \ | ||
| /tmp/install-tl/install-tl --profile=/tmp/texlive-profile.txt \ | ||
| && tlmgr install \ | ||
| amsmath babel-english cm-super doublestroke dvisvgm fundus-calligra \ | ||
| jknapltx latex-bin microtype ms physics preview ragged2e relsize rsfs \ | ||
| setspace standalone tipa wasy wasysym xcolor xkeyval | ||
|
|
||
| # clone and build manim | ||
| RUN git clone --depth 1 --branch v0.1.0 https://github.com/ManimCommunity/manim.git /opt/manim | ||
| WORKDIR /opt/manim | ||
| RUN pip install --no-cache . | ||
|
|
||
| # ensure ffi bindings are generated correctly | ||
| WORKDIR /usr/local/lib/python3.7/site-packages | ||
| RUN python cairocffi/ffi_build.py \ | ||
| && python pangocffi/ffi_build.py \ | ||
| && python pangocairocffi/ffi_build.py | ||
naveen521kk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| # create working directory for user to mount local directory into | ||
| WORKDIR /manim | ||
| RUN chmod 666 /manim | ||
naveen521kk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| CMD [ "/bin/bash" ] | ||
This file contains hidden or 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,10 @@ | ||
| selected_scheme scheme-minimal | ||
| TEXDIR /usr/local/texlive | ||
| TEXMFCONFIG ~/.texlive/texmf-config | ||
| TEXMFHOME ~/texmf | ||
| TEXMFLOCAL /usr/local/texlive/texmf-local | ||
| TEXMFSYSCONFIG /usr/local/texlive/texmf-config | ||
| TEXMFSYSVAR /usr/local/texlive/texmf-var | ||
| TEXMFVAR ~/.texlive/texmf-var | ||
naveen521kk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| option_doc 0 | ||
| option_src 0 | ||
naveen521kk marked this conversation as resolved.
Show resolved
Hide resolved
|
||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.