Demo
For the demo, we’ll use daytrader7 as an example. Feel free to follow along with your own application and your personal directories. But, keep track of the directories where the application source code and the built jar/war/ear reside and replace them appropriately below.
To get started, clone this repo and save the repository root as
$DGI_ROOT
:git clone https://github.com/konveyor/tackle-data-gravity-insights.git cd tackle-data-gravity-insights
This repository comes with a
demo
folder to work through an example app.Let’s download a copy of our sample application and build it.
# Download and extract the demo application wget -c https://github.com/WASdev/sample.daytrader7/archive/refs/tags/v1.4.tar.gz -O - | tar -xvz -C demo/sample-application # Now build the application docker run --rm -v $(pwd)/demo/sample-application/sample.daytrader7-1.4:/build maven:3.8.4-openjdk-8-slim mvn --file=/build/pom.xml install
This will create an EAR file called
daytrader-ee7-1.0-SNAPSHOT.ear
indemo/sample-application/sample.daytrader7-1.4/daytrader-ee7/target
directory.For convenience, let’s put the generated
daytrader-ee7-1.0-SNAPSHOT.ear
in thedemo/code2graph-samples/doop-input
folder```sh cp demo/sample-application/sample.daytrader7-1.4/daytrader-ee7/target/daytrader-ee7-1.0-SNAPSHOT.ear demo/code2graph-samples/doop-input