Skip to content

Commit

Permalink
Add bundle_image overrides
Browse files Browse the repository at this point in the history
  • Loading branch information
EdwinWiseOne committed Aug 9, 2024
1 parent 9071791 commit cbdae5e
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 30 deletions.
15 changes: 9 additions & 6 deletions Minimal/ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def cli(ctx):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--rebuild-zbundle", default=False, is_flag=True)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def build(config, rebuild_zbundle, verbose):
def build(config, bundle_image, rebuild_zbundle, verbose):
"""Build the Docker image"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]
app_deps = config["app_deps"]

Expand Down Expand Up @@ -76,13 +77,14 @@ def build(config, rebuild_zbundle, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def run(config, verbose):
def run(config, bundle_image, verbose):
"""Run the Docker image for testing"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
container_name = config["image_name"]
version = config["app_version"]

Expand All @@ -101,13 +103,14 @@ def run(config, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def publish(config, verbose):
def publish(config, bundle_image, verbose):
"""Publish the Docker image for use with Edge"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]

cmd = ["docker", "push", f"{bundle_image}:{version}"]
Expand Down
15 changes: 9 additions & 6 deletions Panel/ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def cli(ctx):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--rebuild-zbundle", default=False, is_flag=True)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def build(config, rebuild_zbundle, verbose):
def build(config, bundle_image, rebuild_zbundle, verbose):
"""Build the Docker image"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]
app_deps = config["app_deps"]

Expand Down Expand Up @@ -76,13 +77,14 @@ def build(config, rebuild_zbundle, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def run(config, verbose):
def run(config, bundle_image, verbose):
"""Run the Docker image for testing"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
container_name = config["image_name"]
version = config["app_version"]

Expand All @@ -101,13 +103,14 @@ def run(config, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def publish(config, verbose):
def publish(config, bundle_image, verbose):
"""Publish the Docker image for use with Edge"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]

cmd = ["docker", "push", f"{bundle_image}:{version}"]
Expand Down
15 changes: 9 additions & 6 deletions Plotly Dash/ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def cli(ctx):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--rebuild-zbundle", default=False, is_flag=True)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def build(config, rebuild_zbundle, verbose):
def build(config, bundle_image, rebuild_zbundle, verbose):
"""Build the Docker image"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]
app_deps = config["app_deps"]

Expand Down Expand Up @@ -76,13 +77,14 @@ def build(config, rebuild_zbundle, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def run(config, verbose):
def run(config, bundle_image, verbose):
"""Run the Docker image for testing"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
container_name = config["image_name"]
version = config["app_version"]

Expand All @@ -101,13 +103,14 @@ def run(config, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def publish(config, verbose):
def publish(config, bundle_image, verbose):
"""Publish the Docker image for use with Edge"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]

cmd = ["docker", "push", f"{bundle_image}:{version}"]
Expand Down
15 changes: 9 additions & 6 deletions React/ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def cli(ctx):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--rebuild-zbundle", default=False, is_flag=True)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def build(config, rebuild_zbundle, verbose):
def build(config, bundle_image, rebuild_zbundle, verbose):
"""Build the Docker image"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]
app_deps = config["app_deps"]

Expand Down Expand Up @@ -81,13 +82,14 @@ def build(config, rebuild_zbundle, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def run(config, verbose):
def run(config, bundle_image, verbose):
"""Run the Docker image for testing"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
container_name = config["image_name"]
version = config["app_version"]

Expand All @@ -106,13 +108,14 @@ def run(config, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def publish(config, verbose):
def publish(config, bundle_image, verbose):
"""Publish the Docker image for use with Edge"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]

cmd = ["docker", "push", f"{bundle_image}:{version}"]
Expand Down
15 changes: 9 additions & 6 deletions Streamlit/ci/__main__.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,15 @@ def cli(ctx):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--rebuild-zbundle", default=False, is_flag=True)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def build(config, rebuild_zbundle, verbose):
def build(config, bundle_image, rebuild_zbundle, verbose):
"""Build the Docker image"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]
app_deps = config["app_deps"]

Expand Down Expand Up @@ -76,13 +77,14 @@ def build(config, rebuild_zbundle, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def run(config, verbose):
def run(config, bundle_image, verbose):
"""Run the Docker image for testing"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
container_name = config["image_name"]
version = config["app_version"]

Expand All @@ -101,13 +103,14 @@ def run(config, verbose):


@cli.command()
@click.option("--bundle-image", default=None)
@click.option("--verbose", default=False, is_flag=True)
@click.pass_obj
def publish(config, verbose):
def publish(config, bundle_image, verbose):
"""Publish the Docker image for use with Edge"""

# Configuration details
bundle_image = _bundle_image(config)
bundle_image = bundle_image or _bundle_image(config)
version = config["app_version"]

cmd = ["docker", "push", f"{bundle_image}:{version}"]
Expand Down

0 comments on commit cbdae5e

Please sign in to comment.