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(tools): add standalone shell CLI tool to corda AIO image #691

Merged
merged 5 commits into from
Mar 25, 2021

Conversation

petermetz
Copy link
Contributor

@petermetz petermetz commented Mar 19, 2021

Dependencies (need to be reviewed and merged first)

Depends on #657
Depends on #687
Depends on #688
Depends on #689
Depends on #690
Depends on #656

Commit to be reviewed

Author: Peter Somogyvari [email protected]
Author Date: 2021-03-14 17:17:35 -0700
Committer: Peter Somogyvari [email protected]
Committer Date: 2021-03-14 18:51:05 -0700

feat(tools): add standalone shell CLI tool to corda AIO image

The corda AIO docker image now downloads
the CLI tools jar for the standalone shell at
build time.
By default it downloads the 4.5 version of the
jar but this can be altered to any other version
through a dedicated build argument of the
container image definition.

The image built from this commit is also tagged
(on top of the automatic tagging script) as
hyperledger/cactus-corda-4-6-all-in-one-obligation:2021-03-14-standalone-corda-shell

See more details here for what a standalone
shell is and how it can be used to execute
commands (some which are not available on
the RPC proxy so this tool is a must have for
certain operations such as gracefully stopping
nodes)
https://docs.corda.net/docs/corda-os/4.5/shell.html#standalone-shell

Signed-off-by: Peter Somogyvari [email protected]

takeutak
takeutak previously approved these changes Mar 23, 2021
@petermetz petermetz force-pushed the feat-621-parent-5 branch 3 times, most recently from 07515ca to 028f04f Compare March 24, 2021 02:23
@petermetz petermetz requested a review from takeutak March 24, 2021 22:36
@petermetz petermetz requested a review from kikoncuo March 25, 2021 07:26
This is the same thing that we added to the Fabric
AIO image earlier:
Setting the flag controls whether the CordaTestLedger
class will automatically pipe the container's own logs onto the logger object of the
class instance (CordaTestLedger) or not.
By default it does pipe the logs but if it gets spammy
developers can turn it off via the flag to avoid
having to scroll through thousands of lines of
logs that may or may not be useful to them.

Signed-off-by: Peter Somogyvari <[email protected]>
During testing it was easier and faster to have the
cordapp building process commented out because
the obligation cordapp is pre-built within the
container image of AIO Corda, then it was forgotten
like that which is not good because the rest of the examples
are not pre-built and therefore don't actually work
without this line being uncommented.

Signed-off-by: Peter Somogyvari <[email protected]>
While trying to use the supervisorctl binary
to manage the starting of the corda-network
process configured in supervisord.conf the
following error was encountered and then
fixed by this change:

$ supervisorctl -c /etc/supervisor/supervisord.conf
Error: .ini file does not include supervisorctl section
For help, use /usr/bin/supervisorctl -h

Signed-off-by: Peter Somogyvari <[email protected]>
The corda AIO docker image now downloads
the CLI tools jar for the standalone shell at
build time.
By default it downloads the 4.5 version of the
jar but this can be altered to any other version
through a dedicated build argument of the
container image definition.

The image built  from this commit is also tagged
(on top of the automatic tagging script) as
hyperledger/cactus-corda-4-6-all-in-one-obligation:2021-03-14-standalone-corda-shell

See more details here for what a standalone
shell is and how it can be used to execute
commands (some which are not available on
the RPC proxy so this tool is a must have for
certain operations such as gracefully stopping
nodes)
https://docs.corda.net/docs/corda-os/4.5/shell.html#standalone-shell

Signed-off-by: Peter Somogyvari <[email protected]>
@petermetz petermetz merged commit 9828be4 into hyperledger-cacti:main Mar 25, 2021
@petermetz petermetz deleted the feat-621-parent-5 branch March 25, 2021 23:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants