peridot/secparse
Mustafa Gezen 226c0f4c30
Change interceptor handling and add prometheus metrics to all services
Signed-off-by: Mustafa Gezen <mustafa@ctrliq.com>
2022-08-31 20:06:02 +02:00
..
admin Change interceptor handling and add prometheus metrics to all services 2022-08-31 20:06:02 +02:00
cmd Initial commit 2022-07-07 22:13:21 +02:00
cron Initial commit 2022-07-07 22:13:21 +02:00
db Initial commit 2022-07-07 22:13:21 +02:00
impl Change interceptor handling and add prometheus metrics to all services 2022-08-31 20:06:02 +02:00
migrate Initial commit 2022-07-07 22:13:21 +02:00
proto/v1 Initial commit 2022-07-07 22:13:21 +02:00
rherrata Initial commit 2022-07-07 22:13:21 +02:00
rhsecurity Initial commit 2022-07-07 22:13:21 +02:00
rhsecuritymock Initial commit 2022-07-07 22:13:21 +02:00
rpmutils Add support for unusual NVRs to yumrepofs 2022-08-31 20:06:02 +02:00
ui Initial commit 2022-07-07 22:13:21 +02:00
BUILD Initial commit 2022-07-07 22:13:21 +02:00
README.md Initial commit 2022-07-07 22:13:21 +02:00
seed.sql Initial commit 2022-07-07 22:13:21 +02:00

secparse

Errata mirroring and publishing platform

Testing

bazel test --test_arg=-test.v --test_output=all $(bazel query 'tests(//secparse/...)')

Development

  • Add 127.0.0.1 errata.pdot.localhost to /etc/hosts
  • Have a PostgreSQL database running with postgres user with postgres as password
  • Create and migrate database ./hack/recreate_with_seed secparse
  • You can then run all components like this:
    bazel run //secparse/cmd/secparse
    bazel run //secparse/cmd/secparseadmin
    bazel run //secparse/cmd/secparsecron
    ibazel run //secparse/ui:secparse.server
    

You can then visit http://errata.pdot.localhost:9007

Deployment (excluding publisher)

  • Push all containers and tag with current git hash
STABLE_STAGE=-prod bazel run --platforms @io_bazel_rules_go//go/toolchain:linux_amd64 //secparse/cmd/secparse:secparse-server
STABLE_STAGE=-prod bazel run --platforms @io_bazel_rules_go//go/toolchain:linux_amd64 //secparse/cmd/secparseadmin:secparseadmin-server
STABLE_STAGE=-prod bazel run --platforms @io_bazel_rules_go//go/toolchain:linux_amd64 //secparse/cmd/secparsecron:secparsecron-server
STABLE_STAGE=-prod bazel run --platforms @build_bazel_rules_nodejs//toolchains/node:linux_amd64 //secparse/ui:secparse-frontend
  • Clone git@github.com:rocky-linux/peridot-ansible.git and cd into peridot-ansible
  • Change hashes in roles/local/{name}/defaults/main.yml
  • First run migrate if the database schema has changed ansible-playbook -i inventories/hosts.ini playbooks/secparse001-migrate.yml
  • Deploy containers ansible-playbook -i inventories/hosts.ini playbooks/secparse001.yml