Move packaging scripts for docker and appimage into subdirectory.

- De-clutter the project root directory.
This commit is contained in:
Andrew Hamilton 2021-11-03 21:23:15 +10:00
parent 0f59e43395
commit 58b78e9ce4
10 changed files with 6 additions and 6 deletions

View file

@ -1,23 +0,0 @@
#!/bin/bash
set -e
DOCKER_IMAGE=eris
ARGS=( $(getopt -u -o hiw:e:t:c: --long help,info,workers:,editor:,theme:,compression: -- "$@") )
if [ "${ARGS[-1]}" == "--" ]; then
OPTION_ARGS="${ARGS[@]:0:${#ARGS[@]}-1}" # ARGS[:-1]
DOCKER_ARGS="$DOCKER_IMAGE $OPTION_ARGS"
elif [ "${ARGS[-2]}" == "--" ]; then
OPTION_ARGS="${ARGS[@]:0:${#ARGS[@]}-2}" # ARGS[:-2]
REAL_PATH=$(realpath "${ARGS[-1]}")
PROJECT=$(basename "$REAL_PATH")
DOCKER_ARGS="-v $REAL_PATH:/tmp/$PROJECT $DOCKER_IMAGE $OPTION_ARGS /tmp/$PROJECT"
else
echo "Usage:
eris [options] <directory>
eris -h | --help"
exit 1
fi
exec docker run -v /etc/passwd:/etc/passwd -u ${UID}:$(id -g) -it --rm $DOCKER_ARGS