Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
886b97e5
Commit
886b97e5
authored
3 years ago
by
Jan David Mol
Browse files
Options
Downloads
Patches
Plain Diff
Fix directory ownership/access for user using Jupyter
parent
0449c051
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
docker-compose/jupyter/Dockerfile
+7
-3
7 additions, 3 deletions
docker-compose/jupyter/Dockerfile
with
7 additions
and
3 deletions
docker-compose/jupyter/Dockerfile
+
7
−
3
View file @
886b97e5
ARG
VERSION=latest
ARG
VERSION=latest
FROM
nexus.engageska-portugal.pt/ska-docker/tango-itango:${VERSION}
FROM
nexus.engageska-portugal.pt/ska-docker/tango-itango:${VERSION}
# UID if the user that this container will run under. This is needed to give directories
# that are needed for temporary storage the proper owner and access rights.
ARG
CONTAINER_EXECUTION_UID=1000
RUN
sudo
pip3
install
jupyter
RUN
sudo
pip3
install
jupyter
RUN
sudo
pip3
install
ipykernel
RUN
sudo
pip3
install
ipykernel
RUN
sudo
pip3
install
jupyter_bokeh
RUN
sudo
pip3
install
jupyter_bokeh
...
@@ -13,7 +17,6 @@ RUN sudo jupyter nbextension enable jupyter_bokeh --py --sys-prefix
...
@@ -13,7 +17,6 @@ RUN sudo jupyter nbextension enable jupyter_bokeh --py --sys-prefix
# Install profiles for ipython & jupyter
# Install profiles for ipython & jupyter
COPY
ipython-profiles /opt/ipython-profiles/
COPY
ipython-profiles /opt/ipython-profiles/
RUN
sudo chmod
a+rw
-R
/opt/ipython-profiles
COPY
jupyter-kernels /usr/local/share/jupyter/kernels/
COPY
jupyter-kernels /usr/local/share/jupyter/kernels/
# Install patched jupyter executable
# Install patched jupyter executable
...
@@ -28,5 +31,6 @@ RUN sudo chmod +x /usr/bin/tini
...
@@ -28,5 +31,6 @@ RUN sudo chmod +x /usr/bin/tini
# Make sure Jupyter can write to the home directory
# Make sure Jupyter can write to the home directory
ENV
HOME=/home/user
ENV
HOME=/home/user
RUN
sudo mkdir
-p
$HOME
RUN
sudo mkdir
-p
${
HOME
}
RUN
sudo chmod
a+rwx
$HOME
RUN
sudo chown
${
CONTAINER_EXECUTION_UID
}
-R
${
HOME
}
RUN
sudo chown
${
CONTAINER_EXECUTION_UID
}
-R
/opt/ipython-profiles
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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