Skip to content

Commit

Permalink
feat: upgrade Timescale and Kafka (#1129)
Browse files Browse the repository at this point in the history
  • Loading branch information
bobeal authored Aug 8, 2024
1 parent eb13530 commit 67f638d
Show file tree
Hide file tree
Showing 8 changed files with 11 additions and 24 deletions.
11 changes: 0 additions & 11 deletions config/kafka/update_run.sh

This file was deleted.

8 changes: 3 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
kafka:
image: confluentinc/cp-kafka:7.3.1
image: confluentinc/cp-kafka:7.6.0
container_name: stellio-kafka
hostname: stellio-kafka
ports:
Expand All @@ -18,11 +18,9 @@ services:
KAFKA_INTER_BROKER_LISTENER_NAME: 'PLAINTEXT'
KAFKA_CONTROLLER_LISTENER_NAMES: 'CONTROLLER'
KAFKA_LOG4J_ROOT_LOGLEVEL: INFO
volumes:
- ./config/kafka/update_run.sh:/tmp/update_run.sh
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
CLUSTER_ID: ZGE2MTQ4NDk4NGU3NDE2Mm
postgres:
image: stellio/stellio-timescale-postgis:14-2.11.1-3.3
image: stellio/stellio-timescale-postgis:16-2.16.0-3.3
container_name: stellio-postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
Expand Down
4 changes: 2 additions & 2 deletions search-service/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
kafka:
image: confluentinc/cp-kafka:7.3.1
image: confluentinc/cp-kafka:7.6.0
container_name: stellio-kafka
hostname: stellio-kafka
ports:
Expand All @@ -22,7 +22,7 @@ services:
- ../config/kafka/update_run.sh:/tmp/update_run.sh
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
postgres:
image: stellio/stellio-timescale-postgis:14-2.11.1-3.3
image: stellio/stellio-timescale-postgis:16-2.16.0-3.3
container_name: stellio-postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface WithKafkaContainer {
companion object {

private val kafkaImage: DockerImageName =
DockerImageName.parse("confluentinc/cp-kafka:7.3.1")
DockerImageName.parse("confluentinc/cp-kafka:7.6.0")

private val kafkaContainer = KafkaContainer(kafkaImage).apply {
withReuse(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface WithTimescaleContainer {
private const val DB_PASSWORD = "stellio_search_db_password"

private val timescaleImage: DockerImageName =
DockerImageName.parse("stellio/stellio-timescale-postgis:14-2.11.1-3.3")
DockerImageName.parse("stellio/stellio-timescale-postgis:16-2.16.0-3.3")
.asCompatibleSubstituteFor("postgres")

private val timescaleContainer = GenericContainer<Nothing>(timescaleImage).apply {
Expand Down
4 changes: 2 additions & 2 deletions subscription-service/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: '3.9'
services:
kafka:
image: confluentinc/cp-kafka:7.3.1
image: confluentinc/cp-kafka:7.6.0
container_name: stellio-kafka
hostname: stellio-kafka
ports:
Expand All @@ -22,7 +22,7 @@ services:
- ../config/kafka/update_run.sh:/tmp/update_run.sh
command: "bash -c 'if [ ! -f /tmp/update_run.sh ]; then echo \"ERROR: Did you forget the update_run.sh file that came with this docker-compose.yml file?\" && exit 1 ; else /tmp/update_run.sh && /etc/confluent/docker/run ; fi'"
postgres:
image: stellio/stellio-timescale-postgis:14-2.11.1-3.3
image: stellio/stellio-timescale-postgis:16-2.16.0-3.3
container_name: stellio-postgres
environment:
- POSTGRES_USER=${POSTGRES_USER}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface WithKafkaContainer {
companion object {

private val kafkaImage: DockerImageName =
DockerImageName.parse("confluentinc/cp-kafka:7.3.1")
DockerImageName.parse("confluentinc/cp-kafka:7.6.0")

private val kafkaContainer = KafkaContainer(kafkaImage).apply {
withReuse(true)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ interface WithTimescaleContainer {
private const val DB_PASSWORD = "stellio_subscription_db_password"

private val timescaleImage: DockerImageName =
DockerImageName.parse("stellio/stellio-timescale-postgis:14-2.11.1-3.3")
DockerImageName.parse("stellio/stellio-timescale-postgis:16-2.16.0-3.3")
.asCompatibleSubstituteFor("postgres")

private val timescaleContainer = GenericContainer<Nothing>(timescaleImage).apply {
Expand Down

0 comments on commit 67f638d

Please sign in to comment.