-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Wesley Uykimpang
committed
Apr 17, 2020
1 parent
708603a
commit 1e634c1
Showing
11 changed files
with
13,603 additions
and
452 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.local/ | ||
.ipynb_checkpoints/ | ||
.cache/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,15 @@ | ||
ARG BASE_CONTAINER=jupyter/datascience-notebook:hub-1.1.0 | ||
ARG DATAHUB_CONTAINER=ucsdets/datahub-base-notebook:2020.2-stable | ||
# ARG BASE_CONTAINER=jupyter/datascience-notebook:hub-1.1.0 | ||
ARG DATAHUB_CONTAINER=ucsdets/datahub-base-notebook-test:2020.2-stable | ||
|
||
# # force rebuild | ||
FROM $DATAHUB_CONTAINER as datahub | ||
FROM $BASE_CONTAINER | ||
# FROM $BASE_CONTAINER | ||
|
||
MAINTAINER UC San Diego ITS/ETS-EdTech-Ecosystems <[email protected]> | ||
|
||
COPY --from=datahub /usr/share/datahub/scripts/* /usr/share/datahub/scripts/ | ||
COPY --from=datahub /usr/share/datahub/tests /usr/share/datahub/tests | ||
RUN /usr/share/datahub/scripts/install-all.sh | ||
|
||
# Install OKpy for DSC courses | ||
# downgrade pip temporarily and upgrade to fix issue with okpy install | ||
USER root | ||
RUN pip install --upgrade --force-reinstall pip==9.0.3 | ||
RUN pip install okpy --disable-pip-version-check | ||
RUN pip install --upgrade pip | ||
|
@@ -26,18 +23,15 @@ RUN python -c 'import matplotlib.pyplot' | |
|
||
RUN conda clean -tipsy | ||
|
||
# Run container integration tests | ||
USER root | ||
# import integration tests | ||
ENV TESTDIR=/usr/share/datahub/tests | ||
ARG DATASCIENCE_TESTDIR=${TESTDIR}/datascience-notebook | ||
COPY tests ${DATASCIENCE_TESTDIR} | ||
RUN chmod -R +x ${TESTDIR} | ||
RUN for f in ${TESTDIR}/**/*.sh; do bash $f; done | ||
RUN chmod -R +rwx ${DATASCIENCE_TESTDIR} | ||
RUN chown 1000:1000 ${DATASCIENCE_TESTDIR} | ||
|
||
# change the owner back | ||
RUN chown -R 1000:1000 /home/jovyan | ||
USER $NB_UID | ||
RUN bash -c 'find /opt/julia -type f -a -name "*.ji" -a \! -perm /005 | xargs chmod og+rX' | ||
ENV SHELL=/bin/bash | ||
|
||
COPY --from=datahub /run_jupyter.sh / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
# Changelog | ||
|
||
|
||
2019.4.4 | ||
|
||
2019.4.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
# Used for development purposes | ||
|
||
docker-compose -f docker-compose.test.yml build | ||
docker-compose -f docker-compose.test.yml up --remove-orphans |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
sut: | ||
build: . | ||
command: /usr/share/datahub/tests/datascience-notebook/test.sh | ||
user: root |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
ls | ||
jupyter nbconvert --to r datascience_notebook.ipynb | ||
jupyter nbconvert --to | ||
jupyter nbconvert --to -h | ||
jupyter nbconvert --execute datascience_notebook.ipynb | ||
exit | ||
exit |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.