-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove dependence on repo2docker (#91)
* Changes for simple container Makefile changes: - 'build' target now builds simple container - 'build-old' target builds the old repo2docker way - 'debug-build' for docker build issues - docker image tag includes git ref & date stamp Dockerfile changes: - pass hadolint - change permissions to allow notebook signing for trust - update user name for new base image set_secrets_in_env.sh changes: - support '--develop' option to set bogus values for testing jupyter & notebook parts * Update Notebook so signing works Somewhere along the line, jupyter changed to needing an 'id' property per cell for proper signing, without changing the ipynb version number. Fix is to use `nbconvert --to ipynb` to rewrite file. * Build Environment Hygene - Update versions of pre-commit - updated hadolint config - Make things more normal - stop using port 10001 - add '--unset' option for testing - Cleaned up Dockerfile - Cleaned up Makefile - removed method for older image build method - updated documenation for new image build process - removed no-longer-needed binder config files * Fix bug with eliminating first name from ACL search Co-authored-by: Hal Wine <[email protected]>
- Loading branch information
Showing
15 changed files
with
378 additions
and
403 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
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
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,25 @@ | ||
FROM jupyter/minimal-notebook:hub-2.1.1 | ||
|
||
# Define the subdirectory with notebooks | ||
ARG NOTEBOOK_DIR="notebooks" | ||
|
||
# add in the extensions we need | ||
RUN conda install -y -c conda-forge jupyter_contrib_nbextensions ; \ | ||
jupyter nbextensions_configurator enable ; \ | ||
jupyter nbextension enable init_cell/main ; \ | ||
jupyter nbextension enable collapsible_headings/main ; \ | ||
jupyter nbextension list | ||
|
||
# install the packages needed | ||
WORKDIR /home/jovyan | ||
COPY --chown=jovyan:users requirements.txt . | ||
RUN pip install --no-cache-dir -r requirements.txt && \ | ||
rmdir work && \ | ||
rm requirements*.txt | ||
|
||
USER jovyan | ||
# install the notebooks and trust the notebooks we ship | ||
COPY --chown=jovyan:users notebooks/*.ipynb ${NOTEBOOK_DIR}/ | ||
RUN echo "pwd $PWD" ; \ | ||
echo "ls: $(ls -lAd ./* ${NOTEBOOK_DIR}/*.ipynb)" ; \ | ||
jupyter trust ${NOTEBOOK_DIR}/*.ipynb |
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
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.