diff --git a/dataset-squad/Dockerfile b/dataset-squad/Dockerfile index 3b8aa02..3749e27 100644 --- a/dataset-squad/Dockerfile +++ b/dataset-squad/Dockerfile @@ -5,5 +5,4 @@ FROM ${BASE_IMAGE} COPY requirements.txt . RUN pip3 install --no-cache-dir -r requirements.txt -COPY ./scripts/ ./scripts -COPY ./src/ ./src +COPY ./load.ipynb ./ diff --git a/dataset-squad/README.md b/dataset-squad/README.md index dac9dc5..6ba5ca6 100644 --- a/dataset-squad/README.md +++ b/dataset-squad/README.md @@ -14,7 +14,9 @@ Explore and develop with a Jupyter Lab. ```sh # Run a Jupyter Notebook. -docker run -it -v $(pwd)/data:/data -v $(pwd)/src:/dataset/src -p 8888:8888 dataset-squad notebook.sh +docker run -it -v $(pwd)/artifacts:/content/artifacts \ + -v $(pwd)/load.ipynb:/content/load.ipynb -p 8888:8888 \ + dataset-squad notebook.sh # In another terminal: Open browser. open http://localhost:8888 @@ -26,7 +28,7 @@ open http://localhost:8888 Fetch data. ```sh -docker run -e -v $(pwd)/data:/data -v $(pwd)/logs:/dataset/logs squad-dataset load.sh +docker run -e -v $(pwd)/artifacts:/content/artifacts squad-dataset head data/* ``` diff --git a/dataset-squad/src/load.ipynb b/dataset-squad/load.ipynb similarity index 100% rename from dataset-squad/src/load.ipynb rename to dataset-squad/load.ipynb diff --git a/dataset-squad/scripts/load.sh b/dataset-squad/scripts/load.sh deleted file mode 100755 index f842946..0000000 --- a/dataset-squad/scripts/load.sh +++ /dev/null @@ -1,5 +0,0 @@ -#!/usr/bin/env sh - -set -xe - -jupyter nbconvert --debug --to notebook --execute /content/src/load.ipynb --output /content/logs/load.ipynb