-
Notifications
You must be signed in to change notification settings - Fork 285
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): read privateKey from filesystem #1761
feat(connector-corda): read privateKey from filesystem #1761
Conversation
Would something like this work (need to substitute the container ID variable)? export CORDA_AIO_IMAGE_KEY=$(docker exec $CONTAINER_ID cat /etc/hyperledger/cactus/corda-aio-image.key) then in the compose file you just use the environment variable as usual: https://docs.docker.com/compose/environment-variables/#pass-environment-variables-to-containers And finally what I wanted to double check is the specific reason for using docker compose. Is it to simplify manual testing or are you somehow embedding the docker compose parts into a test case? |
...es/cactus-plugin-ledger-connector-corda/src/main/typescript/plugin-ledger-connector-corda.ts
Outdated
Show resolved
Hide resolved
...es/cactus-plugin-ledger-connector-corda/src/main/typescript/plugin-ledger-connector-corda.ts
Outdated
Show resolved
Hide resolved
a35b344
to
0274797
Compare
I am using docker compose because I think it improves the user experience by deploying all containers with a single command, but I'm having a lot of problems because of it. If you want to see what I am doing it is available in this branch. Now I am not sure how to deal with this issue, I think there are three ways to do it:
|
0274797
to
e21245e
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@elenaizaguirre Got it, thank you for explaining. I am definitely in favor of merging this PR so that option 3) becomes feasible ASAP and we can think about the rest of them later as well. Thank you for addressing my change requests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
e21245e
to
e796b52
Compare
Allow plugin-ledger-connector-corda to read privateKey from filesystem instead of obtain it directly from corda-aiio container Relationed with hyperledger-cacti#789 Signed-off-by: Elena Izaguirre <e.izaguirre.equiza@accenture.com>
e796b52
to
4649e95
Compare
Allow plugin-ledger-connector-corda to read privateKey from filesystem
instead of obtain it directly from corda-aio container
Relationed with #789
Signed-off-by: Elena Izaguirre e.izaguirre.equiza@accenture.com