Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(): support graph designer #151

Merged
merged 3 commits into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .devcontainer/devcontainer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"workspaceFolder": "/app",
// Use 'forwardPorts' to make a list of ports inside the container available locally.
"forwardPorts": [
8080
8080,
49483
],
// Features to add to the dev container. More info: https://containers.dev/features.
"features": {
Expand Down
2 changes: 2 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@

# Log path
LOG_PATH=/tmp
# Graph designer server port
GRAPH_DESIGNER_SERVER_PORT=49483
# Server port
SERVER_PORT=8080
# Maximum number of workers
Expand Down
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ PROJECT_NAME := astra
PROJECT_VERSION ?= "0.1."$(shell date -u +'%Y%m%d%H')
REGISTRY ?= agoraio/

.PHONY: build build-agents build-playground build-server clean clean-agents docker-build-playground docker-build-server run-server
.PHONY: build build-agents build-playground build-server clean clean-agents docker-build-playground docker-build-server run-gd-server run-server

build: build-agents build-server

Expand Down Expand Up @@ -38,6 +38,11 @@ docker-build-server:
docker build -t $(REGISTRY)$(PROJECT_NAME)_agents_server:$(PROJECT_VERSION) --platform linux/amd64 -f Dockerfile .
@echo ">> done"

run-gd-server:
@echo ">> run graph designer server"
cd agents && arpm dev-server
@echo ">> done"

run-server:
@echo ">> run server"
server/bin/api
Expand Down
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ services:
stdin_open: true
restart: always
ports:
- "${GRAPH_DESIGNER_SERVER_PORT}:${GRAPH_DESIGNER_SERVER_PORT}"
- "${SERVER_PORT}:${SERVER_PORT}"
volumes:
- ./:/app
Expand Down Expand Up @@ -38,3 +39,9 @@ services:
restart: always
ports:
- "3000:3000"
astra_graph_designer:
image: agoraio/astra_graph_designer:latest
container_name: astra_graph_designer
restart: always
ports:
- "3001:3000"