PatersonProjects commented on code in PR #936:
URL: https://github.com/apache/burr/pull/936#discussion_r4212532697
##########
.github/workflows/python-package.yml:
##########
@@ -153,6 +153,17 @@ jobs:
image: redis:7
ports:
- 6379:6379
+ aerospike:
+ image: aerospike/aerospike-server:8.1.2.4
+ ports:
+ - 3000:3000
+ - 3001:3001
+ - 3002:3002
Review Comment:
Dropped 3001 and 3002
##########
examples/integrations/aerospike/README.md:
##########
@@ -0,0 +1,118 @@
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+# Aerospike + Burr
+
+This example extends the Burr simple chatbot with durable state in Aerospike.
The persister saves one immutable checkpoint after every action and reloads the
latest checkpoint when an application with the same identifiers starts again.
+
+## Install dependencies
+
+Python 3.10 or newer is required for the Aerospike integration.
+
+```bash
+pip install "apache-burr[aerospike]" openai
+```
+
+When running from this repository, install the checkout into its virtual
environment instead:
+
+```bash
+uv pip install --python .venv/bin/python -e ".[aerospike]" openai
+```
+
+## Start Aerospike
+
+Start a local Aerospike Community Edition database with Docker:
+
+```bash
+docker run --name burr-aerospike -d \
+ -p 3000:3000 \
+ aerospike/aerospike-server:8.1.2.4
+```
+
+The example uses the default `test` namespace. Aerospike creates the
`burr_state` and `burr_head` sets on the first write.
Review Comment:
Sorry about this one, I've only been running through Docker Desktop where
the command does work by default. Changed README to include burr_apps and to
note the --ulimit as a potentially needed parameter.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]