Respect docker build context
This commit is contained in:
parent
a768e87166
commit
742f5b4b21
1 changed files with 7 additions and 1 deletions
|
|
@ -4,6 +4,11 @@ PKG_NAME="Insthidge"
|
||||||
DST_DIR="slidge-insthidge"
|
DST_DIR="slidge-insthidge"
|
||||||
SRC_URL="https://codeberg.org/slidge/legacy-module-template.git"
|
SRC_URL="https://codeberg.org/slidge/legacy-module-template.git"
|
||||||
|
|
||||||
|
if ! which pipx; then
|
||||||
|
echo "pipx not found"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
mkdir -p $DST_DIR
|
mkdir -p $DST_DIR
|
||||||
|
|
||||||
# Run Copier
|
# Run Copier
|
||||||
|
|
@ -12,7 +17,8 @@ pipx run copier copy -w -l $SRC_URL $DST_DIR
|
||||||
|
|
||||||
# Replace generated environment with work tree
|
# Replace generated environment with work tree
|
||||||
rm -r $DST_DIR/$PKG_NAME
|
rm -r $DST_DIR/$PKG_NAME
|
||||||
ln -s $PWD/$PKG_NAME $DST_DIR/$PKG_NAME
|
cp -r $PWD/$PKG_NAME/. $DST_DIR/$PKG_NAME
|
||||||
|
sed -i "s# - ./$PKG_NAME:/build/$PKG_NAME# - $PWD/$PKG_NAME:/build/$PKG_NAME#g" $DST_DIR/docker-compose.yml
|
||||||
|
|
||||||
mkdir -p persistent
|
mkdir -p persistent
|
||||||
ln -s $PWD/persistent $DST_DIR/persistent
|
ln -s $PWD/persistent $DST_DIR/persistent
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue