mirror of
https://github.com/corda/corda.git
synced 2025-06-01 15:10:54 +00:00
Merge pull request #2667 from corda/tlil/CORDA-1103/fix-irs-windows
CORDA-1102 / CORDA-1103 - Fix IRS Demo on Windows
This commit is contained in:
commit
b7d48b2f1a
@ -1,14 +1,14 @@
|
|||||||
# IRS Demo
|
# IRS Demo
|
||||||
|
|
||||||
This demo brings up three nodes: Bank A, Bank B and a node that simultaneously runs a notary, a network map and an
|
This demo brings up three nodes: Bank A, Bank B and a node that simultaneously runs a notary, a network map and an
|
||||||
interest rates oracle. The two banks agree on an interest rate swap, and then do regular fixings of the deal as the
|
interest rates oracle. The two banks agree on an interest rate swap, and then do regular fixings of the deal as the
|
||||||
time on a simulated clock passes.
|
time on a simulated clock passes.
|
||||||
|
|
||||||
Functionality is split into two parts - CordApp which provides actual distributed ledger backend and Spring Boot
|
Functionality is split into two parts - CordApp which provides actual distributed ledger backend and Spring Boot
|
||||||
webapp which provides REST API and web frontend. Application communicate using Corda RPC protocol.
|
webapp which provides REST API and web frontend. Application communicate using Corda RPC protocol.
|
||||||
|
|
||||||
To run from the command line in Unix:
|
To run from the command line in Unix:
|
||||||
1. Run ``./gradlew samples:irs-demo:cordapp:deployNodes`` to install configs and a command line tool under
|
1. Run ``./gradlew samples:irs-demo:cordapp:deployNodes`` to install configs and a command line tool under
|
||||||
``samples/irs-demo/cordapp/build``
|
``samples/irs-demo/cordapp/build``
|
||||||
2. Run ``./gradlew samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
2. Run ``./gradlew samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
||||||
3. Move to the ``samples/irs-demo/`` directory
|
3. Move to the ``samples/irs-demo/`` directory
|
||||||
@ -18,22 +18,22 @@ To run from the command line in Unix:
|
|||||||
|
|
||||||
To run from the command line in Windows:
|
To run from the command line in Windows:
|
||||||
|
|
||||||
1. Run ``gradlew.bat samples:irs-demo:cordapp:deployNodes`` to install configs and a command line tool under
|
1. Run ``gradlew.bat samples:irs-demo:cordapp:deployNodes`` to install configs and a command line tool under
|
||||||
``samples\irs-demo\build``
|
``samples\irs-demo\build``
|
||||||
2. Run ``gradlew.bat samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
2. Run ``gradlew.bat samples:irs-demo:web:deployWebapps`` to install configs and tools for running webservers
|
||||||
3. Run ``cd samples\irs-demo`` to change current working directory
|
3. Run ``cd samples\irs-demo`` to change current working directory
|
||||||
4. Run ``cordapp\build\nodes\runnodes.bat`` to open up several 3 terminals for each nodes
|
4. Run ``cordapp\build\nodes\runnodes.bat`` to open up several 3 terminals for each nodes
|
||||||
5. Run ``web\build\webapps\webapps.bat`` to open up several 3 terminals for each nodes' webservers
|
5. Run ``web\build\webapps\runwebapps.bat`` to open up several 3 terminals for each nodes' webservers
|
||||||
|
|
||||||
This demo also has a web app. To use this, run nodes and then navigate to http://localhost:10007/ and
|
This demo also has a web app. To use this, run nodes and then navigate to http://localhost:10007/ and
|
||||||
http://localhost:10010/ to see each node's view of the ledger.
|
http://localhost:10010/ to see each node's view of the ledger.
|
||||||
|
|
||||||
To use the web app, click the "Create Deal" button, fill in the form, then click the "Submit" button. You can then use
|
To use the web app, click the "Create Deal" button, fill in the form, then click the "Submit" button. You can then use
|
||||||
the time controls at the top left of the home page to run the fixings. Click any individual trade in the blotter to
|
the time controls at the top left of the home page to run the fixings. Click any individual trade in the blotter to
|
||||||
view it.
|
view it.
|
||||||
|
|
||||||
*Note:* The IRS web UI currently has a bug when changing the clock time where it may show no numbers or apply fixings
|
*Note:* The IRS web UI currently has a bug when changing the clock time where it may show no numbers or apply fixings
|
||||||
inconsistently. The issues will be addressed in a future milestone release. Meanwhile, you can take a look at a simpler
|
inconsistently. The issues will be addressed in a future milestone release. Meanwhile, you can take a look at a simpler
|
||||||
oracle example here: https://github.com/corda/oracle-example.
|
oracle example here: https://github.com/corda/oracle-example.
|
||||||
|
|
||||||
## Running the system test
|
## Running the system test
|
||||||
@ -52,9 +52,8 @@ Having this done, the system test can be run by running the Gradle task ``:sampl
|
|||||||
|
|
||||||
### Other
|
### Other
|
||||||
|
|
||||||
In order to run the the test by other means that the Gradle task - two more system properties are expected -
|
In order to run the the test by other means that the Gradle task - two more system properties are expected -
|
||||||
``CORDAPP_DOCKER_COMPOSE`` and ``WEB_DOCKER_COMPOSE`` which should specify full path docker-compose file for IRS cordapp
|
``CORDAPP_DOCKER_COMPOSE`` and ``WEB_DOCKER_COMPOSE`` which should specify full path docker-compose file for IRS cordapp
|
||||||
and web frontend respectively. Those can be obtained by running ``:samples:irs-demo:cordapp:prepareDockerNodes`` and
|
and web frontend respectively. Those can be obtained by running ``:samples:irs-demo:cordapp:prepareDockerNodes`` and
|
||||||
``web:generateDockerCompose`` Gradle tasks. ``systemTest`` task simply executes those two and set proper system properties up.
|
``web:generateDockerCompose`` Gradle tasks. ``systemTest`` task simply executes those two and set proper system properties up.
|
||||||
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
|||||||
cmd /C start java -Dspring.profiles.active=NotaryService -jar #JAR_PATH#
|
SET scriptpath=%~dp0
|
||||||
cmd /C start java -Dspring.profiles.active=BankA -jar #JAR_PATH#
|
cmd /C start java -Dspring.profiles.active=NotaryService -jar %scriptpath%#JAR_PATH#
|
||||||
cmd /C start java -Dspring.profiles.active=BankB -jar #JAR_PATH#
|
cmd /C start java -Dspring.profiles.active=BankA -jar %scriptpath%#JAR_PATH#
|
||||||
|
cmd /C start java -Dspring.profiles.active=BankB -jar %scriptpath%#JAR_PATH#
|
||||||
|
Loading…
x
Reference in New Issue
Block a user