-
Notifications
You must be signed in to change notification settings - Fork 75
Build, Run and Configure micro‐services in local development environment
This Document is aim to provide a instruction on how to setup the local development environment for developing and deploying the core/micro-services
.
This document requires you to finish all the setup of Texera local development environment described in https://github.com/Texera/texera/wiki
.
core/micro-services
is a sbt-managed project added by the PR https://github.com/Texera/texera/pull/2922. The ongoing code separation effort will gradually migrate all the services in core/amber
to core/micro-services
.
If you just want to run some services under micro-services
, you can use some provided shell scripts.
cd texera/core
# make sure to give scripts the execution permission
chmod +x scripts/build-workflow-compiling-service.sh
chmod +x scripts/workflow-compiling-service.sh
# Build the WorkflowCompilingService
scripts/build-workflow-compiling-service.sh
# Run the WorkflowCompilingService
scripts/workflow-compiling-service.sh
As there are many sub sbt projects under micro-services
, Intellij is the most suitable IDE for setting up the whole environment
- Open the folder
texera/core/micro-services
throughOpen Project
in Intellij
Once you open it, Intellij will auto-detect the sbt setting and start to load the project. After loading you should see the sbt tab, which has the micro-services
as the root project and several other services as the sub-projects:
- Run
sbt clean compile
command in foldercore/micro-services
. This command will compile everything undermicro-services
and generate proto-specified codes.