Compare commits
2 commits
main
...
installati
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e0f81076a2 | ||
|
|
9e23c0ba3b |
2 changed files with 12 additions and 10 deletions
|
|
@ -2,6 +2,7 @@
|
||||||
|
|
||||||
set -x
|
set -x
|
||||||
cd $(dirname $0)
|
cd $(dirname $0)
|
||||||
|
sleep 100000
|
||||||
|
|
||||||
is_migrate=$1
|
is_migrate=$1
|
||||||
|
|
||||||
|
|
@ -37,16 +38,16 @@ function migration() {
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
postgresql)
|
postgresql)
|
||||||
/bin/bash postgresql.sh migrate $joined_migration_versions
|
/bin/bash -x postgresql.sh migrate $joined_migration_versions
|
||||||
;;
|
;;
|
||||||
minio)
|
minio)
|
||||||
/bin/bash minio.sh migrate $joined_migration_versions
|
/bin/bash -x minio.sh migrate $joined_migration_versions
|
||||||
;;
|
;;
|
||||||
clickhouse)
|
clickhouse)
|
||||||
/bin/bash clickhouse.sh migrate $joined_migration_versions
|
/bin/bash -x clickhouse.sh migrate $joined_migration_versions
|
||||||
;;
|
;;
|
||||||
kafka)
|
kafka)
|
||||||
/bin/bash kafka.sh migrate $joined_migration_versions
|
/bin/bash -x kafka.sh migrate $joined_migration_versions
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown operation for db migration; exiting."
|
echo "Unknown operation for db migration; exiting."
|
||||||
|
|
@ -58,16 +59,16 @@ function migration() {
|
||||||
function init(){
|
function init(){
|
||||||
case $1 in
|
case $1 in
|
||||||
postgresql)
|
postgresql)
|
||||||
/bin/bash postgresql.sh init
|
/bin/bash -x postgresql.sh init
|
||||||
;;
|
;;
|
||||||
minio)
|
minio)
|
||||||
/bin/bash minio.sh migrate $migration_versions
|
/bin/bash -x minio.sh migrate $migration_versions
|
||||||
;;
|
;;
|
||||||
clickhouse)
|
clickhouse)
|
||||||
/bin/bash clickhouse.sh init
|
/bin/bash -x clickhouse.sh init
|
||||||
;;
|
;;
|
||||||
kafka)
|
kafka)
|
||||||
/bin/bash kafka.sh init
|
/bin/bash -x kafka.sh init
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
echo "Unknown operation for db init; exiting."
|
echo "Unknown operation for db init; exiting."
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
set -e
|
set -x
|
||||||
|
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
|
|
@ -35,7 +35,8 @@ mc policy set download minio/frontend
|
||||||
mc policy set download minio/sessions-assets
|
mc policy set download minio/sessions-assets
|
||||||
mc policy set download minio/static
|
mc policy set download minio/static
|
||||||
|
|
||||||
curl -L https://github.com/openreplay/openreplay/releases/download/${CHART_APP_VERSION}/frontend.tar.gz -O
|
echo curl -L https://github.com/openreplay/openreplay/releases/download/v${CHART_APP_VERSION}/frontend.tar.gz -O
|
||||||
|
curl -L https://github.com/openreplay/openreplay/releases/download/v${CHART_APP_VERSION}/frontend.tar.gz -O
|
||||||
tar -xf frontend.tar.gz
|
tar -xf frontend.tar.gz
|
||||||
mc cp --recursive frontend/ minio/frontend/
|
mc cp --recursive frontend/ minio/frontend/
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue