mirror of
https://github.com/penpot/penpot.git
synced 2026-05-23 00:43:41 +00:00
✨ Add Serena update mechanism for agentic devenv
Add SERENA_UPDATE_VERSION env var (in devenv docker-compose.yml) to dynamically update Serena on agentic devenv without requiring an image rebuild. Apply for update to v1.5.0 (also changing initial installation in Dockerfile to this version).
This commit is contained in:
parent
2c453e4a00
commit
c7a4532838
@ -190,7 +190,7 @@ ENV CLJKONDO_VERSION=2026.04.15 \
|
||||
UV_TOOL_DIR=/opt/uv/tools \
|
||||
UV_TOOL_BIN_DIR=/opt/utils/bin \
|
||||
UV_PYTHON_INSTALL_DIR=/opt/uv/python \
|
||||
SERENA_VERSION=v1.3.0
|
||||
SERENA_VERSION=1.5.0
|
||||
|
||||
RUN set -ex; \
|
||||
ARCH="$(dpkg --print-architecture)"; \
|
||||
|
||||
@ -87,6 +87,10 @@ services:
|
||||
- PENPOT_LDAP_ATTRS_FULLNAME=cn
|
||||
- PENPOT_LDAP_ATTRS_PHOTO=jpegPhoto
|
||||
|
||||
# agentic devenv
|
||||
# Serena update: set to a commit/tag to update Serena on startup, leave empty to skip update and use the version in the image
|
||||
- SERENA_UPDATE_VERSION=1.5.0
|
||||
|
||||
networks:
|
||||
default:
|
||||
aliases:
|
||||
|
||||
@ -54,6 +54,10 @@ if echo "$PENPOT_FLAGS" | grep -q "enable-mcp"; then
|
||||
fi
|
||||
|
||||
if [ "${SERENA_ENABLED:-false}" = "true" ]; then
|
||||
if [ -n "${SERENA_UPDATE_VERSION}" ]; then
|
||||
# update Serena (use sudo since the initial Serena installation is global; see Dockerfile)
|
||||
sudo -E uv tool install -p 3.13 serena-agent@${SERENA_UPDATE_VERSION} --prerelease=allow
|
||||
fi
|
||||
tmux new-window -t penpot:5 -n 'serena'
|
||||
tmux select-window -t penpot:5
|
||||
tmux send-keys -t penpot "serena start-mcp-server --transport streamable-http --port 14281 --project penpot --context ${SERENA_CONTEXT} --host 0.0.0.0" enter
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user