This repository has been archived by the owner on May 4, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Fixes #101
- Loading branch information
1 parent
9325ebf
commit f9a98f6
Showing
11 changed files
with
94 additions
and
28 deletions.
There are no files selected for viewing
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
#!/usr/bin/env bash | ||
if [[ $(which node) && $(node --version) ]]; then | ||
node _scripts/check_node_version.js | ||
else | ||
echo "install node to continue installation" | ||
echo "https://nodejs.org" | ||
exit 1 | ||
fi | ||
|
||
if [[ $(which docker) && $(docker --version) ]]; then | ||
docker=y | ||
else | ||
docker=n | ||
fi | ||
|
||
os="$(uname -a | cut -f 1 -d ' ')" | ||
if [ "$os" = "Darwin" ]; then | ||
if [ "$docker" = "n" ]; then | ||
echo "install docker to continue installation" | ||
echo "https://docs.docker.com/docker-for-mac/install/" | ||
exit 1 | ||
fi | ||
|
||
if [[ $(which brew) && $(brew --version) ]]; then | ||
if [[ $(brew ls --versions gmp) ]]; then | ||
echo "gmp is installed" | ||
else | ||
brew install gmp | ||
fi | ||
if [[ $(brew ls --versions graphicsmagick) ]]; then | ||
echo "graphicsmagick is installed" | ||
else | ||
brew install graphicsmagick | ||
fi | ||
else | ||
echo "install homebrew to continue installation" | ||
echo "https://brew.sh/" | ||
exit 1 | ||
fi | ||
elif [ "$os" = "Linux" ]; then | ||
if [ "$docker" = "n" ]; then | ||
echo "install docker to continue installation using the steps below:" | ||
echo "sudo apt-get install docker-ce" | ||
echo "sudo groupadd docker" | ||
echo "sudo gpasswd -a $USER docker" | ||
echo "sudo service docker restart" | ||
fi | ||
fi |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
const check = require("check-node-version"); | ||
|
||
check( | ||
{ node: ">= 8", npm: ">= 6" }, | ||
(error, results) => { | ||
if (error) { | ||
console.error(error); | ||
return; | ||
} | ||
|
||
if (results.isSatisfied) { | ||
console.log("Node and nvm version ok"); | ||
return; | ||
} | ||
|
||
console.error("Some package version(s) failed!"); | ||
|
||
for (const packageName of Object.keys(results.versions)) { | ||
if (!results.versions[packageName].isSatisfied) { | ||
if(packageName === 'npm') | ||
console.error(`Npm version must be > 6 . Run the following command to upgrade npm "npm i -g npm@6"`); | ||
else if(packageName === 'node') | ||
console.error(`Node version must be > 8`); | ||
if(process.platform === 'darwin') | ||
console.log("Use this if you do not rely on other node.js programs on your system: Find the latest Node 8 LTS .pkg download at nodejs.org/en/download/ and install it.") | ||
else | ||
console.error(`Missing ${packageName}.`); | ||
|
||
process.exit(1); | ||
} | ||
} | ||
} | ||
); |
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
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
docker run --rm --name memcache memcached |
This file was deleted.
Oops, something went wrong.
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
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
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