Skip to content

Commit

Permalink
refactor(connector-corda): de-dockerize openapi generator invoke
Browse files Browse the repository at this point in the history
Why though? Because if you are building the project during the
building of the supply chain app example container image, then
the "generate-server" script of the corda connector was failing
due to a running docker daemon not being present in the image
at build time (even with the docker-in-docker base image because
that also only has a docker daemon running at runtime of the
container not at build time).

Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
  • Loading branch information
petermetz committed Mar 25, 2021
1 parent 87e632e commit 28b4c14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/cactus-plugin-ledger-connector-corda/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"scripts": {
"generate-sdk": "openapi-generator generate --input-spec src/main/json/openapi.json -g typescript-axios -o ./src/main/typescript/generated/openapi/typescript-axios/",
"generate-server": "docker run --user \"$(id -u):$(id -g)\" --rm -v \"${PWD}:/local\" openapitools/openapi-generator-cli:v5.0.0 generate -i /local/src/main/json/openapi.json -g kotlin-spring -o /local/src/main-server/kotlin/gen/kotlin-spring/ -c /local/src/main-server/openapi-generator-config.yaml",
"generate-server": "openapi-generator generate --input-spec src/main/json/openapi.json -g kotlin-spring -o ./src/main-server/kotlin/gen/kotlin-spring/ -c ./src/main-server/openapi-generator-config.yaml",
"pretsc": "npm-run-all generate-sdk generate-server",
"tsc": "tsc --project ./tsconfig.json",
"watch": "npm-watch",
Expand Down

0 comments on commit 28b4c14

Please sign in to comment.