Siirry sisältöön
Softagram
  • Etusivu
  • Palvelut
    • Toiminnanohjaus
    • Tekoälypalvelut
    • Tietoturvapalvelut
  • Yritys
  • Ota yhteyttä
  • Oppaat ja uutiset
    • Uutiset
    • Oppaat
  • Tech
  • Tapahtumat
  • English (US) Suomi
  • Kirjaudu sisään
  • Ota yhteyttä
Softagram
      • Etusivu
      • Palvelut
        • Toiminnanohjaus
        • Tekoälypalvelut
        • Tietoturvapalvelut
      • Yritys
      • Ota yhteyttä
      • Oppaat ja uutiset
        • Uutiset
        • Oppaat
      • Tech
      • Tapahtumat
    • English (US) Suomi
    • Kirjaudu sisään
    • Ota yhteyttä

    Running analysis for ad-hoc code directories locally

    Tutorials
  • Kaikki blogit
  • Oppaat
  • Running analysis for ad-hoc code directories locally
  • 15. lokakuuta 2020 kirjoittanut
    Running analysis for ad-hoc code directories locally
    Softagram Oy, Ville Laitila

    The most simple way to run analysis on local (Developer) installation of Softagram, is to create an empty directory, copy the codebase into it, run analysis and use the outputs.

    # Create the directory
    mkdir -p /opt/softagram/input/projects/mycodes/mycodes

    # Copy files
    cp -r mycodes /opt/softagram/input/projects/mycodes/mycodes/

    # Run analysis
    docker exec -ti softagram python3 ui/cli/softagramtools.py fullanalysis --input-dir /opt/softagram/input/projects/mycodes/mycodes

    After waiting for some time, (e.g. 1 MLOC of code to be analyzed = 1 hour), you can open up the results in Softagram Desktop by this.
    Once the output is ready, you can use Softagram Desktop to open the freshly generated model file, .e.g
    ​    /opt/softagram/output/projects/mycodes/master/2019-09-16_10-47-40Z/dependency/modelfile.xml.zip

    Later want to add new repos and re-run analysis for the dir?

    • Just cd to /opt/softagram/input/projects/mycodes/mycodes and do some git clone runs there to get clones into the directory, and re-run the analysis.

    Is your Softagram Desktop running in a different machine?

    • Usually this case is handled by using the usual method of creating the project in web UI, adding Git repository for the project, etc. But you can also scp the output directory to the machine Softagram Desktop is running at.

    your-pc-with-Softagram-Desktop $  scp user@softagram-installation:/opt/softagram/output/projects/mycodes/master/2019-09-16_10-47-40Z .

    When the whole timestamp-based directory is available in your local PC, you may open the model file and all the supplementary attribute files with a single click in Softagram Desktop, by pointing it the modelfile.xml.zip from the dependency directory.
    ​

    Originally published at help.softagram.com

    in Oppaat
    # Softagram Analyzer

    Älyä toiminnanohjaukseen ja 

    tietoturvaa ohjelmistokehitykseen

    Monipuolisen osaamisemme kautta tarjolla on nyt vahva kombinaatio tekoälyn, toiminnan tehostamisen ja tietoturvallisuuden osaamista.

    Ota yhteyttä

    Softagram Oy
    Ketolanperäntie 469 
    90450 ​Kempele 

    • +358504836173
    • info@softagram.com
    Seuraa meitä
    Copyright © Softagram Oy
    Järjestelmää pyörittää Odoo - Luo ilmainen verkkosivu