Skip to content

Commit 9828be4

Browse files
committed
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]>
1 parent d7e6f66 commit 9828be4

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tools/docker/corda-all-in-one/Dockerfile

+5
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ FROM docker:20.10.2-dind
22

33
ARG SAMPLES_KOTLIN_SHA=c6d386057957ae1a717751abe61f82e7aef4e035
44
ARG SAMPLES_KOTLIN_CORDAPP_SUB_DIR_PATH="./Advanced/obligation-cordapp/"
5+
ARG CORDA_TOOLS_SHELL_CLI_VERSION=4.5
56

67
WORKDIR /
78

@@ -58,6 +59,10 @@ RUN cp $CACTUS_CFG_PATH/corda-aio-image.pub ~/.ssh/authorized_keys
5859
# RUN cat /root-password.txt | chpasswd
5960
RUN echo "root:root" | chpasswd
6061

62+
RUN curl https://software.r3.com/artifactory/corda-releases/net/corda/corda-tools-shell-cli/${CORDA_TOOLS_SHELL_CLI_VERSION}/corda-tools-shell-cli-${CORDA_TOOLS_SHELL_CLI_VERSION}-all.jar --output /corda-tools-shell-cli-all.jar
63+
# This is what makes the "corda-shell" alias avaialble on the terminal
64+
RUN java -jar /corda-tools-shell-cli-all.jar install-shell-extensions
65+
6166
RUN git clone https://github.com/corda/samples-kotlin.git
6267
WORKDIR /samples-kotlin
6368
RUN git checkout ${SAMPLES_KOTLIN_SHA}

0 commit comments

Comments
 (0)