Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Wrapping up the Docker work, using docker cp again in order to copy a…
…ssets out of containers
- Loading branch information
1 parent
4393bd2
commit ba059c7
Showing
6 changed files
with
60 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
SHELL := /bin/bash | ||
CWD := $(shell cd -P -- '$(shell dirname -- "$0")' && pwd -P) | ||
|
||
docker-images: | ||
docker-compose build | ||
|
||
docker-npm-build: | ||
rm -f .container_id | ||
docker-compose run -d sphinx_rtd_theme build > .container_id | ||
docker container wait "$(shell cat .container_id)" | ||
docker cp "$(shell cat .container_id):/project/sphinx_rtd_theme" . | ||
docker cp "$(shell cat .container_id):/project/package-lock.json" . | ||
@echo "Done building" | ||
|
||
docker-npm-dev: | ||
docker-compose run sphinx_rtd_theme dev | ||
|
||
docker-build-all: docker-images docker-npm-build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,17 @@ | ||
#!/bin/sh | ||
|
||
# Install the readonly project in editable mode and make sure | ||
# all dependencies are upgrade. This is mounted in from the | ||
# outside, but it is on purpose that it is readonly! | ||
cp -r /project/node_modules /project-working-copy/ | ||
cd /project-working-copy | ||
# Update latest Python dependencies in case they have changed | ||
cd /project-readonly | ||
pip install --upgrade -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 | ||
# npm cache clean --force | ||
# npm install | ||
|
||
cd /project | ||
cp -r /project-readonly/sphinx_rtd_theme . | ||
|
||
echo "Going to invoke: npm run $@" | ||
npm run $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters