Skip to content

Commit

Permalink
fix: set the USER for the blsq image; remove g+w on the wrap_up.py & …
Browse files Browse the repository at this point in the history
…merge install.packages together
  • Loading branch information
qgerome committed Nov 20, 2024
1 parent 80d4e6c commit 456febf
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 3 additions & 1 deletion images/base/files/scripts/fuse_mount.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,10 @@ def do_GET(self):
args = [
"gcsfuse",
"-o",
"allow_other",
"rw",
"--implicit-dirs", # Also create implicit directories structure (i.e. key /a/b/c/d will create /a, /a/b, /a/b/c)
"--uid=1000", # jovyan user id
"--gid=100", # users group id
]

# Use the custom token server to get the token
Expand Down
1 change: 0 additions & 1 deletion images/base/files/scripts/wrap_up.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,4 @@
# subprocess.run(["chmod", "a-w", "/home/jovyan"])

# Make /home/jovyan/worskpace + /home/jovyan/tmp writable
subprocess.run(["chmod", "g+w", "/home/jovyan/workspace"])
subprocess.run(["chmod", "g+w", "/home/jovyan/tmp"])
6 changes: 3 additions & 3 deletions images/blsq/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ USER root
RUN apt-get update && apt-get install -y libgdal-dev libudunits2-dev

# R packages (only available on cran)
RUN R -e "install.packages('GISTools', dependencies=TRUE, quiet=TRUE, repos='https://cran.r-project.org/')" && \
R -e "install.packages('OpenStreetMap', dependencies=TRUE, quiet=TRUE, repos='https://cran.r-project.org/')"
RUN R -e "options(Ncpus = parallel::detectCores()); install.packages(c('GISTools', 'OpenStreetMap'), dependencies=TRUE, quiet=TRUE, repos='https://cran.r-project.org/', Ncpus=parallel::detectCores())"

# R packages on R channel
RUN conda install --yes -c R \
Expand Down Expand Up @@ -80,4 +79,5 @@ RUN conda install --yes -c conda-forge -c R\
conda clean --all -y

# Set PYTHONUNBUFFERED to ensure that Python output is sent straight to terminal
ENV PYTHONUNBUFFERED=1
ENV PYTHONUNBUFFERED=1
USER ${NB_UID}

0 comments on commit 456febf

Please sign in to comment.