Created
February 12, 2019 21:42
-
-
Save nuxsmin/0b564e2bfd6b360538dfb2cf3240ffbb to your computer and use it in GitHub Desktop.
Build and package sysPass dependencies
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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