Merge "Force docker format" into stable/stein
This commit is contained in:
commit
7d42075848
|
@ -122,7 +122,10 @@ class BuildahBuilder(base.BaseBuilder):
|
|||
# TODO(emilien): Stop ignoring TLS. The deployer should either secure
|
||||
# the registry or add it to insecure_registries.
|
||||
logfile = container_build_path + '/' + container_name + '-build.log'
|
||||
args = self.buildah_cmd + ['bud', '--tls-verify=False', '--logfile',
|
||||
# TODO(aschultz): drop --format docker when oci format is properly
|
||||
# supported by the undercloud registry
|
||||
args = self.buildah_cmd + ['bud', '--format', 'docker',
|
||||
'--tls-verify=False', '--logfile',
|
||||
logfile, '-t', destination,
|
||||
container_build_path]
|
||||
print("Building %s image with: %s" % (container_name, ' '.join(args)))
|
||||
|
|
|
@ -35,7 +35,8 @@ class TestBuildahBuilder(base.TestCase):
|
|||
dest = '127.0.0.1:8787/master/fedora-binary-fedora-base:latest'
|
||||
container_build_path = WORK_DIR + '/' + 'fedora-base'
|
||||
logfile = '/tmp/kolla/fedora-base/fedora-base-build.log'
|
||||
buildah_cmd_build = ['bud', '--tls-verify=False', '--logfile',
|
||||
buildah_cmd_build = ['bud', '--format', 'docker',
|
||||
'--tls-verify=False', '--logfile',
|
||||
logfile, '-t', dest, container_build_path]
|
||||
args.extend(buildah_cmd_build)
|
||||
bb(WORK_DIR, DEPS).build('fedora-base', container_build_path)
|
||||
|
|
Loading…
Reference in New Issue