docs |
service-typescript |
|
---|---|---|
Branch #dev |
TBD | |
Branch #master |
TBD | |
Tag | TBD |
EdgeBus is an application level network edge bus that adds connectivity, auditability, and observability to your apps with no code changes.
- !IMPORTANT! Read about how Git manages multiple working trees. This repository uses multiple trees approach based on orphan branches.
- Clone the repository
git clone --branch workspace [email protected]:edgebus/edgebus.git cd edgebus
- Initialize worktree by execute following commands
git worktree add database "database#master" git worktree add docs "docs#master" git worktree add console-dart "console-dart#master" git worktree add sdk-dart "sdk-dart#master" git worktree add service-typescript "service-typescript#master"
- Open VSCode Workspace
code "EdgeBus.code-workspace"
Local Deployment - is a set of shell scripts to generate docker-compose.yaml
file and launch the project using Docker Compose especially for local development.
- Login Docker to GitHub Container Registry with scope at least
read:packages
. See how to Authenticating with a personal access token. - (Optionally) Create a file
startup.config.local
. Use this file for override startup configuration variables defined in the filestartup.config
. - Up local deployment zone by call one of
- in foreground
- (force pull new images):
./up.sh --force-pull; sleep 1; ./down.sh
./up.sh; sleep 1; ./down.sh
- (force pull new images):
- in background
- start (force pull new images):
./up.sh --force-pull -- --detach
- start :
./up.sh -- --detach
- stop:
./down.sh
- start (force pull new images):
- in foreground
Note: for up.sh
all arguments after --
are passing to docker compose
)
- 52010 pgAdmin
- 52011 Redis Commander
- 52000 PostgreSQL endpoint
postgres://[email protected]:52000/devdb
- 52001 Redis Endpoint
redis://127.0.0.1:52001
- 52003 HTTP Dump
- 12001 EdgeBus Management Endpoint
- 12003 EdgeBus Egress Endpoint
- 12010 EdgeBus Ingress 0
- 12011 EdgeBus Ingress 1
Branch | Description |
---|---|
workspace | Current branch |
docs | Sources of EdgeBus documentation. |
src-dart-console | Dart sources of an Administrator Console Web Application. |
src-typescript-service | TypeScript sources of a Service Application. |
- pgAdmin does not setup servers list if stop initial launch
NEW_BRANCH=...
git worktree add --detach "./${NEW_BRANCH}"
cd "./${NEW_BRANCH}"
git checkout --orphan "${NEW_BRANCH}"
git reset --hard
git commit --allow-empty -m "Initial Commit"
git push origin "${NEW_BRANCH}"
- Cleanup Docker volumes
docker volume prune
- Cleanup Docker all (images, networks, volumes)
docker system prune --all --volumes
docker logs --follow edgebus-local-deployment-edgebus-1