Skip to content

Commit

Permalink
Allow paswordless sudo access for Docker image
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexeyPechnikov committed Mar 11, 2023
1 parent 94d8195 commit 71cfe8b
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions docker/pygmtsar.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 71cfe8b

Please sign in to comment.