Skip to content

Commit

Permalink
Merge pull request #63 from nmfs-opensci/eeholmes-dev-1
Browse files Browse the repository at this point in the history
Eeholmes dev 1
  • Loading branch information
eeholmes authored Oct 20, 2024
2 parents 78e8013 + 8b6e4f0 commit d14460e
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions Desktop/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
This is a folder Desktop apps files: .desktop, .xml, .png
10 changes: 7 additions & 3 deletions appendix
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ ENV R_VERSION="4.4.1"
ENV R_DOCKERFILE="verse_${R_VERSION}"
RUN PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin && \
chmod +x ${REPO_DIR}/rocker.sh && \
${REPO_DIR}/rocker.sh
# Missing some basic tex packages
RUN tlmgr install collection-latexrecommended && tlmgr clean --all
${REPO_DIR}/rocker.sh && \
tlmgr install collection-latexrecommended && \
tlmgr clean --all

# Install extra cmd line packages after R installation
# The package_list part is reading the file and doing clean-up to just have the list of packages
Expand All @@ -28,5 +28,9 @@ RUN yes | unminimize
ENV MANPATH="${NB_PYTHON_PREFIX}/share/man:${MANPATH}"
RUN mandb

# Copy Desktop files into ${REPO_DIR}/Desktop if they exist
ONBUILD RUN mkdir -p ${REPO_DIR}/Desktop && \
if [ -d Desktop ]; then cp Desktop/* ${REPO_DIR}/Desktop/; fi

# Revert to default user
USER ${NB_USER}
1 change: 0 additions & 1 deletion mime/README.md

This file was deleted.

6 changes: 3 additions & 3 deletions start
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ APPLICATIONS_DIR="${HOME}/.local/share/applications"
DESKTOP_DIR="${HOME}/Desktop"
mkdir -p "${APPLICATIONS_DIR}"
mkdir -p "${DESKTOP_DIR}"
for desktop_file_path in ${REPO_DIR}/*.desktop; do
for desktop_file_path in ${REPO_DIR}/Desktop/*.desktop; do
cp "${desktop_file_path}" "${APPLICATIONS_DIR}/."

# Symlink application to desktop
Expand All @@ -30,11 +30,11 @@ for desktop_file_path in ${REPO_DIR}/*.desktop; do
done
update-desktop-database "${APPLICATIONS_DIR}"

# Add MIME Type data from XML files in `mime/` dir to the MIME database.
# Add MIME Type data from XML files to the MIME database.
MIME_DIR="${HOME}/.local/share/mime"
MIME_PACKAGES_DIR="${MIME_DIR}/packages"
mkdir -p "${MIME_PACKAGES_DIR}"
for mime_file_path in ${REPO_DIR}/mime/*.xml; do
for mime_file_path in ${REPO_DIR}/Desktop/*.xml; do
cp "${mime_file_path}" "${MIME_PACKAGES_DIR}/."
done
update-mime-database "${MIME_DIR}"
Expand Down

0 comments on commit d14460e

Please sign in to comment.