Sign inSign up

ispras/svacer

By ispras

Updated 4 months ago

Server to manage results of static code analyzers

Image
Security
Languages & frameworks
Developer tools
1

6.7K

ispras/svacer repository overview

Svacer

Svacer is a server to manage results of Svace static analyzer and any other static analyzers that supports SARIF format.

Check our wiki for documentation and more info.

It depends on PostgreSQL. You may use the following docker-compose file to run it.

name: svacer

services:
  postgresql:
    image: postgres:17.0-bullseye
    container_name: svacer-postgres
    restart: always
    shm_size: 1g
    environment:
      - POSTGRES_DB=svace
      - POSTGRES_USER=svace
      - POSTGRES_PASSWORD=svace
    volumes:
      - svacer-postgres:/var/lib/postgresql/data
    networks:
      svacer:
    healthcheck:
      test: pg_isready -U svace
      interval: 10s

  svacer:
    image: ispras/svacer:12-0-0
    container_name: svacer
    restart: always
    shm_size: 1g
    init: true
    depends_on:
      postgresql:
        condition: service_healthy
    ports:
      - 3002:3002
      - 8080:8080
      # uncomment next line to map profiler port (if enabled in env var below)
      # - 6060:6060
    environment:
      - DEBUG=false
      # uncomment next line to enable profiler on the speficied port
      # map it above in the 'ports' section and profiler will be available at http://localhost:6060/api/debug/pprof/
      # - PPROF_PORT=6060

      - SVACER_PG_URL=postgres://svace:svace@postgresql:5432/svace?pool_max_conns=20
      - STORE=/data/store

      # set public URL (required for notifications and for short URLs generation)
      # - PUBLIC_URL=http://svacer.intra.net:8080

      # mount LDAP config as a volume and set path to it to enable LDAP auth
      # - LDAP_CONFIG=/svacer/bin/ldap.conf

      # enable WebIDE; requires mounting /var/run/docker.sock as a volume
      # see https://svacer.ispras.ru/mediawiki/index.php?title=Help:XSvacer:Webide
      - WEBIDE_ENABLE=true

    volumes:
      - svacer-object-store:/data/store

      # for advanced configuration you may create config file and mount it as a volume to the default config path
      # - ./svacer.cfg:/svacer/bin/svacer.cfg

      # mount LDAP config and set path to it in ENV var 'LDAP_CONFIG' to enable LDAP auth
      # - ./ldap.conf:/svacer/bin/ldap.conf

      # required for WebIDE, see https://svacer.ispras.ru/mediawiki/index.php?title=Help:XSvacer:Webide
      - /var/run/docker.sock:/var/run/docker.sock:ro
      - svacer-snapshot-sources:/root/.cache/svacer-snapshot-sources

    networks:
      svacer:

volumes:
  svacer-postgres:
  svacer-object-store:
  svacer-snapshot-sources:
    name: svacer-snapshot-sources

networks:
  svacer:
    name: svacer 

Tag summary

Content type

Image

Digest

sha256:7d460cae9

Size

450.2 MB

Last updated

8 months ago

docker pull ispras/svacer