Skip to content

Commit

Permalink
Update deploy fabfile for RHEL8 (#91)
Browse files Browse the repository at this point in the history
This command updates the repo fabfile.py for deploys to RHEL8, from the
previous RHEL7 configuration. The only change has to do with the
location of the crawl database file itself, moving it from /var/tmp
to the deploy location in /opt/cfpb/website-indexer. This change is
necesssary due to the different volume configuration in our RHEL8 AMI.
  • Loading branch information
chosak authored Mar 15, 2024
1 parent bf0bd8c commit 8bd065d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ _For information on how this project is deployed at the CFPB,
employees and contractors should refer to the internal "CFGOV/crawler-deploy" repository._

This repository includes a [Fabric](https://www.fabfile.org/) script
that can be used to configure a RHEL7 Linux server to run this project
that can be used to configure a RHEL8 Linux server to run this project
and to deploy both the crawler and the viewer application to that server.

To install Fabric in your virtual environment:
Expand All @@ -250,7 +250,7 @@ pip install -r requirements/deploy.txt

### Configuring a server

To configure a remote RHEL7 server with the appropriate system requirements,
To configure a remote RHEL8 server with the appropriate system requirements,
you'll need to use some variation of this command:

```
Expand Down
2 changes: 1 addition & 1 deletion fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
SOURCE_ROOT = f"{SOURCE_PARENT}/{SOURCE_DIRNAME}"

CRAWL_DIR = "/var/tmp"
CRAWL_DATABASE = f"{CRAWL_DIR}/crawl.sqlite3"
CRAWL_DATABASE = f"{SOURCE_ROOT}/crawl.sqlite3"
CRAWL_DATABASE_TMP = f"{CRAWL_DIR}/crawl-new.sqlite3"

LOGROTATE_DIR = "/etc/logrotate.d"
Expand Down

0 comments on commit 8bd065d

Please sign in to comment.