- JRE : 8_121
- PostgreSQL : 9.6
- MongoDB : 3.2
- RabbitMQ : 3.6.6
-
Clone the code and navigate to
./Java_DataWorker_Sample/SampleCode
foldercd ./Java_DataWorker_Sample/SampleCode
-
Open
SampleCode.java
under./Java_DataWorker_Sample/SampleCode/src/main/java
and modify some codes about username and password -
Run gradle command to build jar file
gradlew runnableJar
-
Lunch Java_DataWorker_Sample via command on your PC
java -jar ./Java_DataWorker_Sample/SampleCode/build/libs/SampleCode.jar
-
Prerequisites
- CF Command
- Check the buildpack
java_buildpack_offline
exists in cf buildpacks list. - Check
rabbitmq
,postgrsql
andmongodb
service instance are in cf services.
-
Create manifest.yml file
gradlew makeManifest
-
Push Application to PCF
cf push -f manifest.yml