Rename peo4c to peo

Renames the Python package, environment variables (PEO4C_* to PEO_*), the
SQL helper schema, image paths and the entrypoint script.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Bart BroereandClaude Opus 5.5 committed 2026-10-14 15:21:42 +02:00
1 parent 7bd044ddb9
commit fd0dda6470
17 files changed
+124 -124

No files matched your search

+22 -22
View File
@@ -1,11 +1,11 @@
# SPDX-FileCopyrightText: 2026 Bart Broere
# SPDX-License-Identifier: GPL-3.0-or-later
# peo4c: neo4j-browser on top of PostgreSQL + Apache AGE.
# peo: neo4j-browser on top of PostgreSQL + Apache AGE.
#
# Stage 1 builds the neo4j-browser static frontend from source.
# Stage 2 is the Apache AGE image (PostgreSQL with the AGE extension) plus the
# peo4c bridge, which speaks the Bolt protocol to the browser and translates
# peo bridge, which speaks the Bolt protocol to the browser and translates
# Cypher into AGE `cypher()` calls, and pgAdmin as a SQL interface.
ARG AGE_IMAGE=docker.io/apache/age:release_PG18_1.8.0
@@ -49,35 +49,35 @@ RUN python3 -m venv /opt/pgadmin \
COPY docker/collect-python-licenses.py /tmp/
COPY docker/licenses/ /tmp/licenses/
RUN /opt/pgadmin/bin/python /tmp/collect-python-licenses.py \
/usr/share/doc/peo4c/pgadmin-python-licenses /tmp/licenses \
/usr/share/doc/peo/pgadmin-python-licenses /tmp/licenses \
&& rm -r /tmp/collect-python-licenses.py /tmp/licenses
COPY LICENSE THIRD_PARTY_NOTICES.md /usr/share/doc/peo4c/
COPY LICENSE THIRD_PARTY_NOTICES.md /usr/share/doc/peo/
COPY --from=browser /src/LICENSE /src/NOTICE.txt /src/LICENSES.txt /neo4j-browser-source.tar.gz \
/usr/share/doc/peo4c/neo4j-browser/
/usr/share/doc/peo/neo4j-browser/
ADD https://raw.githubusercontent.com/apache/age/${AGE_SOURCE_REF}/LICENSE \
https://raw.githubusercontent.com/apache/age/${AGE_SOURCE_REF}/NOTICE \
/usr/share/doc/peo4c/apache-age/
/usr/share/doc/peo/apache-age/
COPY --from=browser /src/dist /opt/peo4c/browser
COPY bridge /opt/peo4c/bridge
COPY --from=browser /src/dist /opt/peo/browser
COPY bridge /opt/peo/bridge
COPY docker/initdb/ /docker-entrypoint-initdb.d/
COPY docker/pgadmin/config_distro.py /opt/peo4c/pgadmin/config_distro.py
COPY docker/peo4c-entrypoint.sh /usr/local/bin/peo4c-entrypoint.sh
COPY docker/pgadmin/config_distro.py /opt/peo/pgadmin/config_distro.py
COPY docker/peo-entrypoint.sh /usr/local/bin/peo-entrypoint.sh
ENV PEO4C_DEFAULT_GRAPH=neo4j \
PEO4C_BROWSER_DIR=/opt/peo4c/browser \
PEO4C_HTTP_PORT=7474 \
PEO4C_BOLT_PORT=7687 \
PEO4C_PG_HOST=127.0.0.1 \
PEO4C_PG_PORT=5432 \
PEO4C_PROPERTY_COLUMNS=true \
PEO4C_PROPERTY_COLUMNS_INTERVAL=5 \
PEO4C_PGADMIN=true \
PEO4C_PGADMIN_PORT=5050 \
CONFIG_DISTRO_FILE_PATH=/opt/peo4c/pgadmin/config_distro.py
ENV PEO_DEFAULT_GRAPH=neo4j \
PEO_BROWSER_DIR=/opt/peo/browser \
PEO_HTTP_PORT=7474 \
PEO_BOLT_PORT=7687 \
PEO_PG_HOST=127.0.0.1 \
PEO_PG_PORT=5432 \
PEO_PROPERTY_COLUMNS=true \
PEO_PROPERTY_COLUMNS_INTERVAL=5 \
PEO_PGADMIN=true \
PEO_PGADMIN_PORT=5050 \
CONFIG_DISTRO_FILE_PATH=/opt/peo/pgadmin/config_distro.py
# 7474: neo4j-browser (HTTP), 7687: Bolt, 5050: pgAdmin, 5432: PostgreSQL
EXPOSE 7474 7687 5050 5432
ENTRYPOINT ["/usr/local/bin/peo4c-entrypoint.sh"]
ENTRYPOINT ["/usr/local/bin/peo-entrypoint.sh"]
CMD ["postgres", "-c", "shared_preload_libraries=age"]