Skip to content

Commit

Permalink
add docker config for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Jesse Schmidt committed Jun 10, 2024
1 parent af6c217 commit 81290cb
Show file tree
Hide file tree
Showing 4 changed files with 179 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/docker/*
/docker/config/features.conf
/bin/*
embed_*.go
/tmp
Expand Down
73 changes: 73 additions & 0 deletions docker/config/aerospike-proximus.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
# Change the configuration for your use case.
cluster:
# Custom node-id. It will be auto-generated if not specified.
# node-id: a1

# Unique identifier for this cluster.
cluster-name: prism-image-search

# The Proximus service listening ports, TLS and network interface.
service:
ports:
10000: {}
advertised-listeners:
default:
address: 127.0.0.1
port: 10000

# Management API listening ports, TLS and network interface.
manage:
ports:
5040: {}

# Intra cluster interconnect listening ports, TLS and network interface.
interconnect:
ports:
5001: {}

#heartbeat:
# seeds:
# - address: localhost
# port: 6001

# Target Aerospike cluster
aerospike:
seeds:
- aerospike:
port: 3000

# File based credentials store only if security should be enabled.
#security:
# credentials-store:
# type: file
# credentials-file: samples/credentials.yml
# auth-token:
# private-key: samples/auth/private_key.pem
# public-key: samples/auth/public_key.pem

# Vault based credentials store only if security should be enabled.
#security:
# credentials-store:
# type: vault
# url: https://vault:8200
# secrets-path: /secret/aerospike/aerodb1
# tls:
# key-store:
# store-type: PEM
# store-file: key.pem
# store-password-file: keypass.txt # Password protecting key.pem.
# certificate-chain-files: certchain.pem
# trust-store:
# store-type: PEM
# certificate-files: cacert.pem
# auth-token:
# private-key: samples/auth/private_key.pem
# public-key: samples/auth/public_key.pem

# The logging properties.
logging:
#format: json
#file: /var/log/aerospike-proximus/aerospike-proximus.log
enable-console-logging: true
levels:
metrics-ticker: off
82 changes: 82 additions & 0 deletions docker/config/aerospike.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
# Aerospike database configuration file for use with systemd.

service {
cluster-name prism-demo
proto-fd-max 15000
}


logging {
file /var/log/aerospike/aerospike.log {
context any info
}

# Send log messages to stdout
console {
context any info
context query critical
}
}

network {
service {
address any
port 3000
}

heartbeat {
mode multicast
multicast-group 239.1.99.222
port 9918

# To use unicast-mesh heartbeats, remove the 3 lines above, and see
# aerospike_mesh.conf for alternative.

interval 150
timeout 10
}

fabric {
port 3001
}

info {
port 3003
}
}

namespace test {
replication-factor 1
nsup-period 60

storage-engine memory {
data-size 1G
}
}

namespace bar {
replication-factor 1
nsup-period 60

storage-engine memory {
data-size 1G
}
}

namespace proximus-meta {
replication-factor 1
nsup-period 100

storage-engine memory {
data-size 1G
}

# To use file storage backing, comment out the line above and use the
# following lines instead.
# storage-engine device {
# file /opt/aerospike/data/bar.dat
# filesize 16G
# data-in-memory true # Store data in memory in addition to file.
# }
}

23 changes: 23 additions & 0 deletions docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
services:
aerospike:
image: aerospike/aerospike-server-enterprise:7.0.0.2
ports:
- "3000:3000"
networks:
- avs-demo
volumes:
- ./config:/opt/aerospike/etc/aerospike
command:
- "--config-file"
- "/opt/aerospike/etc/aerospike/aerospike.conf"
avs:
image: aerospike/aerospike-proximus:0.4.0
ports:
- "10000:10000"
networks:
- avs-demo
volumes:
- ./config:/etc/aerospike-proximus

networks:
avs-demo: {}

0 comments on commit 81290cb

Please sign in to comment.