February 04, 2021
Occasionally we look to take some of the feedback we get most often and see if we can provide tips to help developers with everyday issues.
(Photo by Austin Distel on Unsplash)
Occasionally, we look to take some of the feedback we get most often and see if we can provide tips to help developers with everyday issues. This week, we had a couple of questions where a developer was trying to set up a CorDapp to run using docker.
We get these kinds of questions all the time, so I’ll collect some of our resources on the subject to hopefully make things a little easier.
The short answer is that docker does support Corda; we have our official docker image online here. You can also find our quick guide for how to run it here. The docs will always be updated with directions for the latest versions of Corda open-source and Corda enterprise.
If you’ve never set up Corda with docker before, take a look at my beginner post on how to get a CorDapp running with docker. Or you can take a look at this post from Ashutosh, another developer evangelist, as well.
When building a Corda node, you can specify that the files created are for docker-compose instead of using the local network bootstrapper. Note that this is through the dockerform Gradle task instead of the cordform task. You can essentially swap ‘dockerform’ and ‘cordform’ in your Gradle file and specify the image as the two tasks take nearly the same input. More on the dockerform and cordform tasks here in the docs.
If you’re interested in going further on this sort of thing, our most recent sample (as of Corda 4.7) is the Bank in a Box CorDapp. It uses Kubernetes, helm, and docker for a state of the art corda container setup!
Here once again are the links to the resources I mentioned, along with some other ones you might be looking for:
Hopefully, this is helpful and good luck with your builds!
If you’d like to see more blog posts like these or have ideas on what we should add, feel free to send a note to devrel@r3.com.
Want to learn more about building awesome blockchain applications on Corda? Be sure to visit corda.net, check out our community page to learn how to connect with other Corda developers, and sign up for one of our newsletters for the latest updates.
— David Awad is a Developer Evangelist at R3, an enterprise blockchain software firm working with a global ecosystem of more than 350 participants across multiple industries from both the private and public sectors to develop on Corda, its open-source blockchain platform, and Corda Enterprise, a commercial version of Corda for enterprise usage.
Follow David on Twitter here.
Share this post
Most Recent
February 24, 2021
February 17, 2021
February 11, 2021
Stay up to date on the latest news and articles related to Corda.
© 2021 Corda, All Rights Reserved
Terms of Use | Privacy Policy | Trademark Policy | Anti-Slavery Statement