diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:50 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-15 17:56:50 +0000 |
commit | 6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c (patch) | |
tree | 04e41667e9eae835f5d88bda4f6d3f5c2664de01 /docker-entrypoint.sh | |
parent | Initial commit. (diff) | |
download | sphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.tar.xz sphinx-rtd-theme-6637322c8ab1c5ff80a2b6ca59c9ba1d40aeba2c.zip |
Adding upstream version 2.0.0+dfsg.upstream/2.0.0+dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'docker-entrypoint.sh')
-rw-r--r-- | docker-entrypoint.sh | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/docker-entrypoint.sh b/docker-entrypoint.sh new file mode 100644 index 0000000..86762ad --- /dev/null +++ b/docker-entrypoint.sh @@ -0,0 +1,25 @@ +#!/bin/sh + +# Update latest Python dependencies in case they have changed +# Notice that we are using the 'eager' strategy +# This should only be relevant to development environments where +# the theme is being used. For purposes of "production" or +# building the sdist/wheel, installing dependencies should not +# affect the outcome. +cd /project-readonly +pip install --upgrade --upgrade-strategy eager -e ".[dev]" + +# This helps a potential permission issue, but might be removed +# pending some more investigation of docker host file system +# permissions in the bind mount +# npm cache clean --force +# npm install + +cd /project + +# TODO: This is a bad approach, it copies from the image which +# may be outdated to the current git tree +cp -r /project-readonly/sphinx_rtd_theme . + +echo "Going to invoke: npm run $@" +npm run $@ |