Skip to content

Commit

Permalink
Add a minimal install option (no Apache)
Browse files Browse the repository at this point in the history
Now that we have a CLI, the web UI is optional. Well, optional in the
sense that you don't strictly need it, but truth be told it is still a
lot nicer to use.  But, maybe you don't want to run a web server on your
machine, or maybe you want to do the analysis on one system and display
it using another.  This should all be possible now.

Signed-off-by: Brian Warner <brian@bdwarner.com>
  • Loading branch information
brianwarner committed Jun 25, 2018
1 parent 93eb8d2 commit ebaca7e
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
13 changes: 13 additions & 0 deletions utilities/install_deps.sh → utilities/install_deps-full.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,21 @@
#
# SPDX-License-Identifier: Apache-2.0

echo "
This script will install the necessary dependencies to run Facade in either
headless mode or using the web UI. It will install Apache and the required PHP
packages. You can use either the web UI or the CLI to configure Facade and
export analysis data.

Installing any missing dependencies...
"

sudo apt-get install apache2 mysql-client mysql-server php-cli php-mysql \
python3 python3-mysqldb libapache2-mod-php php-dom php-curl python3-bcrypt \
python3-xlsxwriter python3-texttable

echo "
If everything went well, your next step is to run setup:
$ ./setup.py
"

39 changes: 39 additions & 0 deletions utilities/install_deps-minimal.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
#!/bin/bash

# Copyright 2016-2018 Brian Warner
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0

echo "
This script will install the necessary dependencies to run Facade in headless
mode. This means that it will not install Apache or the required PHP packages.
You must use the CLI to configure Facade and export analysis data, which is
available in cli/facade.py

You can always convert to a full installation by running the full script to fill
in any missing packages, should you change your mind later:
$ ./install_deps-deb-full.sh

Installing any missing dependencies...
"

sudo apt-get install mysql-client mysql-server \
python3 python3-mysqldb python3-bcrypt python3-xlsxwriter python3-texttable

echo "
If everything went well, your next step is to run setup:
$ ./setup.py
"

0 comments on commit ebaca7e

Please sign in to comment.