mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
fix
This commit is contained in:
parent
e3f7fea33a
commit
5d52c306c8
@ -141,20 +141,21 @@ if __name__ == "__main__":
|
||||
|
||||
env_tags = ""
|
||||
|
||||
for img_tag in args.docker_compose_images_tags:
|
||||
[image, tag] = img_tag.split(":")
|
||||
if image == "yandex/clickhouse-mysql-golang-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_GOLANG_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-java-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_JAVA_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-js-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_JS_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-php-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_PHP_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-postgresql-java-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_POSTGRESQL_JAVA_CLIENT_TAG", tag)
|
||||
else:
|
||||
raise Exception("Unknown image {}".format(image))
|
||||
if args.docker_compose_images_tags in not None:
|
||||
for img_tag in args.docker_compose_images_tags:
|
||||
[image, tag] = img_tag.split(":")
|
||||
if image == "yandex/clickhouse-mysql-golang-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_GOLANG_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-java-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_JAVA_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-js-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_JS_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-mysql-php-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_MYSQL_PHP_CLIENT_TAG", tag)
|
||||
elif image == "yandex/clickhouse-postgresql-java-client":
|
||||
env_tags += "-e {}={} ".format("DOCKER_POSTGRESQL_JAVA_CLIENT_TAG", tag)
|
||||
else:
|
||||
raise Exception("Unknown image {}".format(image))
|
||||
|
||||
# create named volume which will be used inside to store images and other docker related files,
|
||||
# to avoid redownloading it every time
|
||||
|
Loading…
Reference in New Issue
Block a user