Skip to content

Commit 7e083b9

Browse files
committed
Attempting to include notebooks/Demo and notebooks/Analysis in release dockerfile
1 parent 7028d6b commit 7e083b9

9 files changed

+666
-126
lines changed

Dockerfile.dev

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,5 +46,5 @@ RUN chmod +x /usr/bin/tini
4646
ENTRYPOINT ["/usr/bin/tini", "--"]
4747

4848
EXPOSE 8888
49-
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--NotebookApp.token=''"]
49+
CMD ["jupyter", "notebook", "--port=8888", "--no-browser", "--ip=0.0.0.0", "--allow-root", "--NotebookApp.token=''"]
5050

Dockerfile.release

+2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ RUN pip3 install opengrid
55

66
ADD ./opengrid/config/opengrid.cfg.example.docker /usr/local/opengrid/opengrid.cfg
77
ADD ./opengrid/recipes/ /usr/local/opengrid/recipes/
8+
RUN /bin/bash -c "cp -r /usr/local/lib/python3.5/dist-packages/opengrid/notebooks /usr/local/opengrid/notebooks"
89

10+
WORKDIR /usr/local/opengrid/notebooks
911

1012

MANIFEST.in

-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,3 @@ include opengrid/library/tests/data/*
77
include opengrid/library/tests/data/cache_day/*
88
include notebooks/Analysis/*
99
include notebooks/Demo/*
10-
include notebooks/WIP/*

docker-run-dev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ fi
1515
# mount current folder to /usr/local/opengrid in the container
1616
# for data persistence, mount ./data to the /data folder
1717
# if you want to store the data in a different location, modify the command below
18-
docker run -d -p 8899:8888 -v $(pwd -P):/usr/local/opengrid -v $(pwd -P)/data:/data --name opengrid-dev opengrid/dev:python3
18+
docker run -d -p 8899:8888 -v $(pwd -P):/usr/local/opengrid -v $(pwd -P)/data:/data --name opengrid-dev opengrid/dev:latest
1919

2020
# Give it some time
2121
sleep 1s

notebooks/Demo/Demo_Config.ipynb

+29-6
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,22 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"metadata": {},
5+
"metadata": {
6+
"deletable": true,
7+
"editable": true
8+
},
69
"source": [
710
"Ensure that the path to `opengrid` is in your PYTHONPATH. If you installed opengrid with `pip install opengrid`, this is done automatically. "
811
]
912
},
1013
{
1114
"cell_type": "code",
1215
"execution_count": null,
13-
"metadata": {},
16+
"metadata": {
17+
"collapsed": true,
18+
"deletable": true,
19+
"editable": true
20+
},
1421
"outputs": [],
1522
"source": [
1623
"from opengrid import config"
@@ -19,7 +26,11 @@
1926
{
2027
"cell_type": "code",
2128
"execution_count": null,
22-
"metadata": {},
29+
"metadata": {
30+
"collapsed": true,
31+
"deletable": true,
32+
"editable": true
33+
},
2334
"outputs": [],
2435
"source": [
2536
"c = config.Config()\n",
@@ -32,7 +43,11 @@
3243
{
3344
"cell_type": "code",
3445
"execution_count": null,
35-
"metadata": {},
46+
"metadata": {
47+
"collapsed": true,
48+
"deletable": true,
49+
"editable": true
50+
},
3651
"outputs": [],
3752
"source": [
3853
"c.get('opengrid_server', 'host')"
@@ -41,7 +56,11 @@
4156
{
4257
"cell_type": "code",
4358
"execution_count": null,
44-
"metadata": {},
59+
"metadata": {
60+
"collapsed": true,
61+
"deletable": true,
62+
"editable": true
63+
},
4564
"outputs": [],
4665
"source": [
4766
"c.get('data', 'folder')"
@@ -50,7 +69,11 @@
5069
{
5170
"cell_type": "code",
5271
"execution_count": null,
53-
"metadata": {},
72+
"metadata": {
73+
"collapsed": true,
74+
"deletable": true,
75+
"editable": true
76+
},
5477
"outputs": [],
5578
"source": []
5679
}

0 commit comments

Comments
 (0)