Repository navigation
Rebuild phoenix and redis-commander ourselves #471
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,9 @@ | ||
| # we have our own image for phoenix because the upstream one has CVEs in it that our CVE scanner picks up | ||
| FROM fedora:44 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| RUN dnf install -y python3-pip python3-numpy python3-scipy \ | ||
|
TomasTomecek marked this conversation as resolved.
Resolved
|
||
| && dnf clean all \ | ||
| && pip3 install --no-cache-dir arize-phoenix \ | ||
| && useradd -u 1001 -g 0 -m -s /sbin/nologin phoenix | ||
| USER 1001 | ||
| EXPOSE 6006 4317 | ||
|
TomasTomecek marked this conversation as resolved.
Resolved
|
||
| CMD ["phoenix", "serve"] | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,13 @@ | ||
| FROM fedora:44 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| ENV NODE_ENV=production | ||
|
|
||
| # the tilde means to update to latest patch releases | ||
| RUN dnf install -y nodejs npm \ | ||
| && dnf clean all \ | ||
| && npm install -g redis-commander@~0.9.0 \ | ||
| && npm cache clean --force \ | ||
| && useradd -u 1001 -g 0 -m -s /sbin/nologin rediscommander | ||
|
|
||
| USER 1001 | ||
| EXPOSE 8081 | ||
| CMD exec redis-commander --redis-host $REDIS_HOST --redis-port $REDIS_PORT | ||
|
TomasTomecek marked this conversation as resolved.
Resolved
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -11,13 +11,27 @@ COMPOSE ?= $(shell if podman compose ls >/dev/null 2>&1; then echo "podman compo | |
| COMPOSE_AGENTS=$(COMPOSE) -f $(COMPOSE_FILE) --profile=agents | ||
| COMPOSE_SUPERVISOR=$(COMPOSE) -f $(COMPOSE_FILE) --profile=supervisor | ||
|
|
||
| # Extract container tool (podman or docker) from COMPOSE | ||
| CONTAINER_TOOL ?= $(shell command -v podman >/dev/null 2>&1 && echo "podman" || echo "docker") | ||
| REGISTRY ?= quay.io/jotnar | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
|
|
||
| .PHONY: build | ||
| build: | ||
| if [ -f .secrets/build.env ]; then \ | ||
| set -a && . ./.secrets/build.env && set +a; \ | ||
| fi && \ | ||
| $(COMPOSE) -f $(COMPOSE_FILE) --profile=agents --profile=supervisor build | ||
|
|
||
| .PHONY: push | ||
| push: | ||
| @echo "Pushing images to $(REGISTRY)..." | ||
| $(CONTAINER_TOOL) push $(REGISTRY)/phoenix:latest | ||
| $(CONTAINER_TOOL) push $(REGISTRY)/redis-commander:latest | ||
| @echo "All images pushed successfully!" | ||
|
|
||
| .PHONY: build-and-push | ||
| build-and-push: build push | ||
|
|
||
| .PHONY: run-beeai-bash | ||
| run-beeai-bash: | ||
| $(COMPOSE_AGENTS) run --rm triage-agent /bin/bash | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -122,7 +122,10 @@ services: | |
| profiles: ["agents", "supervisor", "e2e-test"] | ||
|
|
||
| phoenix: | ||
| image: docker.io/arizephoenix/phoenix:version-11.6.2 | ||
| image: quay.io/jotnar/phoenix:latest | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| build: | ||
| context: . | ||
| dockerfile: Containerfile.phoenix | ||
| ports: | ||
| - "0.0.0.0:6006:6006" | ||
| environment: | ||
|
|
@@ -133,9 +136,13 @@ services: | |
| profiles: ["agents", "supervisor", "e2e-test"] | ||
|
|
||
| redis-commander: | ||
| image: ghcr.io/joeferner/redis-commander:0.9.0 | ||
| image: quay.io/jotnar/redis-commander | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
TomasTomecek marked this conversation as resolved.
Resolved
|
||
| build: | ||
| context: . | ||
| dockerfile: Containerfile.redis-commander | ||
| environment: | ||
| - REDIS_HOSTS=local:valkey:6379 | ||
| - REDIS_HOST=valkey | ||
| - REDIS_PORT=6379 | ||
| ports: | ||
| - "8081:8081" | ||
| depends_on: | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fedora 44 is not yet a stable release (Fedora 41 is the current stable). Using an unreleased or rawhide version can lead to unpredictable build failures or unstable dependencies. It is recommended to use a stable version like
41.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is now