Skip to content

Latest commit

 

History

History
222 lines (148 loc) · 6.02 KB

install.md

File metadata and controls

222 lines (148 loc) · 6.02 KB

Testing GovReady-Q Install Script

System Requirements

Before You Install - Windows

(This section has not been completed yet.)

Before You Install - Ubuntu

Some additional dependencies are required for Linux Ubuntu.

Do these shell commands to update package list.

# Update package list
apt-get update
apt-get upgrade

Do these shell commands to install the OS dependencies for GovReady-Q.

# Install dependencies
DEBIAN_FRONTEND=noninteractive \
apt-get install -y \
unzip git curl jq \
python3 python3-pip \
python3-yaml \
graphviz pandoc \
language-pack-en-base language-pack-en

Before You Install - CentOS 8, RHEL 8, Fedora 8

Some additional dependencies are required for Linux CentOS, RHEL, Fedora.

Do these shell commands to update package list.

# Update package list
dnf update

Do these shell commands to install the OS dependencies for GovReady-Q.

# Install dependencies
dnf install \
python3 python3-devel gcc-c++.x86_64 \
unzip git jq \
graphviz

# for pandoc, enable PowerTools repository
dnf install dnf-plugins-core
dnf config-manager --set-enabled PowerTools
dnf install pandoc

Before You Install - macOS

Some additional dependencies are required for macOS.

Setup instructions (may need to be cleaned up and/or fleshed out.)

Do this shell command.

xcode-select --install

(See How to fix the xcrun invalid active developer path error in macOS for more complete instructions.)

If you get an error that command line tools are already installed, just proceed.

Next, install Homebrew, if it is not already installed. This is one way to get started.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

(For more details, see Installation — Homebrew Documentation.)

After Homebrew is installed, do this shell command.

brew install libmagic

If you get a warning that libmagic is already installed, just proceed.

After Homebrew is installed, do this shell command.

brew install postgresql

If you get a warning that postgresql is already installed, just proceed.

[Note, this is needed to resolve this dependency: "Error: pg_config executable not found. pg_config is required to build psycopg2 from source." We should just move this dependency out to a pg_requirements file.]

Install Instructions

Start your command line shell.

Go to a directory that you can download GovReady-Q into. If you wish, you can create a new directory, and change directory into it.

1. Clone GovReady-Q

Do these shell commands.

git clone https://github.com/GovReady/govready-q.git
cd govready-q

2. Create and Activate Python Virtual Environmemt

On Windows, do these shell commands.

py -m venv venv
venv\scripts\activate.bat

On Linux and Mac, do these shell commands.

python3 -m venv venv
source venv/bin/activate

You should not see any output. Your prompt may or may not change to include "venv".

3. Run Installer

Do this shell command for to see all install options.

python3 install.py -h

The script will print command options.

>>>>>>>>>> Welcome to the GovReady-Q Installer <<<<<<<<<

usage: install.py [-h] [--non-interactive] [--timeout TIMEOUT] [--user]
                  [--verbose]

Quickly set up a new GovReady-Q instance from a freshly-cloned repository.

optional arguments:
  -h, --help            show this help message and exit
  --non-interactive, -n
                        run without terminal interaction
  --timeout TIMEOUT, -t TIMEOUT
                        seconds to allow external programs to run
                        (default=120)
  --user, -u            do pip install with --user

Do this shell command for default install.

python3 install.py

The script will print progress messages. Some of the steps may take a minute or several minutes.

If you are asked a yes/no question, answer as appropriate.

You can hit Control-C at any point to stop the install.

The output will begin something like this:

>>>>>>>>>> Welcome to the GovReady-Q Installer <<<<<<<<<

Testing environment...

Platform is Darwin version 20.3.0 running on x86_64.

====

Python version is 3.8.2.
+ Python version is >= 3.8.

If the install and configuration completes properly, you should see something like this:

***********************************
* GovReady-Q Server configured... *
***********************************

To start GovReady-Q, run:
    ./manage.py runserver

Log in with the administrator credentials below.

WRITE THIS DOWN:

Created administrator account (username: admin) with password: xxxxxxxxxxxx

When GovReady-Q is running, visit http://localhost:8000/ with your web browser.

Congratulations, you have installed GovReady-Q!