willingc

Untitled

Mar 20th, 2018
431
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 50.38 KB | None | 0 0
  1. Get:5 http://archive.ubuntu.com/ubuntu artful/main amd64 libpython3.6-dev amd64 3.6.3-1ubuntu1 [2,483 kB]
  2. Get:6 http://archive.ubuntu.com/ubuntu artful/main amd64 libpython3-dev amd64 3.6.3-0ubuntu2 [6,914 B]
  3. Get:7 http://archive.ubuntu.com/ubuntu artful/main amd64 python2.7-dev amd64 2.7.14-2ubuntu2 [278 kB]
  4. Get:8 http://archive.ubuntu.com/ubuntu artful/main amd64 python-dev amd64 2.7.14-2ubuntu1 [1,176 B]
  5. Get:9 http://archive.ubuntu.com/ubuntu artful/universe amd64 python-pip-whl all 9.0.1-2 [1,379 kB]
  6. Get:10 http://archive.ubuntu.com/ubuntu artful/main amd64 python3.6-dev amd64 3.6.3-1ubuntu1 [519 kB]
  7. Get:11 http://archive.ubuntu.com/ubuntu artful/main amd64 python3-dev amd64 3.6.3-0ubuntu2 [1,206 B]
  8. Get:12 http://archive.ubuntu.com/ubuntu artful/main amd64 python3-pkg-resources all 36.2.7-2 [98.7 kB]
  9. Get:13 http://archive.ubuntu.com/ubuntu artful/universe amd64 python3.6-venv amd64 3.6.3-1ubuntu1 [5,886 B]
  10. Get:14 http://archive.ubuntu.com/ubuntu artful/universe amd64 python3-venv amd64 3.6.3-0ubuntu2 [1,114 B]
  11. Get:15 http://archive.ubuntu.com/ubuntu artful/universe amd64 python3-virtualenv all 15.1.0+ds-1 [43.2 kB]
  12. Get:16 http://archive.ubuntu.com/ubuntu artful/universe amd64 virtualenv all 15.1.0+ds-1 [4,376 B]
  13. debconf: delaying package configuration, since apt-utils is not installed
  14. Fetched 35.6 MB in 11s (3,211 kB/s)
  15. Selecting previously unselected package libpython2.7:amd64.
  16. (Reading database ... 37016 files and directories currently installed.)
  17. Preparing to unpack .../00-libpython2.7_2.7.14-2ubuntu2_amd64.deb ...
  18. Unpacking libpython2.7:amd64 (2.7.14-2ubuntu2) ...
  19. Selecting previously unselected package libpython2.7-dev:amd64.
  20. Preparing to unpack .../01-libpython2.7-dev_2.7.14-2ubuntu2_amd64.deb ...
  21. Unpacking libpython2.7-dev:amd64 (2.7.14-2ubuntu2) ...
  22. Selecting previously unselected package libpython-dev:amd64.
  23. Preparing to unpack .../02-libpython-dev_2.7.14-2ubuntu1_amd64.deb ...
  24. Unpacking libpython-dev:amd64 (2.7.14-2ubuntu1) ...
  25. Selecting previously unselected package libpython3.6:amd64.
  26. Preparing to unpack .../03-libpython3.6_3.6.3-1ubuntu1_amd64.deb ...
  27. Unpacking libpython3.6:amd64 (3.6.3-1ubuntu1) ...
  28. Selecting previously unselected package libpython3.6-dev:amd64.
  29. Preparing to unpack .../04-libpython3.6-dev_3.6.3-1ubuntu1_amd64.deb ...
  30. Unpacking libpython3.6-dev:amd64 (3.6.3-1ubuntu1) ...
  31. Selecting previously unselected package libpython3-dev:amd64.
  32. Preparing to unpack .../05-libpython3-dev_3.6.3-0ubuntu2_amd64.deb ...
  33. Unpacking libpython3-dev:amd64 (3.6.3-0ubuntu2) ...
  34. Selecting previously unselected package python2.7-dev.
  35. Preparing to unpack .../06-python2.7-dev_2.7.14-2ubuntu2_amd64.deb ...
  36. Unpacking python2.7-dev (2.7.14-2ubuntu2) ...
  37. Selecting previously unselected package python-dev.
  38. Preparing to unpack .../07-python-dev_2.7.14-2ubuntu1_amd64.deb ...
  39. Unpacking python-dev (2.7.14-2ubuntu1) ...
  40. Selecting previously unselected package python-pip-whl.
  41. Preparing to unpack .../08-python-pip-whl_9.0.1-2_all.deb ...
  42. Unpacking python-pip-whl (9.0.1-2) ...
  43. Selecting previously unselected package python3.6-dev.
  44. Preparing to unpack .../09-python3.6-dev_3.6.3-1ubuntu1_amd64.deb ...
  45. Unpacking python3.6-dev (3.6.3-1ubuntu1) ...
  46. Selecting previously unselected package python3-dev.
  47. Preparing to unpack .../10-python3-dev_3.6.3-0ubuntu2_amd64.deb ...
  48. Unpacking python3-dev (3.6.3-0ubuntu2) ...
  49. Selecting previously unselected package python3-pkg-resources.
  50. Preparing to unpack .../11-python3-pkg-resources_36.2.7-2_all.deb ...
  51. Unpacking python3-pkg-resources (36.2.7-2) ...
  52. Selecting previously unselected package python3.6-venv.
  53. Preparing to unpack .../12-python3.6-venv_3.6.3-1ubuntu1_amd64.deb ...
  54. Unpacking python3.6-venv (3.6.3-1ubuntu1) ...
  55. Selecting previously unselected package python3-venv.
  56. Preparing to unpack .../13-python3-venv_3.6.3-0ubuntu2_amd64.deb ...
  57. Unpacking python3-venv (3.6.3-0ubuntu2) ...
  58. Selecting previously unselected package python3-virtualenv.
  59. Preparing to unpack .../14-python3-virtualenv_15.1.0+ds-1_all.deb ...
  60. Unpacking python3-virtualenv (15.1.0+ds-1) ...
  61. Selecting previously unselected package virtualenv.
  62. Preparing to unpack .../15-virtualenv_15.1.0+ds-1_all.deb ...
  63. Unpacking virtualenv (15.1.0+ds-1) ...
  64. Setting up python-pip-whl (9.0.1-2) ...
  65. Setting up python3.6-venv (3.6.3-1ubuntu1) ...
  66. Setting up python3-pkg-resources (36.2.7-2) ...
  67. Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
  68. Setting up python3-virtualenv (15.1.0+ds-1) ...
  69. Setting up libpython2.7:amd64 (2.7.14-2ubuntu2) ...
  70. Setting up libpython2.7-dev:amd64 (2.7.14-2ubuntu2) ...
  71. Setting up virtualenv (15.1.0+ds-1) ...
  72. Setting up python2.7-dev (2.7.14-2ubuntu2) ...
  73. Setting up libpython3.6:amd64 (3.6.3-1ubuntu1) ...
  74. Setting up python3-venv (3.6.3-0ubuntu2) ...
  75. Setting up libpython-dev:amd64 (2.7.14-2ubuntu1) ...
  76. Setting up python-dev (2.7.14-2ubuntu1) ...
  77. Setting up libpython3.6-dev:amd64 (3.6.3-1ubuntu1) ...
  78. Setting up python3.6-dev (3.6.3-1ubuntu1) ...
  79. Setting up libpython3-dev:amd64 (3.6.3-0ubuntu2) ...
  80. Setting up python3-dev (3.6.3-0ubuntu2) ...
  81. Processing triggers for libc-bin (2.26-0ubuntu2.1) ...
  82. Reading package lists...
  83. Building dependency tree...
  84. Reading state information...
  85. 0 upgraded, 0 newly installed, 0 to remove and 5 not upgraded.
  86. Removing intermediate container f624a4c19432
  87. ---> 1efef8007ce3
  88. Step 16/40 : EXPOSE 8888
  89. ---> Running in 9e6217642b2d
  90. Removing intermediate container 9e6217642b2d
  91. ---> 748aeb048c2b
  92. Step 17/40 : ENV APP_BASE /srv
  93. ---> Running in edf04ae4b6c5
  94. Removing intermediate container edf04ae4b6c5
  95. ---> 511a9357368e
  96. Step 18/40 : ENV VENV_PATH ${APP_BASE}/venv
  97. ---> Running in c17d3b4780b5
  98. Removing intermediate container c17d3b4780b5
  99. ---> 4136f8f78984
  100. Step 19/40 : ENV NB_PYTHON_PREFIX ${VENV_PATH}
  101. ---> Running in 84af3928e2e3
  102. Removing intermediate container 84af3928e2e3
  103. ---> 0d107bccd8b9
  104. Step 20/40 : ENV VENV2_PATH ${APP_BASE}/venv2
  105. ---> Running in a1265f580811
  106. Removing intermediate container a1265f580811
  107. ---> bc365706beed
  108. Step 21/40 : ENV PATH ${VENV_PATH}/bin:${VENV2_PATH}/bin:${PATH}
  109. ---> Running in 8d1023b75e3f
  110. Removing intermediate container 8d1023b75e3f
  111. ---> 6a4541e7a241
  112. Step 22/40 : COPY python/requirements2.frozen.txt /tmp/requirements2.frozen.txt
  113. ---> 603fcc8fc997
  114. Step 23/40 : COPY python/requirements.frozen.txt /tmp/requirements.frozen.txt
  115. ---> a85d6f12bfa0
  116. Step 24/40 : RUN mkdir -p ${VENV_PATH} && chown -R ${NB_USER}:${NB_USER} ${VENV_PATH}
  117. ---> Running in 66cda6da6ce5
  118. Removing intermediate container 66cda6da6ce5
  119. ---> 7ac835f2418c
  120. Step 25/40 : USER ${NB_USER}
  121. ---> Running in c9273c8f28b9
  122. Removing intermediate container c9273c8f28b9
  123. ---> 249026e3dc82
  124. Step 26/40 : RUN python3 -m venv ${VENV_PATH}
  125. ---> Running in 5ec13707d700
  126. Removing intermediate container 5ec13707d700
  127. ---> cbd4d16c2f8d
  128. Step 27/40 : RUN pip install --no-cache-dir -r /tmp/requirements.frozen.txt && jupyter nbextension enable --py widgetsnbextension --sys-prefix && jupyter serverextension enable --py jupyterlab --sys-prefix && jupyter serverextension enable nteract_on_jupyter --sys-prefix
  129. ---> Running in 0cc4f89c9ab1
  130. Collecting bleach==2.1.3 (from -r /tmp/requirements.frozen.txt (line 3))
  131. Downloading bleach-2.1.3-py2.py3-none-any.whl
  132. Collecting decorator==4.2.1 (from -r /tmp/requirements.frozen.txt (line 4))
  133. Downloading decorator-4.2.1-py2.py3-none-any.whl
  134. Collecting entrypoints==0.2.3 (from -r /tmp/requirements.frozen.txt (line 5))
  135. Downloading entrypoints-0.2.3-py2.py3-none-any.whl
  136. Collecting html5lib==1.0.1 (from -r /tmp/requirements.frozen.txt (line 6))
  137. Downloading html5lib-1.0.1-py2.py3-none-any.whl (117kB)
  138. Collecting ipykernel==4.8.2 (from -r /tmp/requirements.frozen.txt (line 7))
  139. Downloading ipykernel-4.8.2-py3-none-any.whl (108kB)
  140. Collecting ipython-genutils==0.2.0 (from -r /tmp/requirements.frozen.txt (line 8))
  141. Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl
  142. Collecting ipython==6.2.1 (from -r /tmp/requirements.frozen.txt (line 9))
  143. Downloading ipython-6.2.1-py3-none-any.whl (745kB)
  144. Collecting ipywidgets==7.1.1 (from -r /tmp/requirements.frozen.txt (line 10))
  145. Downloading ipywidgets-7.1.1-py2.py3-none-any.whl (68kB)
  146. Collecting jedi==0.11.1 (from -r /tmp/requirements.frozen.txt (line 11))
  147. Downloading jedi-0.11.1-py2.py3-none-any.whl (250kB)
  148. Collecting Jinja2==2.10 (from -r /tmp/requirements.frozen.txt (line 12))
  149. Downloading Jinja2-2.10-py2.py3-none-any.whl (126kB)
  150. Collecting jsonschema==2.6.0 (from -r /tmp/requirements.frozen.txt (line 13))
  151. Downloading jsonschema-2.6.0-py2.py3-none-any.whl
  152. Collecting jupyter-client==5.2.3 (from -r /tmp/requirements.frozen.txt (line 14))
  153. Downloading jupyter_client-5.2.3-py2.py3-none-any.whl (89kB)
  154. Collecting jupyter-core==4.4.0 (from -r /tmp/requirements.frozen.txt (line 15))
  155. Downloading jupyter_core-4.4.0-py2.py3-none-any.whl (126kB)
  156. Collecting jupyterlab-launcher==0.10.5 (from -r /tmp/requirements.frozen.txt (line 16))
  157. Downloading jupyterlab_launcher-0.10.5-py2.py3-none-any.whl
  158. Collecting jupyterlab==0.31.5 (from -r /tmp/requirements.frozen.txt (line 17))
  159. Downloading jupyterlab-0.31.5-py2.py3-none-any.whl (13.0MB)
  160. Collecting MarkupSafe==1.0 (from -r /tmp/requirements.frozen.txt (line 18))
  161. Downloading MarkupSafe-1.0.tar.gz
  162. Collecting mistune==0.8.3 (from -r /tmp/requirements.frozen.txt (line 19))
  163. Downloading mistune-0.8.3-py2.py3-none-any.whl
  164. Collecting nbconvert==5.3.1 (from -r /tmp/requirements.frozen.txt (line 20))
  165. Downloading nbconvert-5.3.1-py2.py3-none-any.whl (387kB)
  166. Collecting nbformat==4.4.0 (from -r /tmp/requirements.frozen.txt (line 21))
  167. Downloading nbformat-4.4.0-py2.py3-none-any.whl (155kB)
  168. Collecting notebook==5.4.1 (from -r /tmp/requirements.frozen.txt (line 22))
  169. Downloading notebook-5.4.1-py2.py3-none-any.whl (8.0MB)
  170. Collecting nteract-on-jupyter==1.5.0 (from -r /tmp/requirements.frozen.txt (line 23))
  171. Downloading nteract_on_jupyter-1.5.0.tar.gz (1.4MB)
  172. Collecting pandocfilters==1.4.2 (from -r /tmp/requirements.frozen.txt (line 24))
  173. Downloading pandocfilters-1.4.2.tar.gz
  174. Collecting parso==0.1.1 (from -r /tmp/requirements.frozen.txt (line 25))
  175. Downloading parso-0.1.1-py2.py3-none-any.whl (91kB)
  176. Collecting pexpect==4.4.0 (from -r /tmp/requirements.frozen.txt (line 26))
  177. Downloading pexpect-4.4.0-py2.py3-none-any.whl (56kB)
  178. Collecting pickleshare==0.7.4 (from -r /tmp/requirements.frozen.txt (line 27))
  179. Downloading pickleshare-0.7.4-py2.py3-none-any.whl
  180. Collecting prompt-toolkit==1.0.15 (from -r /tmp/requirements.frozen.txt (line 28))
  181. Downloading prompt_toolkit-1.0.15-py3-none-any.whl (247kB)
  182. Collecting ptyprocess==0.5.2 (from -r /tmp/requirements.frozen.txt (line 29))
  183. Downloading ptyprocess-0.5.2-py2.py3-none-any.whl
  184. Collecting Pygments==2.2.0 (from -r /tmp/requirements.frozen.txt (line 30))
  185. Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
  186. Collecting python-dateutil==2.7.0 (from -r /tmp/requirements.frozen.txt (line 31))
  187. Downloading python_dateutil-2.7.0-py2.py3-none-any.whl (207kB)
  188. Collecting pyzmq==17.0.0 (from -r /tmp/requirements.frozen.txt (line 32))
  189. Downloading pyzmq-17.0.0-cp36-cp36m-manylinux1_x86_64.whl (3.1MB)
  190. Collecting Send2Trash==1.5.0 (from -r /tmp/requirements.frozen.txt (line 33))
  191. Downloading Send2Trash-1.5.0-py3-none-any.whl
  192. Collecting simplegeneric==0.8.1 (from -r /tmp/requirements.frozen.txt (line 34))
  193. Downloading simplegeneric-0.8.1.zip
  194. Collecting six==1.11.0 (from -r /tmp/requirements.frozen.txt (line 35))
  195. Downloading six-1.11.0-py2.py3-none-any.whl
  196. Collecting terminado==0.8.1 (from -r /tmp/requirements.frozen.txt (line 36))
  197. Downloading terminado-0.8.1-py2.py3-none-any.whl
  198. Collecting testpath==0.3.1 (from -r /tmp/requirements.frozen.txt (line 37))
  199. Downloading testpath-0.3.1-py2.py3-none-any.whl (161kB)
  200. Collecting tornado==4.5.3 (from -r /tmp/requirements.frozen.txt (line 38))
  201. Downloading tornado-4.5.3.tar.gz (484kB)
  202. Collecting traitlets==4.3.2 (from -r /tmp/requirements.frozen.txt (line 39))
  203. Downloading traitlets-4.3.2-py2.py3-none-any.whl (74kB)
  204. Collecting wcwidth==0.1.7 (from -r /tmp/requirements.frozen.txt (line 40))
  205. Downloading wcwidth-0.1.7-py2.py3-none-any.whl
  206. Collecting webencodings==0.5.1 (from -r /tmp/requirements.frozen.txt (line 41))
  207. Downloading webencodings-0.5.1-py2.py3-none-any.whl
  208. Collecting widgetsnbextension==3.1.4 (from -r /tmp/requirements.frozen.txt (line 42))
  209. Downloading widgetsnbextension-3.1.4-py2.py3-none-any.whl (2.2MB)
  210. Requirement already satisfied: setuptools>=18.5 in /srv/venv/lib/python3.6/site-packages (from ipython==6.2.1->-r /tmp/requirements.frozen.txt (line 9))
  211. Installing collected packages: six, webencodings, html5lib, bleach, decorator, entrypoints, ipython-genutils, traitlets, simplegeneric, pickleshare, Pygments, wcwidth, prompt-toolkit, parso, jedi, ptyprocess, pexpect, ipython, jupyter-core, python-dateutil, tornado, pyzmq, jupyter-client, ipykernel, jsonschema, nbformat, Send2Trash, terminado, MarkupSafe, Jinja2, mistune, testpath, pandocfilters, nbconvert, notebook, widgetsnbextension, ipywidgets, jupyterlab-launcher, jupyterlab, nteract-on-jupyter
  212. Running setup.py install for simplegeneric: started
  213. Running setup.py install for simplegeneric: finished with status 'done'
  214. Running setup.py install for tornado: started
  215. Running setup.py install for tornado: finished with status 'done'
  216. Running setup.py install for MarkupSafe: started
  217. Running setup.py install for MarkupSafe: finished with status 'done'
  218. Running setup.py install for pandocfilters: started
  219. Running setup.py install for pandocfilters: finished with status 'done'
  220. Running setup.py install for nteract-on-jupyter: started
  221. Running setup.py install for nteract-on-jupyter: finished with status 'done'
  222. Successfully installed Jinja2-2.10 MarkupSafe-1.0 Pygments-2.2.0 Send2Trash-1.5.0 bleach-2.1.3 decorator-4.2.1 entrypoints-0.2.3 html5lib-1.0.1 ipykernel-4.8.2 ipython-6.2.1 ipython-genutils-0.2.0 ipywidgets-7.1.1 jedi-0.11.1 jsonschema-2.6.0 jupyter-client-5.2.3 jupyter-core-4.4.0 jupyterlab-0.31.5 jupyterlab-launcher-0.10.5 mistune-0.8.3 nbconvert-5.3.1 nbformat-4.4.0 notebook-5.4.1 nteract-on-jupyter-1.5.0 pandocfilters-1.4.2 parso-0.1.1 pexpect-4.4.0 pickleshare-0.7.4 prompt-toolkit-1.0.15 ptyprocess-0.5.2 python-dateutil-2.7.0 pyzmq-17.0.0 simplegeneric-0.8.1 six-1.11.0 terminado-0.8.1 testpath-0.3.1 tornado-4.5.3 traitlets-4.3.2 wcwidth-0.1.7 webencodings-0.5.1 widgetsnbextension-3.1.4
  223. Enabling notebook extension jupyter-js-widgets/extension...
  224. - Validating: OK
  225. Enabling: jupyterlab
  226. - Writing config: /srv/venv/etc/jupyter
  227. - Validating...
  228. jupyterlab OK
  229. Enabling: nteract_on_jupyter
  230. - Writing config: /srv/venv/etc/jupyter
  231. - Validating...
  232. nteract_on_jupyter OK
  233. Removing intermediate container 0cc4f89c9ab1
  234. ---> b160db634041
  235. Step 28/40 : USER root
  236. ---> Running in 2de69e8b1738
  237. Removing intermediate container 2de69e8b1738
  238. ---> 17c992ebb7af
  239. Step 29/40 : RUN mkdir -p ${VENV2_PATH} && chown -R ${NB_USER}:${NB_USER} ${VENV2_PATH}
  240. ---> Running in 751c1d17ef6e
  241. Removing intermediate container 751c1d17ef6e
  242. ---> 87ded2d76e55
  243. Step 30/40 : USER ${NB_USER}
  244. ---> Running in 30c4fd38f548
  245. Removing intermediate container 30c4fd38f548
  246. ---> 95213e7435a1
  247. Step 31/40 : RUN virtualenv -p python2 ${VENV2_PATH}
  248. ---> Running in 7ad95334635b
  249. New python executable in /srv/venv2/bin/python2
  250. Also creating executable in /srv/venv2/bin/python
  251. Installing setuptools, pkg_resources, pip, wheel...done.
  252. Running virtualenv with interpreter /usr/bin/python2
  253. Removing intermediate container 7ad95334635b
  254. ---> 13b226347953
  255. Step 32/40 : RUN pip2 install --no-cache-dir -r /tmp/requirements2.frozen.txt && python2 -m ipykernel install --prefix=${NB_PYTHON_PREFIX}
  256. ---> Running in 9e52706e8527
  257. Collecting backports-abc==0.5 (from -r /tmp/requirements2.frozen.txt (line 3))
  258. Downloading backports_abc-0.5-py2.py3-none-any.whl
  259. Collecting backports.shutil-get-terminal-size==1.0.0 (from -r /tmp/requirements2.frozen.txt (line 4))
  260. Downloading backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
  261. Collecting certifi==2018.1.18 (from -r /tmp/requirements2.frozen.txt (line 5))
  262. Downloading certifi-2018.1.18-py2.py3-none-any.whl (151kB)
  263. Collecting decorator==4.2.1 (from -r /tmp/requirements2.frozen.txt (line 6))
  264. Downloading decorator-4.2.1-py2.py3-none-any.whl
  265. Collecting enum34==1.1.6 (from -r /tmp/requirements2.frozen.txt (line 7))
  266. Downloading enum34-1.1.6-py2-none-any.whl
  267. Collecting ipykernel==4.8.2 (from -r /tmp/requirements2.frozen.txt (line 8))
  268. Downloading ipykernel-4.8.2-py2-none-any.whl (108kB)
  269. Collecting ipython-genutils==0.2.0 (from -r /tmp/requirements2.frozen.txt (line 9))
  270. Downloading ipython_genutils-0.2.0-py2.py3-none-any.whl
  271. Collecting ipython==5.5.0 (from -r /tmp/requirements2.frozen.txt (line 10))
  272. Downloading ipython-5.5.0-py2-none-any.whl (758kB)
  273. Collecting jupyter-client==5.2.3 (from -r /tmp/requirements2.frozen.txt (line 11))
  274. Downloading jupyter_client-5.2.3-py2.py3-none-any.whl (89kB)
  275. Collecting jupyter-core==4.4.0 (from -r /tmp/requirements2.frozen.txt (line 12))
  276. Downloading jupyter_core-4.4.0-py2.py3-none-any.whl (126kB)
  277. Collecting pathlib2==2.3.0 (from -r /tmp/requirements2.frozen.txt (line 13))
  278. Downloading pathlib2-2.3.0-py2.py3-none-any.whl
  279. Collecting pexpect==4.4.0 (from -r /tmp/requirements2.frozen.txt (line 14))
  280. Downloading pexpect-4.4.0-py2.py3-none-any.whl (56kB)
  281. Collecting pickleshare==0.7.4 (from -r /tmp/requirements2.frozen.txt (line 15))
  282. Downloading pickleshare-0.7.4-py2.py3-none-any.whl
  283. Collecting prompt-toolkit==1.0.15 (from -r /tmp/requirements2.frozen.txt (line 16))
  284. Downloading prompt_toolkit-1.0.15-py2-none-any.whl (247kB)
  285. Collecting ptyprocess==0.5.2 (from -r /tmp/requirements2.frozen.txt (line 17))
  286. Downloading ptyprocess-0.5.2-py2.py3-none-any.whl
  287. Collecting Pygments==2.2.0 (from -r /tmp/requirements2.frozen.txt (line 18))
  288. Downloading Pygments-2.2.0-py2.py3-none-any.whl (841kB)
  289. Collecting python-dateutil==2.7.0 (from -r /tmp/requirements2.frozen.txt (line 19))
  290. Downloading python_dateutil-2.7.0-py2.py3-none-any.whl (207kB)
  291. Collecting pyzmq==17.0.0 (from -r /tmp/requirements2.frozen.txt (line 20))
  292. Downloading pyzmq-17.0.0-cp27-cp27mu-manylinux1_x86_64.whl (3.0MB)
  293. Collecting scandir==1.7 (from -r /tmp/requirements2.frozen.txt (line 21))
  294. Downloading scandir-1.7.tar.gz
  295. Collecting simplegeneric==0.8.1 (from -r /tmp/requirements2.frozen.txt (line 22))
  296. Downloading simplegeneric-0.8.1.zip
  297. Collecting singledispatch==3.4.0.3 (from -r /tmp/requirements2.frozen.txt (line 23))
  298. Downloading singledispatch-3.4.0.3-py2.py3-none-any.whl
  299. Collecting six==1.11.0 (from -r /tmp/requirements2.frozen.txt (line 24))
  300. Downloading six-1.11.0-py2.py3-none-any.whl
  301. Collecting tornado==4.5.3 (from -r /tmp/requirements2.frozen.txt (line 25))
  302. Downloading tornado-4.5.3.tar.gz (484kB)
  303. Collecting traitlets==4.3.2 (from -r /tmp/requirements2.frozen.txt (line 26))
  304. Downloading traitlets-4.3.2-py2.py3-none-any.whl (74kB)
  305. Collecting wcwidth==0.1.7 (from -r /tmp/requirements2.frozen.txt (line 27))
  306. Downloading wcwidth-0.1.7-py2.py3-none-any.whl
  307. Requirement already satisfied: setuptools>=18.5 in /srv/venv2/lib/python2.7/site-packages (from ipython==5.5.0->-r /tmp/requirements2.frozen.txt (line 10))
  308. Installing collected packages: backports-abc, backports.shutil-get-terminal-size, certifi, decorator, enum34, six, ipython-genutils, traitlets, simplegeneric, scandir, pathlib2, pickleshare, ptyprocess, pexpect, Pygments, wcwidth, prompt-toolkit, ipython, pyzmq, python-dateutil, singledispatch, tornado, jupyter-core, jupyter-client, ipykernel
  309. Running setup.py install for simplegeneric: started
  310. Running setup.py install for simplegeneric: finished with status 'done'
  311. Running setup.py install for scandir: started
  312. Running setup.py install for scandir: finished with status 'done'
  313. Running setup.py install for tornado: started
  314. Running setup.py install for tornado: finished with status 'done'
  315. Successfully installed Pygments-2.2.0 backports-abc-0.5 backports.shutil-get-terminal-size-1.0.0 certifi-2018.1.18 decorator-4.2.1 enum34-1.1.6 ipykernel-4.8.2 ipython-5.5.0 ipython-genutils-0.2.0 jupyter-client-5.2.3 jupyter-core-4.4.0 pathlib2-2.3.0 pexpect-4.4.0 pickleshare-0.7.4 prompt-toolkit-1.0.15 ptyprocess-0.5.2 python-dateutil-2.7.0 pyzmq-17.0.0 scandir-1.7 simplegeneric-0.8.1 singledispatch-3.4.0.3 six-1.11.0 tornado-4.5.3 traitlets-4.3.2 wcwidth-0.1.7
  316. [InstallIPythonKernelSpecApp] WARNING | Installing to /srv/venv/share/jupyter/kernels, which is not in ['/home/willingc/.local/share/jupyter/kernels', '/srv/venv2/share/jupyter/kernels', '/usr/local/share/jupyter/kernels', '/usr/share/jupyter/kernels', u'/home/willingc/.ipython/kernels']. The kernelspec may not be found.
  317. Installed kernelspec python2 in /srv/venv/share/jupyter/kernels/python2
  318. Removing intermediate container 9e52706e8527
  319. ---> 5b0a729956ad
  320. Step 33/40 : USER root
  321. ---> Running in cee0d1416a64
  322. Removing intermediate container cee0d1416a64
  323. ---> a2d1abf3d27e
  324. Step 34/40 : COPY src/ ${HOME}
  325. ---> 4cf1e175a8fe
  326. Step 35/40 : RUN chown -R ${NB_USER}:${NB_USER} ${HOME}
  327. ---> Running in 38abebb20b67
  328. Removing intermediate container 38abebb20b67
  329. ---> d0595f1e2445
  330. Step 36/40 : USER ${NB_USER}
  331. ---> Running in 551f93451245
  332. Removing intermediate container 551f93451245
  333. ---> c9937b0e953b
  334. Step 37/40 : RUN pip2 install --no-cache-dir -r requirements.txt
  335. ---> Running in 345d119a8e7f
  336. Collecting numpy (from -r requirements.txt (line 1))
  337. Downloading numpy-1.14.2-cp27-cp27mu-manylinux1_x86_64.whl (12.1MB)
  338. Installing collected packages: numpy
  339. Successfully installed numpy-1.14.2
  340. Removing intermediate container 345d119a8e7f
  341. ---> ea7fa41a784a
  342. Step 38/40 : USER ${NB_USER}
  343. ---> Running in 191d6a49bd1b
  344. Removing intermediate container 191d6a49bd1b
  345. ---> 8d1563074764
  346. Step 39/40 : CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
  347. ---> Running in 3e166e8008a7
  348. Removing intermediate container 3e166e8008a7
  349. ---> e7b2bfd18cfd
  350. Step 40/40 : RUN echo "appendix" > /tmp/appendix
  351. ---> Running in 2c8a4d15ea9d
  352. Removing intermediate container 2c8a4d15ea9d
  353. ---> 067e3aeb2aad
  354. {"aux": {"ID": "sha256:067e3aeb2aadcd6b7130d6594da618599e9cacaead084af5a20478f4e3dda258"}}Successfully built 067e3aeb2aad
  355. Successfully tagged r2d-2fusers-2fwillingc-2fcode-2fjhub-2frepo2docker-2ftests-2fvenv-2fpy21521595361:latest
  356. sys.version_info(major=2, minor=7, micro=14, releaselevel='final', serial=0)
  357. PASSED
  358. tests/volumes.py::test_volume_abspath Using PythonBuildPack builder
  359. Step 1/30 : FROM buildpack-deps:artful
  360. ---> 766d0aa6a29e
  361. Step 2/30 : RUN apt-get update && apt-get install --yes --no-install-recommends locales && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  362. ---> Using cache
  363. ---> f08599fe08cd
  364. Step 3/30 : RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
  365. ---> Using cache
  366. ---> 1132d0768a86
  367. Step 4/30 : ENV LC_ALL en_US.UTF-8
  368. ---> Using cache
  369. ---> 2a88d7ef4985
  370. Step 5/30 : ENV LANG en_US.UTF-8
  371. ---> Using cache
  372. ---> c5a8b2b2a0ba
  373. Step 6/30 : ENV LANGUAGE en_US.UTF-8
  374. ---> Using cache
  375. ---> 90613f2ca049
  376. Step 7/30 : ENV SHELL /bin/bash
  377. ---> Using cache
  378. ---> 6f01a1a70164
  379. Step 8/30 : ARG NB_USER
  380. ---> Using cache
  381. ---> 4adebc5295c1
  382. Step 9/30 : ARG NB_UID
  383. ---> Using cache
  384. ---> 88c3372b8834
  385. Step 10/30 : ENV USER ${NB_USER}
  386. ---> Using cache
  387. ---> a92c89999862
  388. Step 11/30 : ENV HOME /home/${NB_USER}
  389. ---> Using cache
  390. ---> 87389e565b56
  391. Step 12/30 : RUN adduser --disabled-password --gecos "Default user" --uid ${NB_UID} ${NB_USER}
  392. ---> Using cache
  393. ---> b30a4d002e99
  394. Step 13/30 : WORKDIR ${HOME}
  395. ---> Using cache
  396. ---> a56d5d5b2212
  397. Step 14/30 : RUN apt-get update && apt-get install --yes --no-install-recommends less npm unzip && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  398. ---> Using cache
  399. ---> 756ef9e80dde
  400. Step 15/30 : RUN apt-get update && apt-get install --yes python3 python3-dev python3-venv && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  401. ---> Using cache
  402. ---> 3c92a106698e
  403. Step 16/30 : EXPOSE 8888
  404. ---> Using cache
  405. ---> aaafb8afba2f
  406. Step 17/30 : ENV APP_BASE /srv
  407. ---> Using cache
  408. ---> 4917e5edc26a
  409. Step 18/30 : ENV VENV_PATH ${APP_BASE}/venv
  410. ---> Using cache
  411. ---> 31e78ba7ea2c
  412. Step 19/30 : ENV NB_PYTHON_PREFIX ${VENV_PATH}
  413. ---> Using cache
  414. ---> e9117c3653d4
  415. Step 20/30 : ENV PATH ${VENV_PATH}/bin:${PATH}
  416. ---> Using cache
  417. ---> 0d46c981e88a
  418. Step 21/30 : COPY python/requirements.frozen.txt /tmp/requirements.frozen.txt
  419. ---> Using cache
  420. ---> a216f1086654
  421. Step 22/30 : RUN mkdir -p ${VENV_PATH} && chown -R ${NB_USER}:${NB_USER} ${VENV_PATH}
  422. ---> Using cache
  423. ---> 4917f1f51cc0
  424. Step 23/30 : USER ${NB_USER}
  425. ---> Using cache
  426. ---> f2a745652e00
  427. Step 24/30 : RUN python3 -m venv ${VENV_PATH}
  428. ---> Using cache
  429. ---> ea740be5f74b
  430. Step 25/30 : RUN pip install --no-cache-dir -r /tmp/requirements.frozen.txt && jupyter nbextension enable --py widgetsnbextension --sys-prefix && jupyter serverextension enable --py jupyterlab --sys-prefix && jupyter serverextension enable nteract_on_jupyter --sys-prefix
  431. ---> Using cache
  432. ---> 33bfe42baf62
  433. Step 26/30 : USER root
  434. ---> Using cache
  435. ---> 69c5ad332afd
  436. Step 27/30 : COPY src/ ${HOME}
  437. ---> Using cache
  438. ---> bd62ede50a7b
  439. Step 28/30 : RUN chown -R ${NB_USER}:${NB_USER} ${HOME}
  440. ---> Using cache
  441. ---> 579b331c1d7e
  442. Step 29/30 : USER ${NB_USER}
  443. ---> Using cache
  444. ---> 6d2285300afb
  445. Step 30/30 : CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
  446. ---> Using cache
  447. ---> a7e87fdaa730
  448. {"aux": {"ID": "sha256:a7e87fdaa730f9cdc777071ac0a8116c77726adf2055b40b9c6e3d332f9a04e1"}}Successfully built a7e87fdaa730
  449. Successfully tagged r2d-2fvar-2ffolders-2f7l-2fwcc2bqsd5pd48ljr1qm63nym0000gn-2ft-2ftmpthrb6rsj1521595452:latest
  450. Traceback (most recent call last):
  451. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/api/client.py", line 225, in _raise_for_status
  452. response.raise_for_status()
  453. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/requests/models.py", line 935, in raise_for_status
  454. raise HTTPError(http_error_msg, response=self)
  455. requests.exceptions.HTTPError: 502 Server Error: Bad Gateway for url: http+docker://localhost/v1.37/containers/69290299a6f9800a499c0a64d8ebcbc8652eb76134372b1e9be3d5a737a193d3/start
  456.  
  457. During handling of the above exception, another exception occurred:
  458.  
  459. Traceback (most recent call last):
  460. File "/Users/willingc/code/jhub/repo2docker/bin/repo2docker", line 11, in <module>
  461. load_entry_point('jupyter-repo2docker', 'console_scripts', 'repo2docker')()
  462. File "/Users/willingc/code/jhub/repo2docker/repo2docker/__main__.py", line 7, in main
  463. f.start()
  464. File "/Users/willingc/code/jhub/repo2docker/repo2docker/app.py", line 636, in start
  465. self.run_image()
  466. File "/Users/willingc/code/jhub/repo2docker/repo2docker/app.py", line 542, in run_image
  467. environment=self.environment,
  468. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/models/containers.py", line 762, in run
  469. container.start()
  470. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/models/containers.py", line 364, in start
  471. return self.client.api.start(self.id, **kwargs)
  472. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/utils/decorators.py", line 19, in wrapped
  473. return f(self, resource_id, *args, **kwargs)
  474. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/api/container.py", line 1049, in start
  475. self._raise_for_status(res)
  476. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/api/client.py", line 227, in _raise_for_status
  477. raise create_api_error_from_http_exception(e)
  478. File "/Users/willingc/code/jhub/repo2docker/lib/python3.6/site-packages/docker/errors.py", line 31, in create_api_error_from_http_exception
  479. raise cls(e, response=response, explanation=explanation)
  480. docker.errors.APIError: 502 Server Error: Bad Gateway ("b'Mounts denied: \r\nThe path /var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpthrb6rsj\r\nis not shared from OS X and is not known to Docker.\r\nYou can configure shared paths from Docker -> Preferences... -> File Sharing.\r\nSee https://docs.docker.com/docker-for-mac/osxfs/#namespaces for more info.\r\n.'")
  481. FAILED
  482. tests/volumes.py::test_volume_relpath Using PythonBuildPack builder
  483. Step 1/30 : FROM buildpack-deps:artful
  484. ---> 766d0aa6a29e
  485. Step 2/30 : RUN apt-get update && apt-get install --yes --no-install-recommends locales && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  486. ---> Using cache
  487. ---> f08599fe08cd
  488. Step 3/30 : RUN echo "en_US.UTF-8 UTF-8" > /etc/locale.gen && locale-gen
  489. ---> Using cache
  490. ---> 1132d0768a86
  491. Step 4/30 : ENV LC_ALL en_US.UTF-8
  492. ---> Using cache
  493. ---> 2a88d7ef4985
  494. Step 5/30 : ENV LANG en_US.UTF-8
  495. ---> Using cache
  496. ---> c5a8b2b2a0ba
  497. Step 6/30 : ENV LANGUAGE en_US.UTF-8
  498. ---> Using cache
  499. ---> 90613f2ca049
  500. Step 7/30 : ENV SHELL /bin/bash
  501. ---> Using cache
  502. ---> 6f01a1a70164
  503. Step 8/30 : ARG NB_USER
  504. ---> Using cache
  505. ---> 4adebc5295c1
  506. Step 9/30 : ARG NB_UID
  507. ---> Using cache
  508. ---> 88c3372b8834
  509. Step 10/30 : ENV USER ${NB_USER}
  510. ---> Using cache
  511. ---> a92c89999862
  512. Step 11/30 : ENV HOME /home/${NB_USER}
  513. ---> Using cache
  514. ---> 87389e565b56
  515. Step 12/30 : RUN adduser --disabled-password --gecos "Default user" --uid ${NB_UID} ${NB_USER}
  516. ---> Using cache
  517. ---> b30a4d002e99
  518. Step 13/30 : WORKDIR ${HOME}
  519. ---> Using cache
  520. ---> a56d5d5b2212
  521. Step 14/30 : RUN apt-get update && apt-get install --yes --no-install-recommends less npm unzip && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  522. ---> Using cache
  523. ---> 756ef9e80dde
  524. Step 15/30 : RUN apt-get update && apt-get install --yes python3 python3-dev python3-venv && apt-get purge && apt-get clean && rm -rf /var/lib/apt/lists/*
  525. ---> Using cache
  526. ---> 3c92a106698e
  527. Step 16/30 : EXPOSE 8888
  528. ---> Using cache
  529. ---> aaafb8afba2f
  530. Step 17/30 : ENV APP_BASE /srv
  531. ---> Using cache
  532. ---> 4917e5edc26a
  533. Step 18/30 : ENV VENV_PATH ${APP_BASE}/venv
  534. ---> Using cache
  535. ---> 31e78ba7ea2c
  536. Step 19/30 : ENV NB_PYTHON_PREFIX ${VENV_PATH}
  537. ---> Using cache
  538. ---> e9117c3653d4
  539. Step 20/30 : ENV PATH ${VENV_PATH}/bin:${PATH}
  540. ---> Using cache
  541. ---> 0d46c981e88a
  542. Step 21/30 : COPY python/requirements.frozen.txt /tmp/requirements.frozen.txt
  543. ---> Using cache
  544. ---> a216f1086654
  545. Step 22/30 : RUN mkdir -p ${VENV_PATH} && chown -R ${NB_USER}:${NB_USER} ${VENV_PATH}
  546. ---> Using cache
  547. ---> 4917f1f51cc0
  548. Step 23/30 : USER ${NB_USER}
  549. ---> Using cache
  550. ---> f2a745652e00
  551. Step 24/30 : RUN python3 -m venv ${VENV_PATH}
  552. ---> Using cache
  553. ---> ea740be5f74b
  554. Step 25/30 : RUN pip install --no-cache-dir -r /tmp/requirements.frozen.txt && jupyter nbextension enable --py widgetsnbextension --sys-prefix && jupyter serverextension enable --py jupyterlab --sys-prefix && jupyter serverextension enable nteract_on_jupyter --sys-prefix
  555. ---> Using cache
  556. ---> 33bfe42baf62
  557. Step 26/30 : USER root
  558. ---> Using cache
  559. ---> 69c5ad332afd
  560. Step 27/30 : COPY src/ ${HOME}
  561. ---> Using cache
  562. ---> bd62ede50a7b
  563. Step 28/30 : RUN chown -R ${NB_USER}:${NB_USER} ${HOME}
  564. ---> Using cache
  565. ---> 579b331c1d7e
  566. Step 29/30 : USER ${NB_USER}
  567. ---> Using cache
  568. ---> 6d2285300afb
  569. Step 30/30 : CMD ["jupyter", "notebook", "--ip", "0.0.0.0"]
  570. ---> Using cache
  571. ---> a7e87fdaa730
  572. {"aux": {"ID": "sha256:a7e87fdaa730f9cdc777071ac0a8116c77726adf2055b40b9c6e3d332f9a04e1"}}Successfully built a7e87fdaa730
  573. Successfully tagged r2d-2fvar-2ffolders-2f7l-2fwcc2bqsd5pd48ljr1qm63nym0000gn-2ft-2ftmpv77lzx631521595453:latest
  574. PASSED
  575.  
  576. ====================================================== FAILURES =======================================================
  577. ______________________________________________________ test_env _______________________________________________________
  578.  
  579. def test_env():
  580. """
  581. Validate that you can define environment variables
  582. """
  583. ts = str(time.time())
  584. with tempfile.TemporaryDirectory() as tmpdir:
  585. username = os.getlogin()
  586. subprocess.check_call([
  587. 'repo2docker',
  588. '-v', '{}:/home/{}'.format(tmpdir, username),
  589. '-e', 'FOO={}'.format(ts),
  590. '--env', 'BAR=baz',
  591. '--',
  592. tmpdir,
  593. '/bin/bash',
  594. > '-c', 'echo -n $FOO > ts && echo -n $BAR > bar'
  595. ])
  596.  
  597. tests/env.py:24:
  598. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  599.  
  600. popenargs = (['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmp6hraos6f:/home/willingc', '-e', 'FOO=1521593937.8736541', '--env', ...],)
  601. kwargs = {}, retcode = 1
  602. cmd = ['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmp6hraos6f:/home/willingc', '-e', 'FOO=1521593937.8736541', '--env', ...]
  603.  
  604. def check_call(*popenargs, **kwargs):
  605. """Run command with arguments. Wait for command to complete. If
  606. the exit code was zero then return, otherwise raise
  607. CalledProcessError. The CalledProcessError object will have the
  608. return code in the returncode attribute.
  609.  
  610. The arguments are the same as for the call function. Example:
  611.  
  612. check_call(["ls", "-l"])
  613. """
  614. retcode = call(*popenargs, **kwargs)
  615. if retcode:
  616. cmd = kwargs.get("args")
  617. if cmd is None:
  618. cmd = popenargs[0]
  619. > raise CalledProcessError(retcode, cmd)
  620. E subprocess.CalledProcessError: Command '['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmp6hraos6f:/home/willingc', '-e', 'FOO=1521593937.8736541', '--env', 'BAR=baz', '--', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmp6hraos6f', '/bin/bash', '-c', 'echo -n $FOO > ts && echo -n $BAR > bar']' returned non-zero exit status 1.
  621.  
  622. /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py:291: CalledProcessError
  623. __________________________________________ test_memlimit_nondockerfile_fail ___________________________________________
  624.  
  625. def test_memlimit_nondockerfile_fail():
  626. """
  627. Test if memory limited builds are working for non dockerfile builds
  628. """
  629. basedir = os.path.dirname(__file__)
  630. > assert not does_build(
  631. os.path.join(basedir, 'memlimit/non-dockerfile'),
  632. 128,
  633. 256
  634. )
  635. E AssertionError: assert not True
  636. E + where True = does_build('/Users/willingc/code/jhub/repo2docker/tests/memlimit/non-dockerfile', 128, 256)
  637. E + where '/Users/willingc/code/jhub/repo2docker/tests/memlimit/non-dockerfile' = <function join at 0x101d1e6a8>('/Users/willingc/code/jhub/repo2docker/tests', 'memlimit/non-dockerfile')
  638. E + where <function join at 0x101d1e6a8> = <module 'posixpath' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py'>.join
  639. E + where <module 'posixpath' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py'> = os.path
  640.  
  641. tests/memlimit.py:54: AssertionError
  642. ____________________________________________ test_memlimit_dockerfile_fail ____________________________________________
  643.  
  644. def test_memlimit_dockerfile_fail():
  645. """
  646. Test if memory limited builds are working for dockerfile builds
  647. """
  648. basedir = os.path.dirname(__file__)
  649. > assert not does_build(
  650. os.path.join(basedir, 'memlimit/dockerfile'),
  651. 128,
  652. 256
  653. )
  654. E AssertionError: assert not True
  655. E + where True = does_build('/Users/willingc/code/jhub/repo2docker/tests/memlimit/dockerfile', 128, 256)
  656. E + where '/Users/willingc/code/jhub/repo2docker/tests/memlimit/dockerfile' = <function join at 0x101d1e6a8>('/Users/willingc/code/jhub/repo2docker/tests', 'memlimit/dockerfile')
  657. E + where <function join at 0x101d1e6a8> = <module 'posixpath' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py'>.join
  658. E + where <module 'posixpath' from '/Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/posixpath.py'> = os.path
  659.  
  660. tests/memlimit.py:71: AssertionError
  661. ___________________________________________ test_all_port_mapping_response ____________________________________________
  662.  
  663. def test_all_port_mapping_response():
  664. """
  665. Deploy container and test if all port expose works as expected
  666. """
  667. builddir = os.path.dirname(__file__)
  668. with tempfile.TemporaryDirectory() as tmpdir:
  669. username = os.getlogin()
  670.  
  671. # Deploy a test container using r2d in a subprocess
  672. # Added the -v volumes to be able to poll for changes within the container from the
  673. # host (In this case container starting up)
  674. proc = subprocess.Popen(['repo2docker',
  675. "--image-name",
  676. "testallport:0.1",
  677. '-P',
  678. '-v', '{}:/home'.format(tmpdir),
  679. '--user-id', str(os.geteuid()),
  680. '--user-name', username,
  681. '.',
  682. '/bin/bash', '-c', 'echo \'hi\' > /home/ts && python -m http.server 52000'],
  683. cwd=builddir + "/../",
  684. stderr=subprocess.STDOUT)
  685.  
  686. try:
  687. # Wait till docker builds image and starts up
  688. while not os.path.exists(os.path.join(tmpdir, 'ts')):
  689. if proc.poll() is not None:
  690. # Break loop on errors from the subprocess
  691. > raise Exception("Process running r2d exited")
  692. E Exception: Process running r2d exited
  693.  
  694. tests/ports.py:95: Exception
  695. ____________________________________________ test_port_mapping_random_port ____________________________________________
  696.  
  697. def test_port_mapping_random_port():
  698. """
  699. Test a simple random port bind
  700. """
  701. port = str(random.randint(50000, 51000))
  702. host = None
  703. > read_port_mapping_response(host, port)
  704.  
  705. tests/ports.py:119:
  706. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  707.  
  708. host = 'localhost', port = '50641', protocol = None
  709.  
  710. def read_port_mapping_response(host, port, protocol = None):
  711. """
  712. Deploy container and test if port mappings work as expected
  713.  
  714. Args:
  715. host: the host interface to bind to.
  716. port: the random host port to bind to
  717. protocol: the protocol to use valid values /tcp or /udp
  718. """
  719. builddir = os.path.dirname(__file__)
  720. port_protocol = '8000'
  721. if protocol:
  722. port_protocol += protocol
  723. host_port = port
  724. if host:
  725. host_port = host + ':' + port
  726. else:
  727. host = 'localhost'
  728. with tempfile.TemporaryDirectory() as tmpdir:
  729. username = os.getlogin()
  730.  
  731. # Deploy a test container using r2d in a subprocess
  732. # Added the -v volumes to be able to poll for changes within the container from the
  733. # host (In this case container starting up)
  734. proc = subprocess.Popen(['repo2docker',
  735. '-p',
  736. host_port + ':' + port_protocol,
  737. '-v', '{}:/home'.format(tmpdir),
  738. '--user-id', str(os.geteuid()),
  739. '--user-name', username,
  740. '.',
  741. '/bin/bash', '-c', 'echo \'hi\' > /home/ts && python -m http.server 8000'],
  742. cwd=builddir + "/../",
  743. stderr=subprocess.STDOUT)
  744. try:
  745. # Wait till docker builds image and starts up
  746. while not os.path.exists(os.path.join(tmpdir, 'ts')):
  747. if proc.poll() is not None:
  748. # Break loop on errors from the subprocess
  749. > raise Exception("Process running r2d exited")
  750. E Exception: Process running r2d exited
  751.  
  752. tests/ports.py:52: Exception
  753. _______________________________________ test_port_mapping_particular_interface ________________________________________
  754.  
  755. def test_port_mapping_particular_interface():
  756. """
  757. Test if binding to a single interface is possible
  758. """
  759. port = str(random.randint(50000, 51000))
  760. host = '127.0.0.1'
  761. > read_port_mapping_response(host, port)
  762.  
  763. tests/ports.py:128:
  764. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  765.  
  766. host = '127.0.0.1', port = '50793', protocol = None
  767.  
  768. def read_port_mapping_response(host, port, protocol = None):
  769. """
  770. Deploy container and test if port mappings work as expected
  771.  
  772. Args:
  773. host: the host interface to bind to.
  774. port: the random host port to bind to
  775. protocol: the protocol to use valid values /tcp or /udp
  776. """
  777. builddir = os.path.dirname(__file__)
  778. port_protocol = '8000'
  779. if protocol:
  780. port_protocol += protocol
  781. host_port = port
  782. if host:
  783. host_port = host + ':' + port
  784. else:
  785. host = 'localhost'
  786. with tempfile.TemporaryDirectory() as tmpdir:
  787. username = os.getlogin()
  788.  
  789. # Deploy a test container using r2d in a subprocess
  790. # Added the -v volumes to be able to poll for changes within the container from the
  791. # host (In this case container starting up)
  792. proc = subprocess.Popen(['repo2docker',
  793. '-p',
  794. host_port + ':' + port_protocol,
  795. '-v', '{}:/home'.format(tmpdir),
  796. '--user-id', str(os.geteuid()),
  797. '--user-name', username,
  798. '.',
  799. '/bin/bash', '-c', 'echo \'hi\' > /home/ts && python -m http.server 8000'],
  800. cwd=builddir + "/../",
  801. stderr=subprocess.STDOUT)
  802. try:
  803. # Wait till docker builds image and starts up
  804. while not os.path.exists(os.path.join(tmpdir, 'ts')):
  805. if proc.poll() is not None:
  806. # Break loop on errors from the subprocess
  807. > raise Exception("Process running r2d exited")
  808. E Exception: Process running r2d exited
  809.  
  810. tests/ports.py:52: Exception
  811. _____________________________________________ test_port_mapping_protocol ______________________________________________
  812.  
  813. def test_port_mapping_protocol():
  814. """
  815. Test if a particular protocol can be used
  816. """
  817. port = str(random.randint(50000, 51000))
  818. host = None
  819. > read_port_mapping_response(host, port, '/tcp')
  820.  
  821. tests/ports.py:137:
  822. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  823.  
  824. host = 'localhost', port = '50248', protocol = '/tcp'
  825.  
  826. def read_port_mapping_response(host, port, protocol = None):
  827. """
  828. Deploy container and test if port mappings work as expected
  829.  
  830. Args:
  831. host: the host interface to bind to.
  832. port: the random host port to bind to
  833. protocol: the protocol to use valid values /tcp or /udp
  834. """
  835. builddir = os.path.dirname(__file__)
  836. port_protocol = '8000'
  837. if protocol:
  838. port_protocol += protocol
  839. host_port = port
  840. if host:
  841. host_port = host + ':' + port
  842. else:
  843. host = 'localhost'
  844. with tempfile.TemporaryDirectory() as tmpdir:
  845. username = os.getlogin()
  846.  
  847. # Deploy a test container using r2d in a subprocess
  848. # Added the -v volumes to be able to poll for changes within the container from the
  849. # host (In this case container starting up)
  850. proc = subprocess.Popen(['repo2docker',
  851. '-p',
  852. host_port + ':' + port_protocol,
  853. '-v', '{}:/home'.format(tmpdir),
  854. '--user-id', str(os.geteuid()),
  855. '--user-name', username,
  856. '.',
  857. '/bin/bash', '-c', 'echo \'hi\' > /home/ts && python -m http.server 8000'],
  858. cwd=builddir + "/../",
  859. stderr=subprocess.STDOUT)
  860. try:
  861. # Wait till docker builds image and starts up
  862. while not os.path.exists(os.path.join(tmpdir, 'ts')):
  863. if proc.poll() is not None:
  864. # Break loop on errors from the subprocess
  865. > raise Exception("Process running r2d exited")
  866. E Exception: Process running r2d exited
  867.  
  868. tests/ports.py:52: Exception
  869. ______________________________________________________ test_user ______________________________________________________
  870.  
  871. def test_user():
  872. """
  873. Validate user id and name setting
  874. """
  875. ts = str(time.time())
  876. # FIXME: Use arbitrary login here, We need it now since we wanna put things to volume.
  877. username = os.getlogin()
  878. userid = str(os.geteuid())
  879. with tempfile.TemporaryDirectory() as tmpdir:
  880. subprocess.check_call([
  881. 'repo2docker',
  882. '-v', '{}:/home/{}'.format(tmpdir, username),
  883. '--user-id', userid,
  884. '--user-name', username,
  885. tmpdir,
  886. '--',
  887. '/bin/bash',
  888. > '-c', 'id -u > id && pwd > pwd && whoami > name && echo -n $USER > env_user'.format(ts)
  889. ])
  890.  
  891. tests/users.py:26:
  892. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  893.  
  894. popenargs = (['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpsz83o3mw:/home/willingc', '--user-id', '501', '--user-name', ...],)
  895. kwargs = {}, retcode = 1
  896. cmd = ['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpsz83o3mw:/home/willingc', '--user-id', '501', '--user-name', ...]
  897.  
  898. def check_call(*popenargs, **kwargs):
  899. """Run command with arguments. Wait for command to complete. If
  900. the exit code was zero then return, otherwise raise
  901. CalledProcessError. The CalledProcessError object will have the
  902. return code in the returncode attribute.
  903.  
  904. The arguments are the same as for the call function. Example:
  905.  
  906. check_call(["ls", "-l"])
  907. """
  908. retcode = call(*popenargs, **kwargs)
  909. if retcode:
  910. cmd = kwargs.get("args")
  911. if cmd is None:
  912. cmd = popenargs[0]
  913. > raise CalledProcessError(retcode, cmd)
  914. E subprocess.CalledProcessError: Command '['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpsz83o3mw:/home/willingc', '--user-id', '501', '--user-name', 'willingc', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpsz83o3mw', '--', '/bin/bash', '-c', 'id -u > id && pwd > pwd && whoami > name && echo -n $USER > env_user']' returned non-zero exit status 1.
  915.  
  916. /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py:291: CalledProcessError
  917. _________________________________________________ test_volume_abspath _________________________________________________
  918.  
  919. def test_volume_abspath():
  920. """
  921. Validate that you can bind mount a volume onto an absolute dir & write to it
  922. """
  923. ts = str(time.time())
  924. with tempfile.TemporaryDirectory() as tmpdir:
  925. username = os.getlogin()
  926. subprocess.check_call([
  927. 'repo2docker',
  928. '-v', '{}:/home/{}'.format(tmpdir, username),
  929. '--user-id', str(os.geteuid()),
  930. '--user-name', username,
  931. tmpdir,
  932. '--',
  933. '/bin/bash',
  934. > '-c', 'echo -n {} > ts'.format(ts)
  935. ])
  936.  
  937. tests/volumes.py:24:
  938. _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  939.  
  940. popenargs = (['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpthrb6rsj:/home/willingc', '--user-id', '501', '--user-name', ...],)
  941. kwargs = {}, retcode = 1
  942. cmd = ['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpthrb6rsj:/home/willingc', '--user-id', '501', '--user-name', ...]
  943.  
  944. def check_call(*popenargs, **kwargs):
  945. """Run command with arguments. Wait for command to complete. If
  946. the exit code was zero then return, otherwise raise
  947. CalledProcessError. The CalledProcessError object will have the
  948. return code in the returncode attribute.
  949.  
  950. The arguments are the same as for the call function. Example:
  951.  
  952. check_call(["ls", "-l"])
  953. """
  954. retcode = call(*popenargs, **kwargs)
  955. if retcode:
  956. cmd = kwargs.get("args")
  957. if cmd is None:
  958. cmd = popenargs[0]
  959. > raise CalledProcessError(retcode, cmd)
  960. E subprocess.CalledProcessError: Command '['repo2docker', '-v', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpthrb6rsj:/home/willingc', '--user-id', '501', '--user-name', 'willingc', '/var/folders/7l/wcc2bqsd5pd48ljr1qm63nym0000gn/T/tmpthrb6rsj', '--', '/bin/bash', '-c', 'echo -n 1521595451.8576698 > ts']' returned non-zero exit status 1.
  961.  
  962. /Library/Frameworks/Python.framework/Versions/3.6/lib/python3.6/subprocess.py:291: CalledProcessError
  963. ======================================= 9 failed, 36 passed in 4660.89 seconds ========================================
  964. (repo2docker)
  965. willingc at Carols-MacBook-Pro in ~/code/jhub/repo2docker on tests-understand [!?$]
  966. $
Advertisement
Add Comment
Please, Sign In to add comment