File tree Expand file tree Collapse file tree 4 files changed +20
-3
lines changed
jupyter/intel/tensorflow/ubi9-python-3.9 Expand file tree Collapse file tree 4 files changed +20
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ RUN echo "Installing softwares and packages" && \
25
25
fix-permissions /opt/app-root -P
26
26
27
27
# Replacing kernel manually with oneapi variable setting script
28
- COPY --chown=1001:0 start-gpu- kernel /opt/app-root/bin/start-gpu -kernel
28
+ COPY --chown=1001:0 start-kernel /opt/app-root/bin/start-kernel
29
29
COPY --chown=1001:0 kernel-gpu.json /opt/app-root/share/jupyter/kernels/python3/kernel.json
30
30
COPY --chown=1001:0 start-notebook.sh /opt/app-root/bin
31
31
COPY --chown=1001:0 builder /opt/app-root/builder
@@ -35,6 +35,7 @@ COPY --chown=1001:0 utils /opt/app-root/bin/utils
35
35
COPY --chown=1001:0 Pipfile.lock.cpu ${CPU_ENV}/Pipfile.lock
36
36
37
37
WORKDIR ${CPU_ENV}
38
+
38
39
RUN source ${CPU_ENV}/bin/activate && \
39
40
micropipenv install && \
40
41
rm -f ./Pipfile.lock && \
@@ -45,6 +46,8 @@ RUN source ${CPU_ENV}/bin/activate && \
45
46
fix-permissions ${CPU_ENV} -P && \
46
47
chmod -R g+w /opt/app-root/src
47
48
49
+ COPY --chown=1001:0 kernel-cpu.json /opt/app-root/share/jupyter/kernels/tensorflow-cpu/kernel.json
50
+
48
51
WORKDIR /opt/app-root/src
49
52
50
53
ENV JUPYTER_PRELOAD_REPOS="https://github.com/IntelAI/oneAPI-samples"
Original file line number Diff line number Diff line change
1
+ {
2
+ "argv" : [
3
+ " /opt/app-root/bin/start-kernel" ,
4
+ " -f" ,
5
+ " {connection_file}"
6
+ ],
7
+ "env" : {"JUPYTER_ENV" :" /opt/app-root-cpu" },
8
+ "display_name" : " tensorflow-cpu" ,
9
+ "language" : " python" ,
10
+ "metadata" : {
11
+ "debugger" : true
12
+ }
13
+ }
Original file line number Diff line number Diff line change 1
1
{
2
2
"argv" : [
3
- " /opt/app-root/bin/start-gpu- kernel" ,
3
+ " /opt/app-root/bin/start-kernel" ,
4
4
" -f" ,
5
5
" {connection_file}"
6
6
],
7
+ "env" : {"JUPYTER_ENV" :" /opt/app-root" },
7
8
"display_name" : " tensorflow-gpu" ,
8
9
"language" : " python" ,
9
10
"metadata" : {
Original file line number Diff line number Diff line change 2
2
3
3
source /opt/intel/oneapi/setvars.sh
4
4
5
- exec /opt/app-root /bin/python -m ipykernel_launcher $@
5
+ exec ${JUPYTER_ENV} /bin/python -m ipykernel_launcher $@
You can’t perform that action at this time.
0 commit comments