Skip to content

Instantly share code, notes, and snippets.

@nuxsmin
Created February 12, 2019 21:42
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nuxsmin/0b564e2bfd6b360538dfb2cf3240ffbb to your computer and use it in GitHub Desktop.
Save nuxsmin/0b564e2bfd6b360538dfb2cf3240ffbb to your computer and use it in GitHub Desktop.
Build and package sysPass dependencies
#!/usr/bin/env bash
APP_DIR="$(pwd)/app"
if [ ! -d "${APP_DIR}" ]; then
mkdir "${APP_DIR}"
git clone https://github.com/nuxsmin/sysPass.git ${APP_DIR}
else
git pull --no-tags
fi
[[ -e "vendor.tar.gz" ]] && rm -rf vendor.tar.gz
pushd ${APP_DIR}
docker run --rm -v "${APP_DIR}":/app composer:1.7 composer install --ignore-platform-reqs --no-interaction --no-plugins --no-scripts --prefer-dist --no-dev --optimize-autoloader --classmap-authoritative --working-dir /app
tar czf ../vendor.tar.gz vendor/
popd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment