Skip to content

Commit

Permalink
Merge pull request #118 from stardog-union/develop
Browse files Browse the repository at this point in the history
release 0.12.0
  • Loading branch information
scardena authored Oct 7, 2022
2 parents 7540c47 + c22f94e commit f51bfef
Show file tree
Hide file tree
Showing 28 changed files with 294,430 additions and 91 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ STARDOG_USER=admin
STARDOG_PASS=admin

# Zookeeper version tag
ZOO_TAG=3.4
ZOO_TAG=3.5.9

# HAProxy
HAPROXY_TAG=latest
Expand Down
4 changes: 3 additions & 1 deletion docker-compose.cluster.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@
version: "3.3"
services:
zoo1:
image: zookeeper:${ZOO_TAG}
image: bitnami/zookeeper:${ZOO_TAG}
container_name: zkn1
environment:
ZOO_MY_ID: 1
ZOO_SERVERS: server.1=0.0.0.0:2888:3888
ALLOW_ANONYMOUS_LOGIN: "yes"

sd1:
build:
Expand Down Expand Up @@ -98,6 +99,7 @@ services:
- STARDOG_HOSTNAME_NODE_1=${STARDOG_HOSTNAME_NODE_1}
- STARDOG_HOSTNAME_CACHE=${STARDOG_HOSTNAME_CACHE}
- STARDOG_HOSTNAME_STANDBY=${STARDOG_HOSTNAME_STANDBY}
- STARDOG_ENDPOINT=http://${STARDOG_LB}:5820
- STARDOG_LB=${STARDOG_LB}
- STARDOG_USER=${STARDOG_USER}
- STARDOG_PASS=${STARDOG_PASS}
Expand Down
1 change: 0 additions & 1 deletion dockerfiles/dockerfile-stardog
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-${
&& unzip mysql-connector-java-${CONNECTOR_VERSION}.zip \
&& mv mysql-connector-java-${CONNECTOR_VERSION}/mysql-connector-java-${CONNECTOR_VERSION}.jar /tmp/mysql-connector-java.jar


FROM stardog/stardog

ARG NODE_TYPE
Expand Down
5 changes: 2 additions & 3 deletions dockerfiles/stardog.node.properties
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@ pack.enabled=true
#pack.node.address=196.69.68.4
# the connection string for ZooKeeper where cluster state is stored
pack.zookeeper.address=zoo1:2181

# would need to change for production
pack.zookeeper.auth=admin:admin
# So it doesn't conflict with other tests.
catalog.auto.create.db=false
2 changes: 1 addition & 1 deletion dockerfiles/stardog.single.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
# Empty as we currently don't need specific properties for single node testing
# we still need an existing property file so that the Dockerfile doesn't break
# we still need an existing property file so that the Dockerfile doesn't break
7 changes: 4 additions & 3 deletions dockerfiles/stardog.standby.properties
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,11 @@ pack.enabled=true
# the connection string for ZooKeeper where cluster state is stored
pack.zookeeper.address=zoo1:2181

# would need to change for production
pack.zookeeper.auth=admin:admin

# Make the node a standby node
# https://docs.stardog.com/cluster/operating-the-cluster/standby-nodes
pack.standby=true
pack.standby.node.sync.interval=5m

# otherwise we try to join a cluster with databases into an empty cluster, which turns into an error.
# an alternative is to start the server with --force-join.
catalog.auto.create.db=false
1 change: 1 addition & 0 deletions dockerfiles/start-standby.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ function wait_for_cluster_ready(){
)

}

wait_for_cluster_ready
echo "Main cluster ready, starting standby node"
/var/start.sh
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pystardog",
version="0.11.1",
version="0.12.0",
author="Stardog Union",
author_email="[email protected]",
description="Use Stardog with Python!",
Expand Down
Loading

0 comments on commit f51bfef

Please sign in to comment.