Commit Graph

16 Commits

Author SHA1 Message Date
Michael Hohn
6229c08900 Remove postgres and references to it 2024-06-16 19:43:29 -07:00
Michael Hohn
252859ae18 Add Go access test for the DB store and update README 2024-06-16 19:09:31 -07:00
Michael Hohn
9270230f08 Set up separate minio container for query pack storage 2024-06-16 19:09:31 -07:00
Michael Hohn
bbb54caaf3 Set up the minio ql db
- Set up the minio ql db
- Use bind mounts in docker compose to get persistence
- Populate the ql db with the sample DBs
2024-06-16 19:09:31 -07:00
Michael Hohn
5730c330f4 Add codeql to server container for standalone testing
For full test, we cannot have

       ERROR codeql database analyze failed: error="exec:
       \"codeql\": executable file not found in $PATH" job="{MirvaRequestID:0
       QueryPackId:54674 QueryLanguage:cpp ORepo:{Owner:psycopg Repo:psycopg2}}"

For linux/arm64, use a Dockerfile that:
       - uses ubuntu 22.04 base image
       - adds the 1.17 version of the codeql bundle
       - extracts the bundle
       - adds a recent version of the JRE
       - extracts it
       - sets the CODEQL_JAVA_HOME environment variable to point to the JRE

The instructions are updated
2024-06-12 11:28:37 -07:00
Michael Hohn
4b721b5969 Fix docker-compose, add postgres init script 2024-06-11 18:05:44 -07:00
Michael Hohn
2d88b351ff Introduce structs/interfacess for new storage units
This commit simply splits the interfaces but introduces no new structs

     - Introduce the QueryPackStore, mrvacommander/pkg/qpstore
     - Introduce the CodeQL database store, pkg/qldbstore/interfaces.go
2024-06-11 14:16:41 -07:00
Michael Hohn
fc29fc5653 wip: update passing Queue to Commander
- Add minio to docker-compose
     - Fix use of server.NewCommanderSingle
2024-06-11 13:19:05 -07:00
Michael Hohn
7e0d6909da wip: Make cross-module visibility explicit via Visibles structs
All access is/will be through interfaces accessed through these structs.

This introduces several distinct storage units:
+ DB for server state
+ DB for codeql databases
+ query pack store

The steps for manually creating needed databases are in the README
2024-06-07 13:14:41 -07:00
Michael Hohn
593644ca2e wip: rename ID to JobId 2024-06-04 13:04:51 -07:00
Michael Hohn
0349961360 wip: start container version of server 2024-06-04 12:24:42 -07:00
Michael Hohn
71838d3320 Add a minimal gorm example that takes a go struct, creates a postgres table, and writes the struct to the table. 2024-06-03 14:03:26 -07:00
Michael Hohn
e850a36943 Minimal docker-compose.yml for server development 2024-06-03 11:50:03 -07:00
Michael Hohn
776b980d3b Add container for server work 2024-05-31 13:26:24 -07:00
Michael Hohn
b9081b1945 wip: convert run-analysis.sh to golang version 2024-05-31 08:24:09 -07:00
Michael Hohn
901999df5c Directory layout 2024-05-07 15:38:59 -07:00