aboutsummaryrefslogtreecommitdiff
path: root/releng/__init__.py
diff options
context:
space:
mode:
authorJade Lovelace <lix@jade.fyi>2024-06-09 00:27:06 -0700
committerJade Lovelace <lix@jade.fyi>2024-06-09 20:33:24 -0700
commit9aeb314e6a8276d3bd29f968c2baa44d5d19ca37 (patch)
tree9177ce42c9e62776b0a71ae31830ccb1c79ff05c /releng/__init__.py
parent4392d89eeaf4560bf41e0c914b8f42f2959964d3 (diff)
releng: support multiarch docker images
If we don't want to have separate registry tags by architecture (EWWWW), we need to be able to build multiarch docker images. This is pretty simple, and just requires making a manifest pointing to each of the component images. I was *going* to just do this API prodding with manifest-tool, but it doesn't support putting metadata on the outer manifest, which is actually kind of a problem because it then doesn't render the metadata on github. So I guess we get a simple little containers API implementation that is 90% auth code. Change-Id: I8bdd118d4cbc13b23224f2fb174b232432686bea
Diffstat (limited to 'releng/__init__.py')
-rw-r--r--releng/__init__.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/releng/__init__.py b/releng/__init__.py
index 39d2beb51..fc23c52f3 100644
--- a/releng/__init__.py
+++ b/releng/__init__.py
@@ -2,12 +2,29 @@ from xonsh.main import setup
setup()
del setup
+import logging
+
from . import environment
from . import create_release
from . import keys
from . import version
from . import cli
from . import docker
+from . import docker_assemble
+
+rootLogger = logging.getLogger()
+rootLogger.setLevel(logging.DEBUG)
+log = logging.getLogger(__name__)
+log.setLevel(logging.DEBUG)
+
+fmt = logging.Formatter('{asctime} {levelname} {name}: {message}',
+ datefmt='%b %d %H:%M:%S',
+ style='{')
+
+if not any(isinstance(h, logging.StreamHandler) for h in rootLogger.handlers):
+ hand = logging.StreamHandler()
+ hand.setFormatter(fmt)
+ rootLogger.addHandler(hand)
def reload():
import importlib
@@ -17,3 +34,4 @@ def reload():
importlib.reload(version)
importlib.reload(cli)
importlib.reload(docker)
+ importlib.reload(docker_assemble)