Commit Graph

193 Commits

Author SHA1 Message Date
Michael Hohn
765a76f75a Provide MRVA_SERVER_ROOT via environment variable 2024-06-11 20:13:13 -07:00
Michael Hohn
4b721b5969 Fix docker-compose, add postgres init script 2024-06-11 18:05:44 -07:00
Michael Hohn
9c0cdb1fe4 Simplify naming, don't restate package name 2024-06-11 16:55:10 -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
25cab583c1 wip: storage using postgres / gorm using partial json
Several approaches of normalizing json were tried and ultimately found
impractical at this point.

Using a hybrid of tables and json is the current approach; this may be
further normalized later.
2024-06-06 13:19:00 -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
c6ebfcc4c4 Add VS Code workspace 2024-05-31 11:55:57 -07:00
Michael Hohn
b9081b1945 wip: convert run-analysis.sh to golang version 2024-05-31 08:24:09 -07:00
Michael Hohn
75d0d312db Add Files created by agents at run-time to .gitignore 2024-05-28 19:56:09 -07:00
Michael Hohn
d88f31f357 Add two sample DBs 2024-05-26 12:41:40 -07:00
Michael Hohn
ba44db04da wip: server is now fully functional, some FIXMEs remain 2024-05-26 12:22:36 -07:00
Michael Hohn
f7155eba50 wip: add analysis runner / agent, separate Server/Queue/Agent, use New* initializers 2024-05-23 15:46:55 -07:00
Michael Hohn
2ab596bf1d wip: Move all references to github.com/hohn/ghes-mirva-server 2024-05-22 14:39:12 -07:00
Michael Hohn
4269bacf2a wip: update store. references to storage. in server.go 2024-05-21 11:45:47 -07:00
Michael Hohn
873339ff06 wip: port submit_response() 2024-05-21 10:51:01 -07:00
Michael Hohn
8cd4f4d809 wip: port queue.StartAnalyses 2024-05-20 20:07:39 -07:00
Michael Hohn
cf595f338a wip: port FileDownload 2024-05-20 14:28:33 -07:00
Michael Hohn
ccf064fe6c wip: replace some references to the old prototype 2024-05-20 14:01:19 -07:00
Michael Hohn
1f52a0ab37 wip: port functions reachable from DownloadResponse 2024-05-20 13:53:39 -07:00
Michael Hohn
5efb1b03b9 wip: Marked one level of to-be-ported functions 2024-05-17 17:28:35 -07:00
Michael Hohn
9750eeab20 wip: reorganized to go pkg structure 2024-05-15 15:57:27 -07:00
Michael Hohn
198453ee90 wip: port most of MirvaRequest from ghes-mirva-server 2024-05-14 18:57:30 -07:00
Michael Hohn
f1dd151891 wip: convert prototype 2024-05-13 19:38:00 -07:00
Michael Hohn
5b324e092a wip: parse & use config file, start Storage struct/interface 2024-05-13 12:56:42 -07:00
Michael Hohn
c2480dc2f1 wip: start lcmem.go 2024-05-13 11:26:35 -07:00
Michael Hohn
d38b561309 Set up nested directory structure for interfaces, configuration, structs, libraries 2024-05-10 13:38:01 -07:00
Michael Hohn
12595077c7 wip 2024-05-10 13:21:50 -07:00
Michael Hohn
9fc07e8c95 wip 2024-05-10 10:37:44 -07:00
Michael Hohn
12b9bd9858 wip 2024-05-10 10:07:50 -07:00
Michael Hohn
1fdf5064b7 wip 2024-05-09 11:20:55 -07:00
467b0a3736 wip 2024-05-08 23:11:41 -07:00
165b27fa0c wip 2024-05-08 22:50:16 -07:00
Michael Hohn
0bfa496a25 wip 2024-05-08 16:04:59 -07:00
Michael Hohn
2e258c3b13 wip 2024-05-08 15:22:39 -07:00
Michael Hohn
512419a143 wip 2024-05-08 14:09:30 -07:00
Michael Hohn
16bedf89d8 wip 2024-05-08 10:42:15 -07:00
Michael Hohn
901999df5c Directory layout 2024-05-07 15:38:59 -07:00