Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
384d5240
Commit
384d5240
authored
Jan 11, 2016
by
Michael Poplavski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Modified entrypoint of minimal kernel.
Contribution (c) Copyright IBM Corp. 2016
parent
9698d1af
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
19 deletions
+3
-19
minimal-kernel/Dockerfile
minimal-kernel/Dockerfile
+2
-3
minimal-kernel/README.md
minimal-kernel/README.md
+1
-1
minimal-kernel/start-notebook.sh
minimal-kernel/start-notebook.sh
+0
-15
No files found.
minimal-kernel/Dockerfile
View file @
384d5240
...
@@ -38,11 +38,10 @@ RUN pip3 install jupyter_kernel_gateway==0.2.0
...
@@ -38,11 +38,10 @@ RUN pip3 install jupyter_kernel_gateway==0.2.0
USER
$NB_USER
USER
$NB_USER
EXPOSE
8888
EXPOSE
8888
WORKDIR
/home/$NB_USER/work
WORKDIR
/home/$NB_USER/work
ENTRYPOINT
["tini", "--"]
ENTRYPOINT
["tini", "--"
, "jupyter", "kernelgateway"
]
CMD
["
/usr/local/bin/start-notebook.sh
"]
CMD
["
--KernelGatewayApp.ip=0.0.0.0
"]
# Add local files as late as possible to avoid cache busting
# Add local files as late as possible to avoid cache busting
USER
root
USER
root
COPY
start-notebook.sh /usr/local/bin/
COPY
jupyter_kernel_gateway_config.py /home/$NB_USER/.jupyter/
COPY
jupyter_kernel_gateway_config.py /home/$NB_USER/.jupyter/
RUN
chown
-R
$NB_USER
:users /home/
$NB_USER
/.jupyter
RUN
chown
-R
$NB_USER
:users /home/
$NB_USER
/.jupyter
minimal-kernel/README.md
View file @
384d5240
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
*
[
Jupyter Kernel Gateway
](
https://github.com/jupyter-incubator/kernel_gateway
)
that spawns minimal Jupyter Python kernel
*
[
Jupyter Kernel Gateway
](
https://github.com/jupyter-incubator/kernel_gateway
)
that spawns minimal Jupyter Python kernel
*
No preinstalled scientific computing packages
*
No preinstalled scientific computing packages
*
Unprivileged user
`jovyan`
(uid=1000, configurable, see options) in group
`users`
(gid=100) with ownership over
`/home/jovyan`
*
Unprivileged user
`jovyan`
(uid=1000, configurable, see options) in group
`users`
(gid=100) with ownership over
`/home/jovyan`
*
[
tini
](
https://github.com/krallin/tini
)
as the container entrypoint
and
[
start.sh
](
./start.sh
)
as the default command
*
[
tini
](
https://github.com/krallin/tini
)
as the container entrypoint
*
Options for Port and Ip address
*
Options for Port and Ip address
...
...
minimal-kernel/start-notebook.sh
deleted
100644 → 0
View file @
9698d1af
#!/bin/bash
# Change UID of NB_USER to NB_UID if it does not match
if
[
"
$NB_UID
"
!=
$(
id
-u
$NB_USER
)
]
;
then
usermod
-u
$NB_UID
$NB_USER
fi
# Enable sudo if requested
if
[
!
-z
"
$GRANT_SUDO
"
]
;
then
echo
"
$NB_USER
ALL=(ALL) NOPASSWD:ALL"
>
/etc/sudoers.d/notebook
fi
# Start the notebook server
exec
su
$NB_USER
-c
"env PATH=
$PATH
jupyter kernelgateway
$@
"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment