Skip to content
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
104 changes: 104 additions & 0 deletions neo4j-2025.03.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
package:
name: neo4j-2025.03
version: "2025.03.0"
epoch: 0
description:
copyright:
- license: GPL-3.0-or-later
dependencies:
runtime:
- bash
- openjdk-21-jre
provides:
- neo4j=${{package.full-version}}

environment:
contents:
packages:
- bash
- busybox
- ca-certificates-bundle
- curl
- maven
- openjdk-21-default-jdk
- wolfi-base
- wolfi-baselayout

pipeline:
- uses: git-checkout
with:
repository: https://github.com/neo4j/neo4j
tag: ${{package.version}}
expected-commit: 064eeaa9cba2f6cb4c0ded778999962a93777d68

- runs: |
export LANG=en_US.UTF-8
export MAVEN_OPTS="-Xmx2048m"

mvn package -DskipTests=true -T$(nproc)C -q -Doverwrite=true

mkdir -p ${{targets.contextdir}}/var/lib/neo4j
# https://github.com/neo4j/docker-neo4j-publish/blob/b8c0ca2e8dd585e338d74b191a2e370c0da14d92/5.26.0/bullseye/community/Dockerfile#L20
tar --strip-components=1 -xf packaging/standalone/target/neo4j-*.tar.gz -C ${{targets.contextdir}}/var/lib/neo4j

mkdir -p ${{targets.contextdir}}/data
cp -r ${{targets.contextdir}}/var/lib/neo4j/data/* ${{targets.contextdir}}/data
ln -sf /var/lib/neo4j/data ${{targets.contextdir}}/data

mkdir -p ${{targets.contextdir}}/logs
mv ${{targets.contextdir}}/var/lib/neo4j/logs ${{targets.contextdir}}/
ln -sf /var/lib/neo4j/logs ${{targets.contextdir}}/logs

mkdir -p ${{targets.contextdir}}/usr/bin
for i in neo4j neo4j-admin cypher-shell; do
ln -sf /var/lib/neo4j/bin/$i ${{targets.contextdir}}/usr/bin/$i
done

# docker-neo4j-publish repository has a Dockerfile for each version of Neo4j
# so we need to make sure we are using the correct version here and its available in the repository.
# I'm using `${{package.version}}` as the directory name but that doesn't mean that the directory exists because
# the repository might not have the version yet, so, we need to make sure that the directory exists before we bump the version of the package.
subpackages:
- name: ${{package.name}}-docker-publish
description: Docker image for Neo4j
pipeline:
- uses: git-checkout
with:
repository: https://github.com/neo4j/docker-neo4j-publish
branch: master
expected-commit: df252a0df2fdc2acdab1b089bf1e047f365bac41
- working-directory: ${{package.version}}/bullseye/community
runs: |
mkdir -p ${{targets.contextdir}}/startup
cp -r local-package/* ${{targets.contextdir}}/startup/
ls -latr ${{targets.contextdir}}/startup
mkdir -p ${{targets.contextdir}}/var/lib/neo4j/bin
mkdir -p ${{targets.contextdir}}/usr/bin
mv ${{targets.contextdir}}/startup/neo4j-admin-report.sh ${{targets.contextdir}}/var/lib/neo4j/bin/neo4j-admin-report
ln -sf /var/lib/neo4j/bin/neo4j-admin-report ${{targets.contextdir}}/usr/bin/neo4j-admin-report
dependencies:
runtime:
- su-exec
- tini
provides:
- neo4j-docker-publish=${{package.full-version}}

update:
enabled: true
github:
identifier: neo4j/neo4j
use-tag: true
tag-filter: 2025.03.

test:
environment:
contents:
packages:
- openjdk-21-default-jvm
- wait-for-it
pipeline:
- runs: |
neo4j start &
wait-for-it localhost:7474 --timeout=60
neo4j status
neo4j-admin server status
Loading
Loading