Compare commits

...

3 commits

Author SHA1 Message Date
39d701f946 feat: add overlay testing script
All checks were successful
continuous-integration/drone/push Build is passing
2024-09-23 00:09:21 +02:00
55d808d43b fix: ignore mkdocs from docker build 2024-09-23 00:09:04 +02:00
f2eeb554c8 fix: ignore deploy 2024-09-23 00:08:33 +02:00
3 changed files with 42 additions and 5 deletions

1
.gitignore vendored
View file

@ -16,3 +16,4 @@ tmp*
\.vagrant
vendor/bundle
*.zip
mkdocs.yml

36
overlay.sh Normal file
View file

@ -0,0 +1,36 @@
#!/bin/sh
UID=$(id -u)
GID=$(id -g)
CURDIR=$(pwd)
set -u
set -e
echo "Umounting merge directory if it is mounted"
if mount | grep -q "${CURDIR}.merge"; then
sudo umount -lf "${CURDIR}.merge"
fi
# echo "Removing old upper directory"
# sudo rm -rf "${CURDIR}.upper"
echo "Creating directories"
sudo mkdir -p "${CURDIR}.upper"
sudo mkdir -p "${CURDIR}.workdir"
sudo mkdir -p "${CURDIR}.merge"
echo "Setting permissions"
sudo chown "$UID:$GID" "${CURDIR}.upper"
sudo chown "$UID:$GID" "${CURDIR}.workdir"
sudo chown "$UID:$GID" "${CURDIR}.merge"
echo "Mounting filesystem"
sudo mount -t overlay \
-o "lowerdir=${CURDIR},upperdir=${CURDIR}.upper,workdir=${CURDIR}.workdir" \
overlay \
"${CURDIR}.merge"
echo "Running shell"
cd "${CURDIR}.merge" || exit 1
exec $SHELL

View file

@ -17,12 +17,12 @@ clean-docs: ## remove generated static docs site
.PHONY: clean-docs
clean: clean-docs
deploy-docs: ## deploy static docs site to github
git push $(DEPLOY_REPO)
pipenv run mkdocs gh-deploy $(DEPLOY_OPTS)
# deploy-docs: ## deploy static docs site to github
# git push $(DEPLOY_REPO)
# pipenv run mkdocs gh-deploy $(DEPLOY_OPTS)
.PHONY: deploy-docs
deploy: deploy-docs
# .PHONY: deploy-docs
# deploy: deploy-docs
build-docs-pdf: ## build pdf docs only
mkdir -p $(BUILD_DOCS_DIR)