2022-08-19 14:54:42 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
2022-08-24 16:49:29 +02:00
|
|
|
# Update latest Python dependencies in case they have changed
|
2022-11-21 18:20:53 +01:00
|
|
|
# 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.
|
2022-08-24 16:49:29 +02:00
|
|
|
cd /project-readonly
|
2022-11-21 18:20:53 +01:00
|
|
|
pip install --upgrade --upgrade-strategy eager -e ".[dev]"
|
2022-08-19 14:54:42 +02:00
|
|
|
|
2022-08-23 23:29:24 +02:00
|
|
|
# This helps a potential permission issue, but might be removed
|
|
|
|
|
# pending some more investigation of docker host file system
|
|
|
|
|
# permissions in the bind mount
|
2022-08-24 16:49:29 +02:00
|
|
|
# npm cache clean --force
|
|
|
|
|
# npm install
|
|
|
|
|
|
|
|
|
|
cd /project
|
2022-10-14 21:03:53 +02:00
|
|
|
|
|
|
|
|
# TODO: This is a bad approach, it copies from the image which
|
|
|
|
|
# may be outdated to the current git tree
|
2022-08-24 16:49:29 +02:00
|
|
|
cp -r /project-readonly/sphinx_rtd_theme .
|
2022-08-23 23:29:24 +02:00
|
|
|
|
|
|
|
|
echo "Going to invoke: npm run $@"
|
2022-08-19 14:54:42 +02:00
|
|
|
npm run $@
|