This commit is contained in:
Yatsishin Ilya 2020-08-11 11:35:31 +03:00
parent e3f7fea33a
commit 5d52c306c8

View File

@ -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