mirror of
https://github.com/apache/doris.git
synced 2026-11-04 07:31:17 +00:00
[fix](docker) allow overriding fdb image (#63393)
Add an --fdb-image option to doris-compose up, with DORIS_FDB_IMAGE as the environment-variable default. This lets docker regression cases use a locally derived FoundationDB image while preserving the existing --fdb-version based default image when no override is provided.
This commit is contained in:
1 parent
7ac81600cd
commit
0338e0efee
1 file changed
+8
-2
@@ -536,6 +536,11 @@ class UpCommand(Command):
|
||||
type=str,
|
||||
default="7.3.69",
|
||||
help="fdb image version. Only use in cloud cluster.")
|
||||
parser.add_argument(
|
||||
"--fdb-image",
|
||||
type=str,
|
||||
default=os.environ.get("DORIS_FDB_IMAGE", ""),
|
||||
help="Override fdb image. Only use in cloud cluster.")
|
||||
|
||||
parser.add_argument(
|
||||
"--tde-ak",
|
||||
@@ -738,9 +743,10 @@ class UpCommand(Command):
|
||||
if for_all:
|
||||
cluster.set_image(args.IMAGE)
|
||||
|
||||
fdb_image = args.fdb_image or "foundationdb/foundationdb:{}".format(
|
||||
args.fdb_version)
|
||||
for node in cluster.get_all_nodes(CLUSTER.Node.TYPE_FDB):
|
||||
node.set_image("foundationdb/foundationdb:{}".format(
|
||||
args.fdb_version))
|
||||
node.set_image(fdb_image)
|
||||
|
||||
cluster.save()
|
||||
|
||||
|
||||
Reference in new issue
Block a user