-
Notifications
You must be signed in to change notification settings - Fork 19
Intel Mac Caseflow Setup Instructions
Pre-requisites for setup: Some steps require completing VA On-boarding
-
Create GitHub user account VA github access process
-
Create DockerHub user account or install colima
-
Create oracle.com user account to download instant client Create Account (Step can be skipped if you have the zip files from file transfer)
-
Install github on the Mac here
-
Install git-lfs for pulling large files down from github Install instructions
Setup steps:
-
Open the terminal - The terminal will open to your user folder (I.E youruser@host ~ %)
-
Install Homebrew
- a. Using BAH Self Service if BAH employee Run
brew install git-lfs .
This is required to clone caseflow-facols repo
- a. Using BAH Self Service if BAH employee Run
-
Create an appeals folder by typing:
mkdir ~/appeals
-
Change directory to appeals by typing:
cd appeals
-
Navigate to instant client
-
Download the following zip files (Step can be skipped if you received the file transfer files)
- instantclient-basic-linux.x64-12.2.0.1.0.zip
- instantclient-sqlplus-linux.x64-12.2.0.1.0.zip
- instantclient-sdk-linux.x64-12.2.0.1.0.zip
-
Clone the following caseflow repositories required into appeals directory
-
Upon completion, navigate to caseflow-facols (
cd ~/appeals/caseflow-facols
)- Run:
git lfs install
(needed to initialize large file storage in repo) - Run:
git lfs pull
(this will pull the large zipfile) - Copy the
~/appeals/caseflow-facols/build_facols
directory into~/appeals/caseflow/local/vacols/
directory.
- Run:
-
Navigate to the caseflow directory in your terminal (type:
cd ~/appeals/caseflow
) and checkout the grant/setup-no-aws branchgit checkout grant/setup-no-aws
-
Navigate to caseflow/docker-bin directory (type:
cd docker-bin
) -
Create oracle_libs subdirectory (type:
mkdir oracle_libs
) -
Copy the 3 instant-client zip files from step 6 into the oracle_libs directory
-
Navigate to the caseflow root directory (type:
cd ~/appeals/caseflow
) -
Run
scripts/dev_env_setup_step1.sh
script from bash terminal [How to run script in Mac Terminal] (Will be prompted for a password will be the SUDO password which is the password used to log into mac after restart)- If/When mac says Chromedriver cannot be opened do this:
- Click cancel on the warning modal
- Push Command + Space
- Type System Preferences
- Click Security and Privacy
- Click General tab
- Click the lock icon and put in your BAH pin Click allow anyway on chromedriver warning Click the lock icon to re lock
- If/When mac says Chromedriver cannot be opened do this:
-
Setup Docker to use 4 CPUs and 8G memory and sign-in to your personal DockerHub account
- To get to these settings:
- Command + Space
- Type docker
- Click docker desktop
- Click the gear icon
- Click Resources
- To get to these settings:
-
The script updated your bash profile and you need to resource it into the terminal by typing:
source ~/.bash_profile
- If using zsh, will need to update and
source ~/.zshrc
instead
- If using zsh, will need to update and
-
brew install shared-mime-info
-
brew install [email protected]
-
Run
scripts/dev_env_setup_step2.sh
script (may take a while to run) -
Run
gem install bundler -v $(grep -A 1 "BUNDLED WITH" Gemfile.lock | tail -n 1)
-
Navigate to
~/appeals/caseflow/local/vacols
in terminal (type:cd ~/appeals/caseflow/local/vacols
) -
To install the latest and enterprise Oracle Database version follow (https://seanstacey.org/deploying-an-oracle-database-19c-as-a-docker-container/2020/09/) guide.
- Go to http://container-registry.oracle.com/ (Here log in and opt for Database)
- On command line
docker login container-registry.oracle.com
- On command line
docker pull container-registry.oracle.com/database/enterprise:latest
-
Run
./build_push.sh local
-
Navigate to caseflow root directory
cd ~/appeals/caseflow
-
Run
ln -s Makefile.example Makefile
-
Run
make up
-
Run
make reset
- If issues occur:
- Run
bundle exec rake db:create:primary
* If you get connection issues stating no file to be found, run the following:-
rm /opt/homebrew/var/postgres/postmaster.pid
or possiblyrm /usr/local/var/postgres/postmaster.pid
brew services restart postgresql
-
- Run
bundle exec rake local:vacols:seed
- Run
bundle exec rake db:schema:load:primary db:seed
- Run
-
Open a new tab in terminal
-
In new tab run make:
run-backend
-
In the old tab run:
make run-frontend
-
Navigate to localhost:3000 in browser to see the application
- Home
- Acronyms and Glossary
- Caseflow products
- Caseflow Intake
- Caseflow Queue
- Appeals Consumer
- Caseflow Reader
- Caseflow eFolder
- Caseflow Hearings
- Caseflow Certification
- Caseflow APIs
- Appeal Status API
- Caseflow Dispatch
-
CSUM Roles
- System Admin
- VHA Team Management
- Active Record Queries Resource
- External Integrations
- Caseflow Demo
- Caseflow ProdTest
- Background
- Stuck Jobs
- VA Notify
-
Caseflow-Team
- Tier 4
- Bat Team
- Technical Documentation
- Backend Code Patterns
- Backend Working Group
- FACOLS, VACOLS DB Schema
- Asyncable Models
- External Data: where and why
- Data Fetching Scripts
- Caseflow Data Model and Dictionary
- User Access Permissions
- Controller Schemas
- Constants
- Frontend Best Practices
- Accessibility
- How-To
- Debugging Tips
- Adding a Feature Flag with FeatureToggle
- Editing AMA issues
- Editing a decision review
- Fixing task trees
- Investigating and diagnosing issues
- Data and Metric Request Workflow
- Exporting and Importing Appeals
- Explain page for Appeals
- Record associations and Foreign Keys
- Upgrading Ruby
- Stuck Appeals
- Testing Action Mailer Messages Locally
- Re-running Seed Files
- Rake Generator for Legacy Appeals
- Manually running Scheduled Jobs
- System Admin UI
- Caseflow Makefile
- Upgrading Postgresql from v11.7 to v14.8 Locally
- VACOLS VM Trigger Fix M1
- Using SlackService to Send a Job Alert
- Technical Talks