Skip to content

Commit

Permalink
REV: Remove Cloud Run deployer and associated CLI command
Browse files Browse the repository at this point in the history
BREAKING CHANGE: Use terraform to create the Google Cloud infrastructure needed and the Octue GitHub actions and workflows to set up automatic deployment to Cloud Run.
  • Loading branch information
cortadocodes committed Mar 23, 2023
1 parent 55eadcc commit 0480962
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 611 deletions.
25 changes: 0 additions & 25 deletions octue/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
from google import auth

from octue.cloud import storage
from octue.cloud.deployment.google.cloud_run.deployer import CloudRunDeployer
from octue.cloud.pub_sub import Subscription, Topic
from octue.cloud.pub_sub.service import Service
from octue.cloud.service_id import convert_service_id_to_pub_sub_form, create_service_sruid, get_service_sruid_parts
Expand Down Expand Up @@ -352,30 +351,6 @@ def deploy():
"""Deploy a python app to the cloud as an Octue service or digital twin."""


@deploy.command()
@click.option(
"-c",
"--service-config",
type=click.Path(exists=True, dir_okay=False),
default="octue.yaml",
show_default=True,
help="The path to an `octue.yaml` file defining the service to deploy.",
)
@click.option("--no-cache", is_flag=True, help="If provided, don't use the Docker cache.")
@click.option("--update", is_flag=True, help="If provided, allow updates to an existing service.")
@click.option(
"--revision-tag",
type=str,
default=None,
help="A tag to use for this revision of the service (e.g. 1.3.7). This overrides the `OCTUE_SERVICE_REVISION_TAG` "
"environment variable if it's present. If this option isn't given and the environment variable isn't present, a "
"random 'cool name' tag is generated e.g 'curious-capybara'.",
)
def cloud_run(service_config, update, no_cache, revision_tag):
"""Deploy a python app to Google Cloud Run as an Octue service or digital twin."""
CloudRunDeployer(service_config, revision_tag=revision_tag).deploy(update=update, no_cache=no_cache)


@deploy.command()
@click.option(
"-c",
Expand Down
234 changes: 0 additions & 234 deletions octue/cloud/deployment/google/cloud_run/deployer.py

This file was deleted.

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "octue"
version = "0.45.0"
version = "0.46.0"
description = "A package providing template applications for data services, and a python SDK to the Octue API."
readme = "README.md"
authors = ["Marcus Lugg <marcus@octue.com>", "Thomas Clark <support@octue.com>"]
Expand Down

0 comments on commit 0480962

Please sign in to comment.