From ed0eb78cb244eacbd06dc5578230c7d1980240fa Mon Sep 17 00:00:00 2001 From: tanfarming Date: Mon, 6 Mar 2023 12:55:44 -0500 Subject: [PATCH] adding retpack.sh --- retpack.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 retpack.sh diff --git a/retpack.sh b/retpack.sh new file mode 100644 index 0000000000..84915784c0 --- /dev/null +++ b/retpack.sh @@ -0,0 +1,16 @@ + +if ! command -v docker &> /dev/null; then + echo "ERR: this script requires docker (https://docs.docker.com/engine/install/)" + exit 1 +fi + +echo -e "\n ### building ### " +docker build -f RetPageOriginDockerfile -t hubs:retpack . + +echo -e "\n ### packing ### " +docker run -v $PWD/.retpack/:/tmp/ \ + --entrypoint sh hubs:retpack \ + -c 'cd /www/hubs/ && tar -czvf /tmp/retpack.tar .' + +echo -e "\n ### done ### " +ls -lha ./.retpack/retpack.tar