{"id":23708395,"url":"https://github.com/gclouduniverse/managed-environments","last_synced_at":"2025-07-28T11:06:52.970Z","repository":{"id":46187039,"uuid":"309846126","full_name":"gclouduniverse/managed-environments","owner":"gclouduniverse","description":"Managed environments pipeline for CAIP Notebooks","archived":false,"fork":false,"pushed_at":"2021-11-08T17:08:59.000Z","size":29,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-05-23T04:26:43.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/gclouduniverse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"contributing.md","funding":null,"license":"LICENSE","code_of_conduct":"code-of-conduct.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-11-04T01:04:04.000Z","updated_at":"2021-11-08T17:09:03.000Z","dependencies_parsed_at":"2022-09-23T06:00:23.830Z","dependency_job_id":null,"html_url":"https://github.com/gclouduniverse/managed-environments","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/gclouduniverse/managed-environments","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gclouduniverse%2Fmanaged-environments","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gclouduniverse%2Fmanaged-environments/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gclouduniverse%2Fmanaged-environments/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gclouduniverse%2Fmanaged-environments/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/gclouduniverse","download_url":"https://codeload.github.com/gclouduniverse/managed-environments/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/gclouduniverse%2Fmanaged-environments/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267505099,"owners_count":24098346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-12-30T17:56:36.689Z","updated_at":"2025-07-28T11:06:52.921Z","avatar_url":"https://github.com/gclouduniverse.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Managing upgrades and dependencies for Vertex AI Workbench user-managed notebooks\n\nSample [Cloud Build][cloud-build] pipelines for\n[Vertex AI Workbench user-managed notebooks][vaiw-notebooks] upgrades and dependency management.\n\n\u003c!-- Add paragraph and link to best practices \u0026 process doc when available --\u003e\n\n## How-to use\n\n0 - Prepare:\n\n*   Clone this repository.\n*   Choose a [Deep Learning Container (DLCs)][dlc] image and specifiy it in the [Dockerfile](Dockerfile)\n*   Add notebook dependencies to the [Dockerfile](Dockerfile).\n*   Add notebooks for automated testing in folder [test_notebooks](test_notebooks)\n*   Specify an `_IMAGE_NAME` in each of of the pipeline yaml files.\n\n1 - Publish staging image:\n\n*   Create a [trigger][trigger] to run the [staging pipeline](cloudbuild-staging.yaml)\non each commit to branch called `staging`.\n*   Commit into to the `staging` branch and push to your own remote repository.\n*   Cloud Build automatically runs the [test_notebooks](test_notebooks)\nand creates the staging image.\n\n2 - Test staging image\n\n*   (Optional) [Create notebook instances][gc-nb-instances-create] to manually test image\nusing the `staging` environment.\n\n```sh\n  gcloud notebooks instances create \u003cINSTANCE_NAME\u003e \\\n    --location=\u003cNOTEBOOK_LOCATION\u003e \\\n    --environment=\u003cIMAGE_NAME\u003e.staging\n```\n\n*   Access your instance from the [Vertex AI Workbench console][vaiw-console]\n\n3 - Publish production image:\n\n*   Create a [trigger][trigger] to run the [production pipeline](cloudbuild-prod.yaml)\non each commit to a branch called `production`.\n*   Commit into the `production` branch and push to your own remote repository.\n*   Cloud Build creates the production image.\n\n4 - [Create notebook instances][gc-nb-instances-create] using image from the `production`\nenvironment\n\n```sh\n  gcloud notebooks instances create \u003cINSTANCE_NAME\u003e \\\n    --location=\u003cNOTEBOOK_LOCATION\u003e \\\n    --environment=\u003cIMAGE_NAME\u003e.production\n```\n\n*   Access your instance from the [Vertex AI Workbench console][vaiw-console]\n\nBoth pipelines use the original [commit SHA][sha] as the [Docker tag][docker-tag],\nrepresenting the [image version ID][image-version] in [Container Registry][container-registry].\n\n## Licensing\n\n```lang-none\nCopyright 2021 Google LLC\n\nLicensed under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License.\nYou may obtain a copy of the License at\n\n    https://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software\ndistributed under the License is distributed on an \"AS IS\" BASIS,\nWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\nSee the License for the specific language governing permissions and\nlimitations under the License.\n```\n\n## Contributing\n\n*   [Contributing guidelines](contributing-guidelines.md)\n*   [Code of conduct](code-of-conduct.md)\n\n\u003c!-- LINKS: https://www.markdownguide.org/basic-syntax/#reference-style-links --\u003e\n[vaiw-console]: https://console.cloud.google.com/vertex-ai/workbench/list/instances\n[vaiw-notebooks]: https://cloud.google.com/vertex-ai/docs/workbench/\n[cloud-build]: https://cloud.google.com/build\n[container-registry]: https://cloud.google.com/container-registry\n[dlc]: https://cloud.google.com/ai-platform/deep-learning-containers/docs/choosing-container\n[docker-tag]: https://docs.docker.com/engine/reference/commandline/tag/\n[gc-nb-instances-create]: https://cloud.google.com/sdk/gcloud/reference/notebooks/instances/create\n[image-version]: https://cloud.google.com/container-registry/docs/managing#listing_the_versions_of_an_image\n[sha]: https://git-scm.com/book/en/v2/Git-Internals-Git-Objects\n[trigger]: https://cloud.google.com/build/docs/automating-builds/create-manage-triggers","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgclouduniverse%2Fmanaged-environments","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgclouduniverse%2Fmanaged-environments","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgclouduniverse%2Fmanaged-environments/lists"}