This repository was archived by the owner on May 21, 2025. It is now read-only.
Open
Conversation
added 3 commits
January 14, 2022 10:14
Member
Author
|
solution for #82 |
Collaborator
|
@jb-adams This is a nice way to build the to dockerize the image.
I tried to run the tool using the following command but without success. Do you see what I may doing wrong? Adding an example to the README could help. $ docker run -it --rm -v ${PWD}:/project \
> ga4gh/gh-openapi-docs:0.2.2-rc3 \
> --dry-run true \
> -c /project/.spec-docs.json.sample.2
node:internal/validators:119
throw new ERR_INVALID_ARG_TYPE(name, 'string', value);
^
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received null
at new NodeError (node:internal/errors:371:5)
at validateString (node:internal/validators:119:11)
at Object.join (node:path:1172:7)
at constructBranchPath (webpack:///./src/lib/config.js?:40:56)
at eval (webpack:///./src/lib/config.js?:45:15)
at Module../src/lib/config.js (/snapshot/dist/bundle.js)
at __webpack_require__ (/snapshot/dist/bundle.js)
at eval (webpack:///./src/lib/tasks.js?:3:65)
at Module../src/lib/tasks.js (/snapshot/dist/bundle.js)
at __webpack_require__ (/snapshot/dist/bundle.js) {
code: 'ERR_INVALID_ARG_TYPE'
}where I replaced the content of {
"buildPages": [
{
"apiSpecPath": "/project/test/test-spec/combined/openapi.yaml",
"htmlOutfile": "index.html",
"yamlOutfile": "openapi.yaml",
"jsonOutfile": "openapi.json"
}
],
"redocTheme": "ga4gh"
} |
Collaborator
|
An improvement would be to run the tool as a non-root user, e.g. using |
Collaborator
|
@jb-adams I'm having an issue running the dockerized tool (see above). Do you know what the issue may be? |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Dockerfile to execute docs build in CI via docker container. Currently registered on docker hub