This commit is contained in:
Thomas E Lackey 2023-11-07 17:35:42 -06:00
parent c2bbea4c39
commit 5c86efcd8f
3 changed files with 5 additions and 2 deletions

View File

@ -56,12 +56,15 @@ def command(ctx, base_container, source_repo, force_rebuild, extra_build_args):
if not quiet:
print(f'Dev Root is: {dev_root_path}')
# First build the base container.
container_build_env = build_containers.make_container_build_env(dev_root_path, container_build_dir, debug,
force_rebuild, extra_build_args)
build_containers.process_container(base_container, container_build_dir, container_build_env, dev_root_path, quiet,
verbose, dry_run, continue_on_error)
# Now build the target webapp. We use the same build script, but with a different Dockerfile and work dir.
container_build_env["CERC_CONTAINER_BUILD_WORK_DIR"] = os.path.abspath(source_repo)
container_build_env["CERC_CONTAINER_BUILD_DOCKERFILE"] = os.path.join(container_build_dir,
base_container.replace("/", "-"),