mirror of
https://gitea.com/mcereda/oam.git
synced 2026-02-08 21:34:25 +00:00
fix(redash/upgrade): variables used by docker need to be exported
This commit is contained in:
@@ -62,6 +62,7 @@ REDASH_IMAGE="$(\
|
||||
| xargs -oI '%%' aws ecs describe-tasks --cluster 'someCluster' --task '%%' --output 'text' \
|
||||
--query 'tasks[].containers[?name==`server`].image' \
|
||||
)"
|
||||
export \
|
||||
REDASH_DATABASE_URL="$(\
|
||||
aws rds describe-db-instances --db-instance-identifier 'redash' --output 'text' \
|
||||
--query '
|
||||
@@ -71,14 +72,14 @@ REDASH_DATABASE_URL="$(\
|
||||
DBName || `postgres`
|
||||
])
|
||||
' \
|
||||
)"
|
||||
)" \
|
||||
REDASH_REDIS_URL="$(\
|
||||
aws elasticache describe-replication-groups --replication-group-id 'redash' --output 'text' \
|
||||
--query '
|
||||
ReplicationGroups[].NodeGroups[].PrimaryEndpoint[]
|
||||
.join(``,[`redis://`,Address,`:`,to_string(Port),`/0`])
|
||||
.join(``,[`redis://`,Address,`:`,to_string(Port)])
|
||||
' \
|
||||
)"
|
||||
)" \
|
||||
REDASH_COOKIE_SECRET="aa…Wd"
|
||||
docker run --rm --name 'redash-db-migrations' --platform 'linux/amd64' --dns '172.31.0.2' \
|
||||
--env 'REDASH_COOKIE_SECRET' --env 'REDASH_DATABASE_URL' --env 'REDASH_REDIS_URL' \
|
||||
|
||||
Reference in New Issue
Block a user