Skip to content
This repository has been archived by the owner on Nov 16, 2018. It is now read-only.

Commit

Permalink
final state pre-seeding
Browse files Browse the repository at this point in the history
  • Loading branch information
Arnav Sood committed Oct 10, 2018
1 parent 40d34f3 commit d72b361
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 1,075 deletions.
10 changes: 7 additions & 3 deletions Dockerfile
Expand Up @@ -123,16 +123,15 @@ ENV HOME=/home/$NB_USER
USER $NB_USER

# Set up our QuantEcon environment in the first depot entry for jovyan (~/jovyan/.julia).
RUN mkdir -p $HOME/.julia
RUN mkdir -p $HOME/.julia/environments/v1.0
# Instantiate everything we need.
RUN julia -e "using Pkg; pkg\"add Test\""
RUN cd $HOME/.julia/environments/v1.0 \
# Grab the online TOML.
&& wget -q https://raw.githubusercontent.com/QuantEcon/lecture-source-jl/master/notebooks/Manifest.toml -O Manifest.toml \
&& wget -q https://raw.githubusercontent.com/QuantEcon/lecture-source-jl/master/notebooks/Project.toml -O Project.toml

# Set up our environment.
RUN julia -e "using Pkg; pkg\"instantiate\"; pkg\"precompile\""
RUN julia -e "using Pkg; pkg\"build\"; pkg\"instantiate\"; pkg\"precompile\""

# Conda stuff.
RUN mv $HOME/.local/share/jupyter/kernels/julia-1.0 $CONDA_DIR/share/jupyter/kernels/ \
Expand All @@ -156,4 +155,9 @@ ENV NB_USER=jupyter \
ENV HOME=/home/$NB_USER
# Starts entirely blank.
RUN mkdir $HOME/.julia
RUN mkdir -p $HOME/.julia/environments/v1.0
ENV JULIA_DEPOT_PATH="/home/jupyter/.julia:/home/jovyan/.julia:/opt/julia"
RUN cd $HOME/.julia/environments/v1.0 \
# Grab the online TOML.
&& wget -q https://raw.githubusercontent.com/QuantEcon/lecture-source-jl/master/notebooks/Manifest.toml -O Manifest.toml \
&& wget -q https://raw.githubusercontent.com/QuantEcon/lecture-source-jl/master/notebooks/Project.toml -O Project.toml

0 comments on commit d72b361

Please sign in to comment.