From 71cfe8bae959e207b4d2d89b7825be8511e2af8f Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Sat, 11 Mar 2023 22:45:21 +0700 Subject: [PATCH] Allow paswordless sudo access for Docker image --- docker/pygmtsar.Dockerfile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docker/pygmtsar.Dockerfile b/docker/pygmtsar.Dockerfile index b45b31d6..e3a797ae 100644 --- a/docker/pygmtsar.Dockerfile +++ b/docker/pygmtsar.Dockerfile @@ -33,11 +33,15 @@ RUN pip3 install pygmtsar \ # workaround for libgeos-dev issue RUN ln -s /usr/lib/aarch64-linux-gnu/libgeos_c.so /opt/conda/lib/libgeos_c.so || true +# grant passwordless sudo rights +RUN echo "${NB_USER} ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers + # switch user USER ${NB_UID} WORKDIR "${HOME}" -# download example notebooks and CI test scripts and cleanup work dir +# download example notebooks and CI test scripts and cleanup RUN svn export https://github.com/mobigroup/gmtsar/trunk/notebooks \ +&& svn export https://github.com/mobigroup/gmtsar/trunk/pygmtsar/README.md \ && svn export https://github.com/mobigroup/gmtsar/trunk/tests \ -&& rm -rf notebooks/README.md work +&& rm -rf notebooks/README.md work notebooks/PyGMTSAR*ipynb