Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Installation instructions issues #63

Open
ivan-gomes opened this issue Aug 29, 2022 · 0 comments
Open

Installation instructions issues #63

ivan-gomes opened this issue Aug 29, 2022 · 0 comments

Comments

@ivan-gomes
Copy link

ivan-gomes commented Aug 29, 2022

  1. The referenced src/test/resources/docker-compose.yml uses store-service instead of layer1-service - https://github.com/Open-MBEE/mms5-layer1-service/blob/76d00e4c022a0d72618b9d6f76d26940555631b4/src/test/resources/docker-compose.yml#L27 and contains unneeded/undocumented dependencies like minio.
  2. Running the initialization step - ref: https://github.com/Open-MBEE/mms5-layer1-service#generate-the-initialization-file - from a fresh clone results in a hung process, because it is waiting for user input for package installation. Note that contents for src/test/resources/cluster.trig is
Need to install the following packages:
  ts-node@10.9.1
Ok to proceed? (y)
  1. Once (2) is mitigated, the same initialization command fails with the following error, presumably because of a missing install step, e.g. yarn install:
Error: Cannot find module '@graphy/content.trig.write'
Require stack:
- /.../mms5-layer1-service/deploy/src/main.ts
    at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
    at Function.Module._resolveFilename.sharedData.moduleResolveFilenameHook.installedValue [as _resolveFilename] (/.../.npm/_npx/1bf7c3c15bf47d04/node_modules/@cspotcode/source-map-support/source-map-support.js:811:30)
    at Function.Module._load (node:internal/modules/cjs/loader:778:27)
    at Module.require (node:internal/modules/cjs/loader:1005:19)
    at require (node:internal/modules/cjs/helpers:102:18)
    at Object.<anonymous> (/.../mms5-layer1-service/deploy/src/main.ts:2:1)
    at Module._compile (node:internal/modules/cjs/loader:1105:14)
    at Module.m._compile (/.../.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1618:23)
    at Module._extensions..js (node:internal/modules/cjs/loader:1159:10)
    at Object.require.extensions.<computed> [as .ts] (/.../.npm/_npx/1bf7c3c15bf47d04/node_modules/ts-node/src/index.ts:1621:12) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [ '/.../mms5-layer1-service/deploy/src/main.ts' ]
}
  1. I would recommend including an example curl call to apply initialization - ref https://github.com/Open-MBEE/mms5-layer1-service#apply-the-initialization-file, ex.
curl -X POST http://localhost:3030/ds/data -H "Content-Type: application/trig" --data-binary "@cluster.trig"
@blake-regalia blake-regalia moved this to New in Flexo Nov 28, 2022
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
Status: New
Development

No branches or pull requests

1 participant