DaoCloud/python-ipython-notebook

Name: python-ipython-notebook

Owner: DaoCloud.io

Description: null

Created: 2015-08-24 09:49:04.0

Updated: 2018-05-22 09:06:18.0

Pushed: 2018-03-11 14:27:02.0

Homepage: null

Size: 11

Language: Shell

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

???????? Docker ? Python ??

???? Docker ??????? IPython Notebook ??

???????? DaoCloud/python-ipython-notebook ????

???? GitHub ??????????????????????

??

Python ???????????????????????? Python ???? IPython Notebook??????????????? Docker ?????

IPython Notebook ??????? Python ?????????????????

Docker ????????

???? Docker ????????? Dockerfile ???????

?? Dockerfile
 python:2.7

???????????????????????????????????????????? DaoCloud ?????FROM daocloud.io/python:2.7?

????? DaoCloud Toolbox ?????????

TAINER Captain Dao <support@daocloud.io>
mkdir -p /app
DIR /app

requirements.txt requirements.txt
pip install -r requirements.txt

 docker-entrypoint.sh /usr/local/bin/docker-entrypoint.sh
chmod +x /usr/local/bin/docker-entrypoint.sh
ADD ? COPY ???

???? ADD ? COPY ???????????? ADD ? COPY ?????ADD ???????? URL??? ADD ???????????????????

?? RUN ???? pip ?????? App ????

??? Dockerfile ????????????????????????

?? docker-entrypoint.sh ???????

? Dockerfile ?????????????????????????????????

SE 8888
YPOINT ["docker-entrypoint.sh"]
[""]

?? EXPOSE ?????????????

ENTRYPOINT ? CMD ???

ENTRYPOINT ?????????????CMD ????????????????????????????? ENTRYPOINT + CMD ????? ENTRYPOINT ?????????????????????????? CMD ??????????????????? CMD ???????

???????docker-entrypoint.sh?
in/bash
rict mode
-euo pipefail

eate the hash to pass to the IPython notebook, but don't export it so it doesn't appear
 an environment variable within IPython kernels themselves
=$(python -c "from IPython.lib import passwd; print(passwd('${PASSWORD:-admin}'))")

 "========================================================================"
 "You can now connect to this Ipython Notebook server using, for example:"
 ""
 "  docker run -d -p <your-port>:8888 -e password=<your-password> ipython/noetebook"
 ""
 "  use password: ${PASSWORD:-admin} to login"
 ""
 "========================================================================"

t PASSWORD

hon notebook --no-browser --port 8888 --ip=* --NotebookApp.password="$HASH"

??????????????????????????????????????????????????????????????????

????

?? Dockerfile ???????????????? Python ???????? ipython/notebook?

er build -t ipython/notebook .
er run -d -p 8888:8888 -e PASSWORD=admin ipython/notebook 

???????????????????????????????

???????? 8888 ???????? IPython Notebook ??

ipython login


This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.