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