-
Notifications
You must be signed in to change notification settings - Fork 49
Update Dockerfile Julia 1.3.1->1.5.3 #62
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
7 commits
Select commit
Hold shift + click to select a range
2d3e1c9
Update Dockerfile
postylem 6767ade
Merge pull request #1 from postylem/postylem-update_to_julia_1.5
postylem fe5f227
parametrize julia version
postylem ee3198f
parametrize julia version for 20.04
postylem db4fc2b
TF now supports python 3.8
postylem a245527
added PyTorch install in Ubuntu 20.04 Dockerfile
postylem ba9f734
chaining with && for slightly fewer RUN commands
postylem 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,9 +17,18 @@ RUN git config --global user.email "[email protected]" | |
RUN virtualenv -p /usr/bin/python3 /venv | ||
RUN . /venv/bin/activate && pip install jupyter jupytext matplotlib tensorflow torch | ||
|
||
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.1-linux-x86_64.tar.gz | ||
RUN tar -xzv < julia-1.3.1-linux-x86_64.tar.gz | ||
RUN ln -s /julia-1.3.1/bin/julia /usr/bin/julia | ||
# Specify Julia version. Find current version on https://julialang.org/downloads/ | ||
ARG JULIA_VERSION_SHORT="1.5" | ||
ARG JULIA_VERSION_FULL="${JULIA_VERSION_SHORT}.3" | ||
ENV JULIA_INSTALLATION_PATH=/opt/julia | ||
|
||
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_VERSION_SHORT}/julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
tar zxf julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
mkdir -p "${JULIA_INSTALLATION_PATH}" && \ | ||
mv julia-${JULIA_VERSION_FULL} "${JULIA_INSTALLATION_PATH}/" && \ | ||
ln -fs "${JULIA_INSTALLATION_PATH}/julia-${JULIA_VERSION_FULL}/bin/julia" /usr/local/bin/ && \ | ||
rm julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
julia -e 'import Pkg; Pkg.add("IJulia")' | ||
|
||
ADD . /gen-quickstart | ||
ENV JULIA_PROJECT=/gen-quickstart | ||
|
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 |
---|---|---|
|
@@ -4,7 +4,8 @@ MAINTAINER MIT Probabilistic Computing Project | |
# Avoid tzdata configuration dialog | ||
ENV DEBIAN_FRONTEND=noninteractive | ||
|
||
RUN apt update -qq && apt install -qq -y \ | ||
RUN apt-get update -qq && \ | ||
apt-get install -qq -y \ | ||
hdf5-tools \ | ||
git \ | ||
python3-dev \ | ||
|
@@ -14,23 +15,24 @@ RUN apt update -qq && apt install -qq -y \ | |
zlib1g-dev && \ | ||
rm -rf /var/lib/apt/lists/* | ||
|
||
# Since Tensorflow only supports Python up to 3.7 and not 3.8 (default in 20.04) instead of tensorflow or tf-nightly-cpu we use | ||
# Tensorflow wheel files from https://pypi.org/project/tf-nightly/2.2.0.dev20200307/#files | ||
RUN wget https://files.pythonhosted.org/packages/30/8e/650b282491e126a39e2b256f1ad790d566c53465dfd801a7703e421431e3/tf_nightly-2.2.0.dev20200307-cp38-cp38-manylinux2010_x86_64.whl && \ | ||
python3 -m pip install --upgrade pip && \ | ||
python3 -m pip install tf_nightly-2.2.0.dev20200307-cp38-cp38-manylinux2010_x86_64.whl && \ | ||
rm tf_nightly-2.2.0.dev20200307-cp38-cp38-manylinux2010_x86_64.whl | ||
RUN git config --global user.name "Gen User" && \ | ||
git config --global user.email "[email protected]" | ||
|
||
RUN git config --global user.name "Gen User" | ||
RUN git config --global user.email "[email protected]" | ||
RUN python3 -m pip install --upgrade pip && \ | ||
python3 -m pip install jupyter jupytext matplotlib tensorflow torch | ||
|
||
# Could use virtual environment - "RUN virtualenv -p /usr/bin/python3 /venv" and ". /venv/bin/activate" && in front of pip and julia commands | ||
RUN python3 -m pip install jupyter jupytext matplotlib | ||
# Specify Julia version. Find current version on https://julialang.org/downloads/ | ||
ARG JULIA_VERSION_SHORT="1.5" | ||
ARG JULIA_VERSION_FULL="${JULIA_VERSION_SHORT}.3" | ||
ENV JULIA_INSTALLATION_PATH=/opt/julia | ||
|
||
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/1.3/julia-1.3.1-linux-x86_64.tar.gz && \ | ||
tar -xzv < julia-1.3.1-linux-x86_64.tar.gz && \ | ||
ln -s /julia-1.3.1/bin/julia /usr/bin/julia && \ | ||
rm julia-1.3.1-linux-x86_64.tar.gz | ||
RUN wget https://julialang-s3.julialang.org/bin/linux/x64/${JULIA_VERSION_SHORT}/julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
tar zxf julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
mkdir -p "${JULIA_INSTALLATION_PATH}" && \ | ||
mv julia-${JULIA_VERSION_FULL} "${JULIA_INSTALLATION_PATH}/" && \ | ||
ln -fs "${JULIA_INSTALLATION_PATH}/julia-${JULIA_VERSION_FULL}/bin/julia" /usr/local/bin/ && \ | ||
rm julia-${JULIA_VERSION_FULL}-linux-x86_64.tar.gz && \ | ||
julia -e 'import Pkg; Pkg.add("IJulia")' | ||
|
||
ADD . /gen-quickstart | ||
ENV JULIA_PROJECT=/gen-quickstart | ||
|
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why
/usr/local/bin
rather than/usr/bin
? (answer might be "the convention is pretty vague anyway," just wondering)Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
just because @fplk suggested it :) do you have a preference?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/usr/bin is for distribution-managed binaries.