Skip to content

Commit 173f16d

Browse files
committed
Add support for local .volumes file
1 parent 3a0743a commit 173f16d

3 files changed

Lines changed: 15 additions & 1 deletion

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build-local/
22
.idea/
33
bblock-config-local.yml
4+
.volumes

build.sh

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,14 @@
1+
#!/bin/bash
12
# Process building blocks
2-
docker run --pull=always --rm --workdir /workspace -v "$(pwd):/workspace" ghcr.io/opengeospatial/bblocks-postprocess --clean true --base-url http://localhost:9090/register/
3+
if [ -f '.volumes' ]; then
4+
VOLUMES=$(while read -r line; do
5+
if [[ "${line}" != /* ]]; then
6+
echo -n "-v ${PWD}/${line} "
7+
else
8+
echo -n "-v $line "
9+
fi
10+
done < .volumes)
11+
fi
12+
docker run --pull=always --rm --workdir /workspace -v "$(pwd):/workspace" ${VOLUMES} \
13+
ghcr.io/opengeospatial/bblocks-postprocess \
14+
--clean true --base-url http://localhost:9090/register/

view.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
#!/bin/bash
12
docker run --rm --pull=always -v "$(pwd):/register" -p 9090:9090 ghcr.io/ogcincubator/bblocks-viewer

0 commit comments

Comments
 (0)