Skip to content

Commit c89391f

Browse files
sharvil10atheo89
authored andcommitted
oneapi basekit vars set for tensorflow-cpu
1 parent 2f74e2c commit c89391f

File tree

4 files changed

+20
-3
lines changed

4 files changed

+20
-3
lines changed

jupyter/intel/tensorflow/ubi9-python-3.9/Dockerfile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ RUN echo "Installing softwares and packages" && \
2525
fix-permissions /opt/app-root -P
2626

2727
#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
2929
COPY --chown=1001:0 kernel-gpu.json /opt/app-root/share/jupyter/kernels/python3/kernel.json
3030
COPY --chown=1001:0 start-notebook.sh /opt/app-root/bin
3131
COPY --chown=1001:0 builder /opt/app-root/builder
@@ -35,6 +35,7 @@ COPY --chown=1001:0 utils /opt/app-root/bin/utils
3535
COPY --chown=1001:0 Pipfile.lock.cpu ${CPU_ENV}/Pipfile.lock
3636

3737
WORKDIR ${CPU_ENV}
38+
3839
RUN source ${CPU_ENV}/bin/activate && \
3940
micropipenv install && \
4041
rm -f ./Pipfile.lock && \
@@ -45,6 +46,8 @@ RUN source ${CPU_ENV}/bin/activate && \
4546
fix-permissions ${CPU_ENV} -P && \
4647
chmod -R g+w /opt/app-root/src
4748

49+
COPY --chown=1001:0 kernel-cpu.json /opt/app-root/share/jupyter/kernels/tensorflow-cpu/kernel.json
50+
4851
WORKDIR /opt/app-root/src
4952

5053
ENV JUPYTER_PRELOAD_REPOS="https://github.com/IntelAI/oneAPI-samples"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
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+
}

jupyter/intel/tensorflow/ubi9-python-3.9/kernel-gpu.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
22
"argv": [
3-
"/opt/app-root/bin/start-gpu-kernel",
3+
"/opt/app-root/bin/start-kernel",
44
"-f",
55
"{connection_file}"
66
],
7+
"env": {"JUPYTER_ENV":"/opt/app-root"},
78
"display_name": "tensorflow-gpu",
89
"language": "python",
910
"metadata": {

jupyter/intel/tensorflow/ubi9-python-3.9/start-kernel

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22

33
source /opt/intel/oneapi/setvars.sh
44

5-
exec /opt/app-root/bin/python -m ipykernel_launcher $@
5+
exec ${JUPYTER_ENV}/bin/python -m ipykernel_launcher $@

0 commit comments

Comments
 (0)