コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Cloud Build の機能
このページでは、特定のリージョンでのビルドやプライベート ワーカープールの使用など、Cloud Build の機能を使用して Cortex Framework Data Foundation をビルドするためのオプションの構成について説明します。これらの構成は、データ プライバシー、パフォーマンス、セキュリティ、カスタマイズの面で大きなメリットがあります。最適なアプローチは、特定の要件とアプリケーションの性質によって異なります。
特定のリージョンでビルドする
リージョン ビルディングにより、データが特定の地理的リージョン内に確実に保持されます。これにより、ローカルのデータ プライバシー規制の遵守、可用性の向上、レイテンシの短縮に役立ちます。詳細については、Cloud Build のロケーションをご覧ください。
特定のリージョンでデプロイを実行するには、次のコマンドのように、--region
bash パラメータを使用して置換パラメータ _CLOUD_BUILD_REGION
を追加します。
gcloud builds submit \
--config=./cloudbuild.yaml \
--substitutions=_GCS_BUCKET=BUCKET_FOR_LOGS,_CLOUD_BUILD_REGION=REGION \
--region=REGION
次のように置き換えます。
BUCKET_FOR_LOGS
は、ログのバケット名に置き換えます。
REGION
: デプロイのリージョン。利用可能なリージョンの詳細については、地域とリージョンをご覧ください。
プライベート ワーカープールでビルドする
プライベート ワーカープールを使用すると、ビルドのセキュリティが強化されます。プライベート プールは、プライベート ネットワーク内のリソースへのアクセスなど、ビルド環境のカスタマイズを可能にするワーカーのプライベート専用プールです。詳細については、プライベート プールの概要をご覧ください。
限定公開ワーカーを構成するには、次のコマンドのように、対応する _CLOUD_BUILD_REGION
パラメータとともに _WORKER_POOL_NAME
を追加します。
gcloud builds submit \
--config=./cloudbuild.yaml
--substitutions=_GCS_BUCKET=BUCKET_FOR_LOGS,_WORKER_POOL_NAME='projects/SOURCE_PROJECT/locations/us-central1/workerPools/YOUR_WORKER_POOL_NAME',_CLOUD_BUILD_REGION=REGION \
--region=REGION
次のように置き換えます。
BUCKET_FOR_LOGS
は、ログのバケット名に置き換えます。
- Cortex Framework Data Foundation のデプロイのソース プロジェクトに対する
SOURCE_PROJECT
。
YOUR_WORKER_POOL_NAME
は、ワーカープールの名前に置き換えます。
REGION
: デプロイのリージョン。利用可能なリージョンの詳細については、地域とリージョンをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-09-04 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-09-04 UTC。"],[[["\u003cp\u003eThis document outlines optional configurations for building the Cortex Framework Data Foundation using Cloud Build features to enhance data privacy, performance, security, and customization.\u003c/p\u003e\n"],["\u003cp\u003eDeployments can be run through a user-created service account, specified with the \u003ccode\u003e_BUILD_ACCOUNT\u003c/code\u003e substitution parameter, allowing a deployment process without direct resource access.\u003c/p\u003e\n"],["\u003cp\u003eYou can ensure data remains within a specific geographical boundary by utilizing the regional building feature, activated by adding the \u003ccode\u003e_CLOUD_BUILD_REGION\u003c/code\u003e substitution parameter with the \u003ccode\u003e--region\u003c/code\u003e parameter.\u003c/p\u003e\n"],["\u003cp\u003eA private worker pool can be configured for a more secure build environment, enabling customization and access to private network resources, by specifying the \u003ccode\u003e_WORKER_POOL_NAME\u003c/code\u003e and \u003ccode\u003e_CLOUD_BUILD_REGION\u003c/code\u003e parameters.\u003c/p\u003e\n"]]],[],null,["# Cloud Build features\n====================\n\nThis page describes some optional configurations to build the\nCortex Framework Data Foundation with Cloud Build features,\nsuch as building in a specific region\nor using a private worker pool. These configurations offer significant benefits\nin terms of data privacy, performance, security, and customization. The best\napproach depends on your specific requirements and the nature of your application.\n\nBuild in a specific region\n--------------------------\n\nRegional Building ensures that your data remains within a specific geographic\nregion. This can help you to comply with local data privacy regulation,\navailability and latency reduction. For more information, see\n[Cloud Build locations](/build/docs/locations).\n\nTo run the deployment through a specific [region](/build/docs/locations#selecting_the_region),\nadd the substitution parameter `_CLOUD_BUILD_REGION` with `--region` bash parameter,\nas the following command: \n\n gcloud builds submit \\\n --config=./cloudbuild.yaml \\\n --substitutions=_GCS_BUCKET=\u003cvar translate=\"no\"\u003eBUCKET_FOR_LOGS\u003c/var\u003e,_CLOUD_BUILD_REGION=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --region=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eBUCKET_FOR_LOGS\u003c/var\u003e with the bucket name for the logs.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with the region for your deployment. For more information about available regions, see [Geography and regions](/docs/geography-and-regions).\n\nBuild with a private worker pool\n--------------------------------\n\nUsing a [private worker pool](/build/docs/private-pools/run-builds-in-private-pool)\nprovides a more secure environment for your builds.\nPrivate pools are private, dedicated pools of workers that offer\ncustomization over the build environment, including the ability to access\nresources in a private network. For more information, see\n[Private pools overview](/build/docs/private-pools/private-pools-overview).\n\nTo configure a private worker, add the `_WORKER_POOL_NAME` with corresponding\n`_CLOUD_BUILD_REGION` parameter, as the following command: \n\n gcloud builds submit \\\n --config=./cloudbuild.yaml\n --substitutions=_GCS_BUCKET=\u003cvar translate=\"no\"\u003eBUCKET_FOR_LOGS\u003c/var\u003e,_WORKER_POOL_NAME='projects/\u003cvar translate=\"no\"\u003eSOURCE_PROJECT\u003c/var\u003e/locations/us-central1/workerPools/\u003cvar translate=\"no\"\u003eYOUR_WORKER_POOL_NAME\u003c/var\u003e',_CLOUD_BUILD_REGION=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e \\\n --region=\u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003eBUCKET_FOR_LOGS\u003c/var\u003e with the bucket name for the logs.\n- \u003cvar translate=\"no\"\u003eSOURCE_PROJECT\u003c/var\u003e with the source project for Cortex Framework Data Foundation deployment.\n- \u003cvar translate=\"no\"\u003eYOUR_WORKER_POOL_NAME\u003c/var\u003e with the name for your worker pool.\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e with the region for your deployment. For more information about available regions, see [Geography and regions](/docs/geography-and-regions)."]]