mirror of
https://github.com/EpicMorg/docker-scripts.git
synced 2025-01-12 22:57:55 +03:00
updated kaniko wrapper; fixed ssl
This commit is contained in:
parent
1e31bdbb06
commit
3a1e4fa96a
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
@ -10,7 +10,7 @@ import logging
|
|||||||
import sys
|
import sys
|
||||||
|
|
||||||
# Script version
|
# Script version
|
||||||
SCRIPT_VERSION = "1.0.0.1"
|
SCRIPT_VERSION = "1.0.1.0"
|
||||||
|
|
||||||
# ASCII art for EpicMorg
|
# ASCII art for EpicMorg
|
||||||
ASCII_ART = r"""
|
ASCII_ART = r"""
|
||||||
@ -107,6 +107,7 @@ def build_with_kaniko(service_name, build_context, dockerfile, image_name, build
|
|||||||
for line in process.stderr:
|
for line in process.stderr:
|
||||||
logging.error(line.strip())
|
logging.error(line.strip())
|
||||||
logging.error(f"Error building {service_name}")
|
logging.error(f"Error building {service_name}")
|
||||||
|
raise Exception(f"Failed to build {service_name}")
|
||||||
|
|
||||||
def show_help():
|
def show_help():
|
||||||
print(ASCII_ART)
|
print(ASCII_ART)
|
||||||
@ -166,6 +167,7 @@ def main():
|
|||||||
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
logging.error(f"Error: Image name {image_name} is used {count} times.")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
try:
|
||||||
with ThreadPoolExecutor() as executor:
|
with ThreadPoolExecutor() as executor:
|
||||||
futures = []
|
futures = []
|
||||||
for service_name, service_data in services.items():
|
for service_name, service_data in services.items():
|
||||||
@ -185,10 +187,10 @@ def main():
|
|||||||
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
futures.append(executor.submit(build_with_kaniko, service_name, build_context, dockerfile, image_name, build_args, kaniko_image, deploy, dry))
|
||||||
|
|
||||||
for future in as_completed(futures):
|
for future in as_completed(futures):
|
||||||
try:
|
|
||||||
future.result()
|
future.result()
|
||||||
except Exception as exc:
|
except Exception as exc:
|
||||||
logging.error(f"Generated an exception: {exc}")
|
logging.error(f"Build failed: {exc}")
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
main()
|
main()
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user