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
b89f25d2
Commit
b89f25d2
authored
Jan 12, 2016
by
Michael Poplavski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Run container as jovyan instead of nobody.
Contribution (c) Copyright IBM Corp. 2016
parent
943e376f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
4 deletions
+11
-4
minimal-kernel/Dockerfile
minimal-kernel/Dockerfile
+11
-4
No files found.
minimal-kernel/Dockerfile
View file @
b89f25d2
...
@@ -9,10 +9,9 @@ USER root
...
@@ -9,10 +9,9 @@ USER root
ENV
DEBIAN_FRONTEND noninteractive
ENV
DEBIAN_FRONTEND noninteractive
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
\
RUN
apt-get update
&&
apt-get
install
-yq
--no-install-recommends
\
wget
\
wget
\
build-essential
\
python3-dev
\
python3-dev
\
build-essential
\
python3-pip
\
python3-pip
\
libsm6
\
python3-zmq
\
python3-zmq
\
&&
apt-get clean
&&
apt-get clean
...
@@ -22,6 +21,14 @@ RUN wget --quiet https://github.com/krallin/tini/releases/download/v0.6.0/tini &
...
@@ -22,6 +21,14 @@ RUN wget --quiet https://github.com/krallin/tini/releases/download/v0.6.0/tini &
mv
tini /usr/local/bin/tini
&&
\
mv
tini /usr/local/bin/tini
&&
\
chmod
+x /usr/local/bin/tini
chmod
+x /usr/local/bin/tini
# Configure environment
ENV
SHELL /bin/bash
ENV
KG_USER jovyan
ENV
KG_UID 1000
# Create jovyan user with UID=1000
RUN
useradd
-m
-s
/bin/bash
-N
-u
$KG_UID
$KG_USER
# Install Kernel Gateway
# Install Kernel Gateway
RUN
pip3
install
jupyter_kernel_gateway
==
0.2.0
RUN
pip3
install
jupyter_kernel_gateway
==
0.2.0
...
@@ -32,5 +39,5 @@ WORKDIR /tmp
...
@@ -32,5 +39,5 @@ WORKDIR /tmp
ENTRYPOINT
["tini", "--", "jupyter", "kernelgateway"]
ENTRYPOINT
["tini", "--", "jupyter", "kernelgateway"]
CMD
["--KernelGatewayApp.ip=0.0.0.0"]
CMD
["--KernelGatewayApp.ip=0.0.0.0"]
#error Permission denied: '/nonexistent' when not running as root or as user nobody
# Run container as jovyan
USER
root
USER
jovyan
\ No newline at end of file
\ No newline at end of file
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