-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
131 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,8 @@ | ||
CLICKHOUSE_IMAGE=clickhouse/clickhouse-server:23.8.2.7 | ||
POSTGRES_IMAGE=postgres:15.5 | ||
NGINX_IMAGE=nginx:1.24.0 | ||
INFINIMETRICS_IMAGE=infinidat/infinimetrics:7.0.0 | ||
CLICKHOUSE_IMAGE=clickhouse/clickhouse-server:23.8.16 | ||
POSTGRES_IMAGE=postgres:15.8 | ||
NGINX_IMAGE=nginx:1.26.1 | ||
BASE_PYTHON_IMAGE=python:3.11-slim | ||
INFINIMETRICS_IMAGE=git.infinidat.com:4567/host-internal/infinimetrics/infinimetrics/master:7.0.10 | ||
POSTGRES_USER=infinimetrics | ||
POSTGRES_PASSWORD=infinimetrics | ||
PLATFORM_NAME=self-hosted |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
listen_addresses = '*' | ||
port = 5432 | ||
# For non-container environments (s.t RHEL), the following settings are found | ||
# here: src/infinimetrics/scripts/database_config.py | ||
# 256MB CONFIG FILE | ||
max_connections = 300 | ||
shared_buffers = 80MB | ||
effective_cache_size = 192MB | ||
work_mem = 327kB | ||
maintenance_work_mem = 16MB | ||
checkpoint_completion_target = 0.7 | ||
wal_buffers = 1966kB | ||
default_statistics_target = 100 | ||
ssl = false | ||
min_wal_size = 512MB | ||
max_wal_size = 1536MB |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
*.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
# Source the images from variables | ||
. .env | ||
|
||
OFFLINE_TAR_ARTIFACT="./docker/offline/images.tar.gz" | ||
|
||
echo "INFO: Images to be loaded:" | ||
echo | ||
echo "CLICKHOUSE_IMAGE = ${CLICKHOUSE_IMAGE}" | ||
echo "POSTGRES_IMAGE = ${CLICKHOUSE_IMAGE}" | ||
echo "NGINX_IMAGE = ${NGINX_IMAGE}" | ||
echo "INFINIMETRICS_IMAGE = ${INFINIMETRICS_IMAGE}" | ||
echo | ||
|
||
echo "INFO: starting loading..." | ||
|
||
docker pull --platform linux/amd64 "$INFINIMETRICS_IMAGE" | ||
docker pull --platform linux/amd64 "$POSTGRES_IMAGE" | ||
docker pull --platform linux/amd64 "$CLICKHOUSE_IMAGE" | ||
docker pull --platform linux/amd64 "$NGINX_IMAGE" | ||
|
||
docker save "$POSTGRES_IMAGE" "$CLICKHOUSE_IMAGE" "$NGINX_IMAGE" "$INFINIMETRICS_IMAGE" | gzip > $OFFLINE_TAR_ARTIFACT | ||
|
||
echo "INFO: done." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
#!/usr/bin/env bash | ||
set -e | ||
|
||
verify_image() { | ||
docker image inspect "$1" >/dev/null 2>&1; | ||
} | ||
|
||
OFFLINE_TAR_ARTIFACT="./docker/offline/images.tar.gz" | ||
|
||
# Verify minimum docker requirements | ||
source "./install/check-min-req.sh" | ||
|
||
# Source the images from variables | ||
. .env | ||
|
||
echo "INFO: Images to be loaded:" | ||
echo | ||
echo "CLICKHOUSE_IMAGE = ${CLICKHOUSE_IMAGE}" | ||
echo "POSTGRES_IMAGE = ${CLICKHOUSE_IMAGE}" | ||
echo "NGINX_IMAGE = ${NGINX_IMAGE}" | ||
echo "INFINIMETRICS_IMAGE = ${INFINIMETRICS_IMAGE}" | ||
echo | ||
|
||
echo "INFO: starting loading..." | ||
|
||
docker load < $OFFLINE_TAR_ARTIFACT | ||
|
||
echo "INFO: Verifying loaded images" | ||
|
||
if ! verify_image "$CLICKHOUSE_IMAGE"; then | ||
echo "$CLICKHOUSE_IMAGE wasn't loaded" | ||
exit 1 | ||
fi | ||
|
||
if ! verify_image "$POSTGRES_IMAGE"; then | ||
echo "$POSTGRES_IMAGE wasn't loaded" | ||
exit 1 | ||
fi | ||
|
||
if ! verify_image "$NGINX_IMAGE"; then | ||
echo "$NGINX_IMAGE wasn't loaded" | ||
exit 1 | ||
fi | ||
|
||
if ! verify_image "$INFINIMETRICS_IMAGE"; then | ||
echo "$INFINIMETRICS_IMAGE wasn't loaded" | ||
exit 1 | ||
fi | ||
|
||
echo "INFO: Loaded all the images successfully" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters