Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
clb-jupyter-nb-images
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Romina Baila
clb-jupyter-nb-images
Commits
52ee93b5
Commit
52ee93b5
authored
1 year ago
by
Eleni Mathioulaki
Browse files
Options
Downloads
Patches
Plain Diff
drop OKD workaround
parent
f7dba85c
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
base/Dockerfile
+0
-5
0 additions, 5 deletions
base/Dockerfile
base/group.template
+0
-2
0 additions, 2 deletions
base/group.template
base/passwd.template
+0
-14
0 additions, 14 deletions
base/passwd.template
base/start-notebook.sh
+0
-10
0 additions, 10 deletions
base/start-notebook.sh
with
0 additions
and
31 deletions
base/Dockerfile
+
0
−
5
View file @
52ee93b5
...
...
@@ -32,7 +32,6 @@ RUN apt-get update --yes && \
gcc
\
gettext
\
git
\
libnss-wrapper
\
llvm
\
lsof
\
mpich
\
...
...
@@ -119,10 +118,6 @@ RUN fix-permissions /opt/app-root/ && \
fix-permissions /usr/local/lib/R/site-library
&&
\
fix-permissions /usr/etc/jupyter/
# to support OpenShift's arbitrary UIDs
# more info: https://docs.openshift.com/enterprise/3.1/creating_images/guidelines.html
COPY
base/passwd.template /tmp/passwd.template
COPY
base/group.template /tmp/group.template
COPY
base/start-notebook.sh /opt/app-root/etc/
COPY
base/.spynnaker.cfg /opt/app-root/src/
RUN
chmod
+x /opt/app-root/etc/start-notebook.sh
...
...
This diff is collapsed.
Click to expand it.
base/group.template
deleted
100644 → 0
+
0
−
2
View file @
f7dba85c
nb_group:x:${GROUP_ID}:
nb_group_user:x:${USER_ID}:
\ No newline at end of file
This diff is collapsed.
Click to expand it.
base/passwd.template
deleted
100644 → 0
+
0
−
14
View file @
f7dba85c
root:x:0:0:root:/root:/bin/bash
bin:x:1:1:bin:/bin:/sbin/nologin
daemon:x:2:2:daemon:/sbin:/sbin/nologin
adm:x:3:4:adm:/var/adm:/sbin/nologin
lp:x:4:7:lp:/var/spool/lpd:/sbin/nologin
sync:x:5:0:sync:/sbin:/bin/sync
shutdown:x:6:0:shutdown:/sbin:/sbin/shutdown
halt:x:7:0:halt:/sbin:/sbin/halt
mail:x:8:12:mail:/var/spool/mail:/sbin/nologin
operator:x:11:0:operator:/root:/sbin/nologin
games:x:12:100:games:/usr/games:/sbin/nologin
ftp:x:14:50:FTP User:/var/ftp:/sbin/nologin
nobody:x:99:99:Nobody:/:/sbin/nologin
${USER}:x:${USER_ID}:${GROUP_ID}:${USER_DESCRIPTION}:${HOME}:/bin/bash
\ No newline at end of file
This diff is collapsed.
Click to expand it.
base/start-notebook.sh
+
0
−
10
View file @
52ee93b5
#!/bin/bash
set
-e
# to support OpenShift's arbitrary UIDs
# more info: https://docs.openshift.com/enterprise/3.1/creating_images/guidelines.html
export
USER_ID
=
$(
id
-u
)
export
GROUP_ID
=
$(
id
-g
)
export
USER_DESCRIPTION
=
"Notebook User"
envsubst < /tmp/passwd.template
>
/tmp/passwd
envsubst < /tmp/group.template
>
/tmp/group
export
LD_PRELOAD
=
libnss_wrapper.so
export
NSS_WRAPPER_PASSWD
=
/tmp/passwd
export
NSS_WRAPPER_GROUP
=
/tmp/group
# Disable core dumps
ulimit
-c
0
exec
jupyter labhub
--NotebookApp
.default_url
=
/lab
--config
=
/opt/app-root/etc/jupyter_notebook_config.py
$@
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment