Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(connector-corda): containerize plugin #805

Closed

Conversation

jordigiam
Copy link

@jordigiam jordigiam commented Apr 16, 2021

Resolve #789
Depends on #763
Depends on #1151

RUN npm i @hyperledger/cactus-cmd-api-server@${NPM_PKG_VERSION} --production

ENTRYPOINT ["/sbin/tini", "--"]
CMD ["node", "node_modules/@hyperledger/cactus-cmd-api-server/dist/lib/main/typescript/cmd/cactus-api.js", "filler-until-bug-794-is-fixed"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordigiam In the meantime #794 (#795) got merged so we should no longer need the workaround dummy parameter here. If you could remove that (after having rebased onto main) and then re-test I'd be grateful. (it can be in the context/scope of any other one of the container PRs I just happened to open this one first)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordigiam I forgot that the API server image I put on my branch was not yet published so you couldn't use it as a base image just yet. I published it under this tag for now (later will create it under hyperledger as well but that takes more time)
petermetz/cactus-cmd-api-server:2021-04-18-fix-quorum-contract-types

https://hub.docker.com/layers/146080676/petermetz/cactus-cmd-api-server/2021-04-18-fix-quorum-contract-types/images/sha256-78185bdf50281d875215807394bb22cbb12d03c423c8e7c578a9c8fb48f9a209?context=explore

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@petermetz I'm facing this issue when I try to use your image: "npm ERR! Invalid package name "@petermetz/cactus-cmd-api-server:2021-04-18-fix-quorum-contract-type": name can only contain URL-friendly characters"

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordigiam petermetz/cactus-cmd-api-server:2021-04-18-fix-quorum-contract-type is the docker image tag, not an npm package name. For the npm package you'd want this: https://www.npmjs.com/package/@hyperledger/cactus-plugin-ledger-connector-corda/v/0.4.2-main.b067fdd.29

Also now that I think about it, the container image for corda will be a little different than the others because the corda connector runs in the JVM so for this one you'll need some additional customization to the cmd-api-server base image so that it has the JDK installed. Basically you'll want a combination of the cmd-api-server base image and the standalone corda connector image here: packages/cactus-plugin-ledger-connector-corda/src/main-server/Dockerfile

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jordigiam Other thing I just remembered in addition to the comment above: You'll need to swap out tini for supervisord to be able to manage multiple processes in the container.

@jordigiam jordigiam marked this pull request as ready for review April 21, 2021 14:27
Copy link
Contributor

@petermetz petermetz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

(see my comments above)

@elenaizaguirre
Copy link
Contributor

@kikoncuo Could you give me permissions to force push on this branch?

Signed-off-by: jordigiam <jordi.giron.amezcua@accenture.com>
Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
Signed-off-by: Peter Somogyvari <peter.somogyvari@accenture.com>
@github-actions
Copy link

github-actions bot commented Feb 2, 2023

This PR/issue depends on:

@petermetz
Copy link
Contributor

Closing this down for now because it's for Corda v4 but we are focusing on Corda v5.

@petermetz petermetz closed this Jul 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(connector-corda): containerize plugin
3 participants