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
30932a3b
Commit
30932a3b
authored
Aug 28, 2015
by
Carl Osterwisch
Committed by
Peter Parente
Aug 28, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert to using supervisord to launch notebook
Used to relaunch notebook and collect logging data.
parent
f2b7f38d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
5 deletions
+14
-5
minimal-notebook/Dockerfile
minimal-notebook/Dockerfile
+2
-0
minimal-notebook/notebook.conf
minimal-notebook/notebook.conf
+10
-0
minimal-notebook/start-notebook.sh
minimal-notebook/start-notebook.sh
+2
-5
No files found.
minimal-notebook/Dockerfile
View file @
30932a3b
...
@@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \
...
@@ -20,6 +20,7 @@ RUN apt-get update && apt-get install -yq --no-install-recommends \
texlive-latex-extra
\
texlive-latex-extra
\
texlive-fonts-extra
\
texlive-fonts-extra
\
texlive-fonts-recommended
\
texlive-fonts-recommended
\
supervisor
\
sudo
\
sudo
\
&&
apt-get clean
&&
apt-get clean
...
@@ -53,4 +54,5 @@ CMD [ "start-notebook.sh" ]
...
@@ -53,4 +54,5 @@ CMD [ "start-notebook.sh" ]
# Add local files as late as possible to avoid cache busting
# Add local files as late as possible to avoid cache busting
COPY
start-notebook.sh /usr/local/bin/
COPY
start-notebook.sh /usr/local/bin/
COPY
notebook.conf /etc/supervisor/conf.d/
COPY
jupyter_notebook_config.py /etc/skel/.jupyter/
COPY
jupyter_notebook_config.py /etc/skel/.jupyter/
minimal-notebook/notebook.conf
0 → 100644
View file @
30932a3b
[
program
:
notebook
]
user
=
jovyan
umask
=
0002
directory
=%(
ENV_WORK
)
s
command
=
ipython
notebook
autostart
=
true
autorestart
=
true
stdout_logfile
=/
var
/
log
/
supervisor
/%(
program_name
)
s
.
log
redirect_stderr
=
true
environment
=
HOME
=
"/home/%(ENV_NB_USER)s"
,
USER
=
"%(ENV_NB_USER)s"
minimal-notebook/start-notebook.sh
View file @
30932a3b
...
@@ -12,8 +12,5 @@ if [ ! -z "$GRANT_SUDO" ]; then
...
@@ -12,8 +12,5 @@ if [ ! -z "$GRANT_SUDO" ]; then
echo
"
$NB_USER
ALL=(ALL) NOPASSWD:ALL"
>
/etc/sudoers.d/notebook
echo
"
$NB_USER
ALL=(ALL) NOPASSWD:ALL"
>
/etc/sudoers.d/notebook
fi
fi
# Run Notebook server as $NB_USER
# Start supervisord in foreground, PID1
su
-l
$NB_USER
<<
EOF
exec
supervisord
-n
-c
/etc/supervisor/supervisord.conf
cd
$WORK
jupyter notebook
EOF
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