forked from dusty-nv/jetson-containers
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
108 lines (97 loc) · 3.14 KB
/
Dockerfile
File metadata and controls
108 lines (97 loc) · 3.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
#---
# name: jupyter_clickable_image_widget
# group: hardware
# depends: [jupyterlab]
# notes: https://github.com/jaybdub/jupyter_clickable_image_widget
#---
ARG BASE_IMAGE
FROM ${BASE_IMAGE}
# Reference:
# https://github.com/NVIDIA-AI-IOT/jetbot/blob/master/docker/base/Dockerfile
# Install traitlets (master, to support the unlink() method)
RUN echo -e "\e[48;5;172m Install traitlets \e[0m"
RUN python3 -m pip install git+https://github.com/ipython/traitlets@main
# Install dependencies for jupyter_clickable_image_widget
RUN echo "\e[42m Install dependencies \e[0m"
RUN curl -fsSL https://deb.nodesource.com/setup_lts.x | bash -
RUN apt-get update && \
apt-get install -y --no-install-recommends \
nodejs nodejs-dev libssl-dev && \
rm -rf /var/lib/apt/lists/* && \
apt-get clean
RUN npm install -g node-gyp
# RUN pip3 install jupyter 'jupyterlab==4.2.0' && \
# RUN pip3 install jupyter 'jupyterlab<4' && \
# pip3 install jupyterlab_widgets
RUN jupyter labextension install @jupyter-widgets/jupyterlab-manager
# For ipywidget development
# RUN apt-get update && \
# apt-get install -y --no-install-recommends \
# cookiecutter && \
# rm -rf /var/lib/apt/lists/* && \
# apt-get clean
# RUN nmp install -g yarn
# RUN pip3 install jupyter_packaging
WORKDIR /opt
# Install jupyter_clickable_image_widget
RUN echo "\e[42m Install jupyter_clickable_image_widget \e[0m"
RUN git clone https://github.com/jaybdub/jupyter_clickable_image_widget && \
cd jupyter_clickable_image_widget && \
git checkout b2ee0f4 && \
# RUN git clone https://github.com/tokk-nv/jupyter_clickable_image_widget/ && \
# cd jupyter_clickable_image_widget && \
# git checkout dev-ipywidgets8 && \
pip3 install . && \
jupyter labextension install js && \
jupyter lab build
# COPY ipyclick_tokknv /opt/jupyter_clickable_image_widget
# RUN cd /opt/jupyter_clickable_image_widget && \
# pip3 install . && \
# jupyter labextension install js && \
# jupyter lab build
# RUN pip3 install 'ipywidgets<8'
RUN pip3 list
RUN jupyter --version
RUN jupyter labextension list
COPY ./examples/ /opt/jupyter_clickable_examples/
ENV JUPYTER_ROOT=/opt/jupyter_clickable_examples/
CMD /start_jupyter && /bin/bash
# {
# "name": "jupyter_clickable_image_widget",
# "version": "0.1.0",
# "description": "A Custom Jupyter Widget Library",
# "author": "John Welsh",
# "main": "lib/index.js",
# "repository": {
# "type": "git",
# "url": "https://github.com//jupyter_clickable_image_widget.git"
# },
# "keywords": [
# "jupyter",
# "widgets",
# "ipython",
# "ipywidgets",
# "jupyterlab-extension"
# ],
# "files": [
# "lib/**/*.js",
# "dist/*.js"
# ],
# "scripts": {
# "clean": "rimraf dist/",
# "prepublish": "webpack",
# "build": "webpack",
# "watch": "webpack --watch --mode=development",
# "test": "echo \"Error: no test specified\" && exit 1"
# },
# "devDependencies": {
# "webpack": "^3.5.5",
# "rimraf": "^2.6.1"
# },
# "dependencies": {
# "@jupyter-widgets/base": "^1.1 || ^2 || ^3 || ^4 || ^6"
# },
# "jupyterlab": {
# "extension": "lib/labplugin"
# }
# }