Configuring Your Local Development Environment
Prerequisites
Install dependencies:
GO compiler: last development-tested version is
go1.22.4 windows/amd64Rancher Desktop container daemon: last development-tested version is
v1.16.0(make sure to enable dockerd (Moby) container engine)
Configure hosts:
Add
127.0.0.1 keycloak.eurekaentry to/etc/hostsAdd
127.0.0.1 kafka.eurekaentry to/etc/hosts
Run enironment and deploy application
Build a binary
mkdir -p ./bin
env GOOS=windows GOARCH=amd64 go build -o ./bin .See BUILD.md to build a platform-specific binary
(Optional) Setup a default config in the home folder
This config will be used by default if
-cor--configflag is not specified
./bin/eureka-cli.exe setup(Optional) Install binary
After building and installing the binary can be used from any directory
go install
eureka-cli.exe -c ./config.minimal.yaml deployApplicationDeploy a minimal platform application
Using Public DockerHub container registry (folioci & folioorg namespaces)
Use a specific config:
-cor--configEnable debug:
-dor--debug
./bin/eureka-cli -c ./config.minimal.yaml deployApplicationUse the environment
Access the UI from
http://localhost:3000usingdiku_adminusername andadminpasswordMonitor using system components:
Redirect module for local debugging
To enable redirection, the appropriate sidecar will route traffic to the locally running module using the redirect command.
To identify the container of the module that needs to be redirected, the listModules command can be invoked.
./bin/eureka-cli -c ./config.minimal.yaml redirect --id mod-orders-13.0.0-SNAPSHOT.967 --location http://host.docker.internal:9183Undeploy application
After finishing the work to cleanup resources need to invoke undeployApplication that will delete all created resources and docker containers that were created during deployApplication../bin/eureka-cli -c ./config.minimal.yaml deployApplication
./bin/eureka-cli -c ./config.minimal.yaml undeployApplicationNote: to invoke deployApplication again, ensure that the commandundeployApplication is invoked first.
More info
All other details, including the private AWS ECR container registry and various troubleshooting questions, can be found in the Readme section of the tool on GitHub: https://github.com/folio-org/eureka-setup/tree/master/eureka-cli