Skip to content

Commit

Permalink
Remove environment variable XDG_CACHE_HOME (#2038)
Browse files Browse the repository at this point in the history
- Fixes #2037
  • Loading branch information
benz0li authored Nov 22, 2023
1 parent 406e397 commit baa110d
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
3 changes: 0 additions & 3 deletions images/docker-stacks-foundation/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,9 +121,6 @@ if [ "$(id -u)" == 0 ]; then
done
fi

# Update potentially outdated environment variables since the image build
export XDG_CACHE_HOME="/home/${NB_USER}/.cache"

# Prepend ${CONDA_DIR}/bin to sudo secure_path
sed -r "s#Defaults\s+secure_path\s*=\s*\"?([^\"]+)\"?#Defaults secure_path=\"${CONDA_DIR}/bin:\1\"#" /etc/sudoers | grep secure_path > /etc/sudoers.d/path

Expand Down
3 changes: 0 additions & 3 deletions images/scipy-notebook/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,6 @@ RUN git clone https://github.com/PAIR-code/facets && \
fix-permissions "${CONDA_DIR}" && \
fix-permissions "/home/${NB_USER}"

# Import matplotlib the first time to build the font cache.
ENV XDG_CACHE_HOME="/home/${NB_USER}/.cache/"

RUN MPLBACKEND=Agg python -c "import matplotlib.pyplot" && \
fix-permissions "/home/${NB_USER}"

Expand Down

0 comments on commit baa110d

Please sign in to comment.