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

Commit

Permalink
clone repo and link to notebooks
Browse files Browse the repository at this point in the history
  • Loading branch information
quasiben committed Jan 13, 2017
1 parent d74ab09 commit ac1daab
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dask_ec2/cli/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

from .main import cli, print_state
from ..cluster import Cluster
from ..salt import upload_pillar, upload_formulas
from ..salt import upload_pillar

@cli.group('notebook', invoke_without_command=True, short_help='Provision the Jupyter notebook')
@click.pass_context
Expand Down
17 changes: 16 additions & 1 deletion dask_ec2/formulas/salt/jupyter/notebook/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,26 @@ jupyter-notebook.conf:
- require:
- sls: supervisor
examples:
git.latest:
- name: https://github.com/dask/dask-ec2.git
- target: /tmp/dask-ec2
link_examples:
file.symlink:
- name: {{ notebooks_dir }}/examples
- target: /tmp/dask-ec2/notebooks
- force: True
notebooks-dir:
file.directory:
- name: {{ notebooks_dir }}
- name: {{ notebooks_dir }}/examples
- user: {{ user }}
- group: {{ user }}
- recurse:
- user
- group
notebook-update-supervisor:
cmd.wait:
Expand Down

0 comments on commit ac1daab

Please sign in to comment.