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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
???? Docker ??????? IPython Notebook ??
???????? DaoCloud/python-ipython-notebook ????
???? GitHub ??????????????????????
Python ???????????????????????? Python ???? IPython Notebook??????????????? Docker ?????
IPython Notebook ??????? Python ?????????????????
???? Docker ????????? 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
???????
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 ??