গুগল ক্লাউডের ক্লাউড ওয়ার্কস্টেশনগুলো আপনাকে লোকাল মেশিন ছাড়াই এসডিভি (SDV) ডেভেলপ করতে দেয়। কাজ চালিয়ে যাওয়ার আগে আপনার একটি গুগল ক্লাউড প্রজেক্টে অ্যাক্সেস থাকা প্রয়োজন। যদি আপনার কোনো গুগল ক্লাউড প্রজেক্টে অ্যাক্সেস না থাকে, তবে আপনার গুগল পয়েন্ট অফ কন্ট্যাক্টের সাথে যোগাযোগ করুন। কুইকল্যাবস (Qwiklabs ) এনভায়রনমেন্টগুলো অস্থায়ী মূল্যায়নের জন্য উপলব্ধ।
ওয়ার্কফ্লো
This guide applies to both:
Individual developers: For individual developers setting up their own environment.
Organizations: For administrators setting up a reusable workstation configuration for their organization. After following this guide, proceed to Organization setup .
Environment setup
Follow these steps to configure your Google Cloud environment and deploy the workstation resources.
পরিবেশ ভেরিয়েবল সেট করুন
Launch Cloud Shell in your Google Cloud project.
Set the environment variables specific to your Google Cloud project. These variables are used in the scripts that follow.
- আপনি যদি কুইকল্যাবস পরিবেশ ব্যবহার করেন:
- Run the script from the Qwiklabs page.
আপনি যদি আপনার নিজের গুগল ক্লাউড প্রজেক্ট ব্যবহার করেন:
Find your project ID and username in Cloud Shell.
Regions and zones can be found in Cloud locations . If they aren't specified,
us-central1is used as the region andus-central1-cis used as the zone.Edit the following script with the correct information and run it:
# REQUIRED export TF_VAR_gcp_project_id=GCP Project ID export TF_VAR_gcp_username=GCP Username # OPTIONAL export TF_VAR_gcp_region=Region to use for the resources (default: us-central1) export TF_VAR_gcp_zone=Zone to use for the resources (default: us-central1-c)
- আপনি যদি কুইকল্যাবস পরিবেশ ব্যবহার করেন:
সেটআপ স্ক্রিপ্টগুলো নিন
To access the setup scripts, see Access GitHub repositories . Use standard GitHub commands to clone the repositories.
Create a container repository
Apply the Terraform configuration to create a container repository:
cd ~/dev/sdv-setup/tf/container_repo
terraform init
terraform apply -auto-approve
This script completes in about two minutes.
Build the Docker container image
Build the Docker image for Cloud Workstations:
cd ~/dev/sdv-setup/docker/android-studio-for-platform
gcloud builds submit --timeout=3h --substitutions=_IMAGE_NAME=${TF_VAR_gcp_region}-docker.pkg.dev/${TF_VAR_gcp_project_id}/aaos-sdv/android-studio-for-platform-canary,_ASFP_VERSION=canary
This script completes in about one hour. After it finishes, the container image is stored in Artifact Registry.
ডেভেলপার পরিবেশ স্থাপন করুন
Apply the Terraform configuration to create the developer environment:
cd ~/dev/sdv-setup/tf/dev_env
terraform init
terraform apply -auto-approve
This script completes in about 20 minutes.
Use Cloud Workstations
Learn how to launch your workstation, access the clipboard, and manage activities.
Launch the workstation
In the Google Cloud console , enter "Cloud Workstations" into the search bar. Under the Products & pages section, click Cloud Workstations .
In the navigation menu, click Workstations .
In the list of workstations, click Start in the Quick actions column for the workstation named
work-station.After the workstation starts, click Launch in the Quick actions column for the same workstation.
A new window opens showing a desktop interface. If an error appears, wait one minute and refresh the page.
Clipboard access
আপনি একটি বিশেষ ইন্টারফেসের মাধ্যমে আপনার লোকাল মেশিন এবং ক্লাউড ওয়ার্কস্টেশনের মধ্যে কপি ও পেস্ট করতে পারেন। স্ক্রিনের বাম প্রান্তে, উল্লম্বভাবে মাঝখানে একটি ছোট ধূসর তীরচিহ্ন রয়েছে। তীরচিহ্নটিতে ক্লিক করলে পাঁচটি বাটনসহ একটি ছোট মেনু খোলে। ক্লিপবোর্ড আইকনটিতে ক্লিক করুন।
প্রদর্শিত টেক্সট এরিয়া ব্যবহার করে ওয়ার্কস্টেশনে আপনার ক্লিপবোর্ড পরিচালনা করুন। আপনার লোকাল মেশিন থেকে ওয়ার্কস্টেশনে টেক্সট পেস্ট করতে, বক্সে টেক্সট যোগ করুন, তারপর পেস্ট করুন। ওয়ার্কস্টেশন থেকে টেক্সট কপি করতে, সেটি কপি করুন। এরপর টেক্সটটি বক্সে প্রদর্শিত হবে, যেখান থেকে আপনি এটি আবার কপি করে আপনার লোকাল মেশিনে পেস্ট করতে পারবেন।
Activities overview
You can start apps in the activities overview :
In the top bar, go to Activities overview .
To filter the list of apps, enter the name of the app in the top search bar.
To launch an app, click the respective icon.
পরবর্তী পদক্ষেপ
আপনার ডেভেলপমেন্ট এনভায়রনমেন্ট সেট আপ করা হয়ে গেছে এবং আপনি SDV দিয়ে বিল্ড করা শুরু করতে প্রস্তুত। আপনার ওয়ার্কফ্লো অনুযায়ী পরবর্তী ধাপগুলো অনুসরণ করুন:
স্বতন্ত্র ডেভেলপারদের জন্য: টার্গেটগুলো কীভাবে ডাউনলোড, বিল্ড এবং রান করতে হয় তা শিখুন:
Download, build, and run : Covers repository initialization and source code download.
একটি AAOS SDV প্রজেক্ট সেট আপ করুন : এর সাথে থাকা Android Studio for Platform IDE-তে একটি প্রজেক্ট সেট আপ করুন।
ডিসপ্লে সেফটি দিয়ে শুরু করুন : এতে ডিসপ্লে সেফটি এবং আইভিআই কম্পোনেন্টগুলোর নির্দিষ্ট আর্কিটেকচার ও বিল্ড ধাপগুলো আলোচনা করা হয়েছে।
Organizations: Proceed with Organization setup .