Created
June 4, 2023 09:36
-
-
Save zeitounator/c0cf88748d65a37dbcebeffd09432776 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
$ cat Dockerfile | |
FROM jupyter/scipy-notebook | |
RUN pip install mlflow | |
RUN pip install sklearn | |
USER root | |
RUN apt-get update && apt-get install -y curl | |
# Switch back to jovyan to avoid accidental container runs as root | |
USER $NB_UID | |
RUN echo $NB_UID | |
$ docker build -t test:test . | |
[+] Building 101.4s (9/9) FINISHED | |
=> [internal] load build definition from Dockerfile 0.6s | |
=> => transferring dockerfile: 270B 0.0s | |
=> [internal] load .dockerignore 0.6s | |
=> => transferring context: 2B 0.0s | |
=> [internal] load metadata for docker.io/jupyter/scipy-notebook:latest 1.3s | |
=> [1/5] FROM docker.io/jupyter/scipy-notebook@sha256:32e1a8557fdb3556800e5b37d3f5b743073b1c3af79cc13011a1c7f20a4363b8 68.2s | |
=> => resolve docker.io/jupyter/scipy-notebook@sha256:32e1a8557fdb3556800e5b37d3f5b743073b1c3af79cc13011a1c7f20a4363b8 0.0s | |
=> => sha256:25a7a658558ae4262c774575a79e1cb6c95732015304f4b2660fcc2871b3a331 6.16kB / 6.16kB 0.0s | |
=> => sha256:f37be0686bc3e61d68883fbdb63d278da27e4b437cf9ac63fe4ceae8554c3a28 17.48kB / 17.48kB 0.0s | |
=> => sha256:af3ca5015620276f99719a21ffed500c49ed0b70bbc1556abd640c0d77dd6416 680B / 680B 0.3s | |
=> => sha256:32e1a8557fdb3556800e5b37d3f5b743073b1c3af79cc13011a1c7f20a4363b8 772B / 772B 0.0s | |
=> => sha256:5bbc58a292e77d6c48d10d9ea92a35a4230d141d1812ebdca4112e29c1864a1d 12.78MB / 12.78MB 1.0s | |
=> => sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 32B / 32B 0.2s | |
=> => sha256:6ea9d13d2ba481af196f7e4b40e9079300ac0563288d0381e336ee6197654878 1.91kB / 1.91kB 0.4s | |
=> => sha256:8f9e148af5a77c3d5f652c15756e99cacd70fed06160c383e14f8149b6a493c9 4.92kB / 4.92kB 0.5s | |
=> => sha256:83e1f700218888d0a061bdf9e1153ce06ea87aae16404b44755f16ab97ae2186 149B / 149B 0.7s | |
=> => sha256:f33d89699889f7022da336a6d7040b64138a61795ea2dbbaf690ccb39ecdd797 275B / 275B 0.7s | |
=> => sha256:d8af770455222ba1e398b701e958a97e802482268c9ef73369b5028aac670454 104.61MB / 104.61MB 6.0s | |
=> => sha256:0ac6a48321fc258282518e61b927c63c808c1036f61ff2b3c990aa7bc02418b1 4.20kB / 4.20kB 1.0s | |
=> => sha256:e890e10bb672d886bb5262bdd41fd5c38ba93073d1c96b534fe9aecc9f1f6fcd 30.50MB / 30.50MB 3.6s | |
=> => extracting sha256:5bbc58a292e77d6c48d10d9ea92a35a4230d141d1812ebdca4112e29c1864a1d 0.7s | |
=> => sha256:30a22732a1a3596f65349d624ee8bb6ca103a4195c46e00bccce6a222e3067cb 125.31MB / 125.31MB 11.5s | |
=> => extracting sha256:af3ca5015620276f99719a21ffed500c49ed0b70bbc1556abd640c0d77dd6416 0.0s | |
=> => extracting sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1 0.0s | |
=> => extracting sha256:6ea9d13d2ba481af196f7e4b40e9079300ac0563288d0381e336ee6197654878 0.0s | |
=> => extracting sha256:8f9e148af5a77c3d5f652c15756e99cacd70fed06160c383e14f8149b6a493c9 0.0s | |
=> => sha256:546f2a68b699b24e9e4addae9bcad8440e24947c3ff484b52225eb1b320d4b5d 683B / 683B 3.8s | |
=> => extracting sha256:83e1f700218888d0a061bdf9e1153ce06ea87aae16404b44755f16ab97ae2186 0.0s | |
=> => sha256:c59638f71e5785b25da38365e5a4745f70e1b0f10587d2c58bd9d84e81e3c159 1.41kB / 1.41kB 3.9s | |
=> => sha256:17dd4010627ded58de6cd734c014ab0470b7552bc9de9361cec08fcdaaec1f03 1.48kB / 1.48kB 4.1s | |
=> => sha256:d22c70f67afd3fae3b68afcce2cb3d3f1ec8a268031b8e0a6cdc349ff0fea4f5 177.91MB / 177.91MB 24.0s | |
=> => extracting sha256:f33d89699889f7022da336a6d7040b64138a61795ea2dbbaf690ccb39ecdd797 0.0s | |
=> => sha256:77fe1be77f12d417db289b30fc02fac60ce63058e420755274787b8607dcedc4 1.47kB / 1.47kB 6.2s | |
=> => sha256:5266639eac7f4cb65009f6d6af27a9d4146970c3cf974a176ef248bc28cb1d5a 436B / 436B 6.4s | |
=> => sha256:0d5322e8b48f52fb6ca4e7ff2ce58b3a66d275ca614663e584022790be260765 278.28MB / 278.28MB 19.9s | |
=> => extracting sha256:d8af770455222ba1e398b701e958a97e802482268c9ef73369b5028aac670454 3.0s | |
=> => extracting sha256:0ac6a48321fc258282518e61b927c63c808c1036f61ff2b3c990aa7bc02418b1 0.0s | |
=> => extracting sha256:e890e10bb672d886bb5262bdd41fd5c38ba93073d1c96b534fe9aecc9f1f6fcd 0.8s | |
=> => sha256:66236ea9cc10f635464e3ab9cac015ab58b5d4e06db00d571d13a287b9258e92 524.80MB / 524.80MB 40.5s | |
=> => extracting sha256:30a22732a1a3596f65349d624ee8bb6ca103a4195c46e00bccce6a222e3067cb 5.2s | |
=> => extracting sha256:546f2a68b699b24e9e4addae9bcad8440e24947c3ff484b52225eb1b320d4b5d 0.0s | |
=> => extracting sha256:c59638f71e5785b25da38365e5a4745f70e1b0f10587d2c58bd9d84e81e3c159 0.0s | |
=> => extracting sha256:17dd4010627ded58de6cd734c014ab0470b7552bc9de9361cec08fcdaaec1f03 0.0s | |
=> => sha256:733b87a392857ad7617f173fbb3f625b83a59c43f7c71e767fc5a4e338d2fe8e 597.22kB / 597.22kB 20.3s | |
=> => sha256:54b14283d60aeb3e93875f81fa23e9c925d09f260f9301ae98b93fa5eb1c04b8 7.10kB / 7.10kB 20.5s | |
=> => extracting sha256:d22c70f67afd3fae3b68afcce2cb3d3f1ec8a268031b8e0a6cdc349ff0fea4f5 7.2s | |
=> => extracting sha256:77fe1be77f12d417db289b30fc02fac60ce63058e420755274787b8607dcedc4 0.0s | |
=> => extracting sha256:5266639eac7f4cb65009f6d6af27a9d4146970c3cf974a176ef248bc28cb1d5a 0.0s | |
=> => extracting sha256:0d5322e8b48f52fb6ca4e7ff2ce58b3a66d275ca614663e584022790be260765 3.9s | |
=> => extracting sha256:66236ea9cc10f635464e3ab9cac015ab58b5d4e06db00d571d13a287b9258e92 12.1s | |
=> => extracting sha256:733b87a392857ad7617f173fbb3f625b83a59c43f7c71e767fc5a4e338d2fe8e 0.8s | |
=> => extracting sha256:54b14283d60aeb3e93875f81fa23e9c925d09f260f9301ae98b93fa5eb1c04b8 0.0s | |
=> [2/5] RUN pip install mlflow 11.8s | |
=> [3/5] RUN pip install sklearn 3.1s | |
=> [4/5] RUN apt-get update && apt-get install -y curl 6.9s | |
=> [5/5] RUN echo 1000 1.0s | |
=> exporting to image 8.4s | |
=> => exporting layers 8.4s | |
=> => writing image sha256:7e56df6529ee7418eb3da96ada11c2f6d68a18d1b687e5bbfadf22d433abfa38 0.0s | |
=> => naming to docker.io/library/test:test 0.0s | |
$ docker run -it --rm test:test | |
Entered start.sh with args: jupyter lab | |
Executing the command: jupyter lab | |
[I 2023-06-04 09:30:05.095 ServerApp] Package jupyterlab took 0.0000s to import | |
[I 2023-06-04 09:30:05.105 ServerApp] Package jupyter_lsp took 0.0096s to import | |
[W 2023-06-04 09:30:05.105 ServerApp] A `_jupyter_server_extension_points` function was not found in jupyter_lsp. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. | |
[I 2023-06-04 09:30:05.106 ServerApp] Package jupyter_server_mathjax took 0.0009s to import | |
[I 2023-06-04 09:30:05.110 ServerApp] Package jupyter_server_terminals took 0.0041s to import | |
[I 2023-06-04 09:30:05.138 ServerApp] Package jupyterlab_git took 0.0268s to import | |
[I 2023-06-04 09:30:05.139 ServerApp] Package nbclassic took 0.0012s to import | |
[W 2023-06-04 09:30:05.140 ServerApp] A `_jupyter_server_extension_points` function was not found in nbclassic. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. | |
[I 2023-06-04 09:30:05.141 ServerApp] Package nbdime took 0.0000s to import | |
[I 2023-06-04 09:30:05.141 ServerApp] Package notebook_shim took 0.0000s to import | |
[W 2023-06-04 09:30:05.141 ServerApp] A `_jupyter_server_extension_points` function was not found in notebook_shim. Instead, a `_jupyter_server_extension_paths` function was found and will be used for now. This function name will be deprecated in future releases of Jupyter Server. | |
[I 2023-06-04 09:30:05.141 ServerApp] jupyter_lsp | extension was successfully linked. | |
[I 2023-06-04 09:30:05.144 ServerApp] jupyter_server_mathjax | extension was successfully linked. | |
[I 2023-06-04 09:30:05.146 ServerApp] jupyter_server_terminals | extension was successfully linked. | |
[I 2023-06-04 09:30:05.149 ServerApp] jupyterlab | extension was successfully linked. | |
[I 2023-06-04 09:30:05.149 ServerApp] jupyterlab_git | extension was successfully linked. | |
[W 2023-06-04 09:30:05.151 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[W 2023-06-04 09:30:05.151 NotebookApp] 'ip' has moved from NotebookApp to ServerApp. This config will be passed to ServerApp. Be sure to update your config before our next release. | |
[I 2023-06-04 09:30:05.153 ServerApp] nbclassic | extension was successfully linked. | |
[I 2023-06-04 09:30:05.153 ServerApp] nbdime | extension was successfully linked. | |
[I 2023-06-04 09:30:05.254 ServerApp] Writing Jupyter server cookie secret to /home/jovyan/.local/share/jupyter/runtime/jupyter_cookie_secret | |
[I 2023-06-04 09:30:05.417 ServerApp] notebook_shim | extension was successfully linked. | |
[I 2023-06-04 09:30:05.492 ServerApp] notebook_shim | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.493 ServerApp] jupyter_lsp | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.494 ServerApp] jupyter_server_mathjax | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.494 ServerApp] jupyter_server_terminals | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.494 LabApp] JupyterLab extension loaded from /opt/conda/lib/python3.11/site-packages/jupyterlab | |
[I 2023-06-04 09:30:05.494 LabApp] JupyterLab application directory is /opt/conda/share/jupyter/lab | |
[I 2023-06-04 09:30:05.495 LabApp] Extension Manager is 'pypi'. | |
[I 2023-06-04 09:30:05.496 ServerApp] jupyterlab | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.499 ServerApp] jupyterlab_git | extension was successfully loaded. | |
_ _ _ _ | |
| | | |_ __ __| |__ _| |_ ___ | |
| |_| | '_ \/ _` / _` | _/ -_) | |
\___/| .__/\__,_\__,_|\__\___| | |
|_| | |
Read the migration plan to Notebook 7 to learn about the new features and the actions to take if you are using extensions. | |
https://jupyter-notebook.readthedocs.io/en/latest/migrate_to_notebook7.html | |
Please note that updating to Notebook 7 might break some of your extensions. | |
[I 2023-06-04 09:30:05.501 ServerApp] nbclassic | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.541 ServerApp] nbdime | extension was successfully loaded. | |
[I 2023-06-04 09:30:05.542 ServerApp] Serving notebooks from local directory: /home/jovyan | |
[I 2023-06-04 09:30:05.542 ServerApp] Jupyter Server 2.6.0 is running at: | |
[I 2023-06-04 09:30:05.542 ServerApp] http://40b7849defeb:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
[I 2023-06-04 09:30:05.542 ServerApp] http://127.0.0.1:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
[I 2023-06-04 09:30:05.542 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). | |
[C 2023-06-04 09:30:05.544 ServerApp] | |
To access the server, open this file in a browser: | |
file:///home/jovyan/.local/share/jupyter/runtime/jpserver-7-open.html | |
Or copy and paste one of these URLs: | |
http://40b7849defeb:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
http://127.0.0.1:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
[I 2023-06-04 09:30:05.974 ServerApp] Skipped non-installed server(s): bash-language-server, dockerfile-language-server-nodejs, javascript-typescript-langserver, jedi-language-server, julia-language-server, pyright, python-language-server, python-lsp-server, r-languageserver, sql-language-server, texlab, typescript-language-server, unified-language-server, vscode-css-languageserver-bin, vscode-html-languageserver-bin, vscode-json-languageserver-bin, yaml-language-server | |
^C[I 2023-06-04 09:30:13.633 ServerApp] interrupted | |
[I 2023-06-04 09:30:13.634 ServerApp] Serving notebooks from local directory: /home/jovyan | |
0 active kernels | |
Jupyter Server 2.6.0 is running at: | |
http://40b7849defeb:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
http://127.0.0.1:8888/lab?token=21e1fddaa8eb795a8ba49babadcdfcec7a1a87e92ebc2cfc | |
Shutdown this Jupyter server (y/[n])? y | |
[C 2023-06-04 09:30:17.666 ServerApp] Shutdown confirmed | |
[I 2023-06-04 09:30:17.666 ServerApp] Shutting down 8 extensions |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment