Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
174fc496
Commit
174fc496
authored
May 26, 2017
by
Peter Parente
Committed by
GitHub
May 26, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #386 from minrk/system-julia
install Julia packages in /opt/julia
parents
bb222f49
f67f974c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
23 additions
and
10 deletions
+23
-10
datascience-notebook/Dockerfile
datascience-notebook/Dockerfile
+23
-10
No files found.
datascience-notebook/Dockerfile
View file @
174fc496
...
...
@@ -15,13 +15,21 @@ RUN apt-get update && \
rm
-rf
/var/lib/apt/lists/
*
# Julia dependencies
# install Julia packages in /opt/julia instead of $HOME
ENV
JULIA_PKGDIR=/opt/julia
RUN
echo
"deb http://ppa.launchpad.net/staticfloat/juliareleases/ubuntu trusty main"
>
/etc/apt/sources.list.d/julia.list
&&
\
apt-key adv
--keyserver
keyserver.ubuntu.com
--recv-keys
3D3D3ACC
&&
\
apt-get update
&&
\
apt-get
install
-y
--no-install-recommends
\
julia
\
libnettle4
&&
apt-get clean
&&
\
rm
-rf
/var/lib/apt/lists/
*
rm
-rf
/var/lib/apt/lists/
*
&&
\
# Show Julia where conda libraries are
\
echo
"push!(Libdl.DL_LOAD_PATH,
\"
$CONDA_DIR
/lib
\"
)"
>>
/usr/etc/julia/juliarc.jl
&&
\
# Create JULIA_PKGDIR
\
mkdir
$JULIA_PKGDIR
&&
\
chown
-R
$NB_USER
:users
$JULIA_PKGDIR
USER
$NB_USER
...
...
@@ -45,18 +53,23 @@ RUN conda config --system --add channels r && \
'r-crayon=1.3*'
\
'r-randomforest=4.6*'
&&
conda clean
-tipsy
# Install IJulia packages as jovyan and then move the kernelspec out
# Add Julia packages
# Install IJulia as jovyan and then move the kernelspec out
# to the system share location. Avoids problems with runtime UID change not
# taking effect properly on the .local folder in the jovyan home dir.
RUN
julia
-e
'Pkg.add("IJulia")'
&&
\
RUN
julia
-e
'Pkg.init()'
&&
\
julia
-e
'Pkg.update()'
&&
\
julia
-e
'Pkg.add("HDF5")'
&&
\
julia
-e
'Pkg.add("Gadfly")'
&&
\
julia
-e
'Pkg.add("RDatasets")'
&&
\
julia
-e
'Pkg.add("IJulia")'
&&
\
# Precompile Julia packages
\
julia
-e
'using HDF5'
&&
\
julia
-e
'using Gadfly'
&&
\
julia
-e
'using RDatasets'
&&
\
julia
-e
'using IJulia'
&&
\
# move kernelspec out of home
\
mv
$HOME
/.local/share/jupyter/kernels/julia
*
$CONDA_DIR
/share/jupyter/kernels/
&&
\
chmod
-R
go+rx
$CONDA_DIR
/share/jupyter
&&
\
rm
-rf
$HOME
/.local
# Show Julia where conda libraries are
# Add essential packages
RUN
echo
"push!(Libdl.DL_LOAD_PATH,
\"
$CONDA_DIR
/lib
\"
)"
>
/home/
$NB_USER
/.juliarc.jl
&&
\
julia
-e
'Pkg.add("Gadfly")'
&&
julia
-e
'Pkg.add("RDatasets")'
&&
julia
-F
-e
'Pkg.add("HDF5")'
# Precompile Julia pakcages
RUN
julia
-e
'using IJulia'
&&
julia
-e
'using Gadfly'
&&
julia
-e
'using RDatasets'
&&
julia
-e
'using HDF5'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment