Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

91 - bundle image overrides #92

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading