Uploaded image for project: 'Puppet Agent'
  1. Puppet Agent
  2. PA-4315

Run snyk monitor on Windows

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Won't Do
    • None
    • None
    • None
    • None
    • Phoenix
    • 3
    • Needs Assessment

    Description

      Add snyk monitor support for windows.

      • Remove the following pending platforms from vanagon_packaging.sh
        windows-2012r2-x64
        windows-2012r2-x86
        windowsfips-2012r2-x64
      • On Windows, we need to ssh as "Administrator" not "root" like:

      ssh_user=root
      if [[ ${p_build_target_axis_name} =~ windows ]]; then
          ssh_user=Administrator
      fi
      ...
      ssh ... "$ssh_user@$build_host" <<'EOF'
      ...
      scp ... "$ssh_user@build_host:..."
      

      • Create Windows tempfiles with "native" paths:

      if [[ $(uname) =~ CYGWIN_NT ]]; then
         generator=$(cygpath -w "$generator")
         gemfile=$(cygpath -w "$gemfile")
      fi
      

      • Generate Gemfile.lock using windows paths:

      if [[ $(uname) =~ CYGWIN_NT ]]; then
          cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\ruby "$generator" > $gemfile
          cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\gem.bat which bundler || C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\gem.bat install --no-document bundler
          cmd /c C:\\ProgramFiles64Folder\\PuppetLabs\\Puppet\\puppet\\bin\\bundle lock --local --lockfile Gemfile.lock --gemfile "$gemfile"
      else
      

      • Also need to support 32-bit as well, e.g. C:\\ProgramFilesFolder\\PuppetLabs\\Puppet\\puppet\\bin
        ruby

      This is blocked on PA-4313.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              josh Josh Cooper
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support