Uploaded image for project: 'GPII - Global Public Inclusive Infrastructure'
  1. GPII - Global Public Inclusive Infrastructure
  2. GPII-3483

Building universal docker image fails on 'postinstall' script

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: universal
    • Labels:
      None

      Description

      The Dockerfile in universal contains a call to npm install.  The package.json file contains a postinstall script that does preferences conversion and browserification.  The postinstall script is failing when building the docker image:

      npm WARN lifecycle gpii-universal@0.3.0~postinstall: cannot run in wd %s %s (wd=%s) gpii-universal@0.3.0 node scripts/browserifyTestDependency.js && node scripts/convertPrefs.js testData/preferences/ build/dbData/snapset/ snapset && node scripts/convertPrefs.js testData/preferences/ build/dbData/user/ user && node scripts/convertPrefs.js tests/data/preferences/ build/tests/dbData/ user /app

      You can see this error in CI, for example:

      https://ci.gpii.net/job/universal-node-production-tests/1192/console

      Search for "WARN lifecyle" in that log

       

        Attachments

          Activity

            People

            Assignee:
            clown Joseph Scheuhammer
            Reporter:
            clown Joseph Scheuhammer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: