This commit is contained in:
Samuel Aubertin
2023-09-27 18:11:39 +02:00
parent dee53a0349
commit 854982082a
2 changed files with 8 additions and 5 deletions

View File

@@ -71,6 +71,8 @@ Every default option ending with an `?` in "src/options.mk" can be overrided in
## Examples
A few examples are located in the [examples](examples) directory:
### Quick example
Here is the shortest Makefile that can be used to leverage skz-opack:
@@ -116,7 +118,7 @@ Once the *opack* target dependency is finished, the VM is running and the system
Before using this example, you need to prepare the cloud environment:
1. [Create a GCP project](https://cloud.google.com/resource-manager/docs/creating-managing-projects) and declare its name by overriding `OPACK_GCE_PROJECT`.
2. [Create a service account](https://cloud.google.com/iam/docs/service-accounts-create) and [obtain its key](https://cloud.google.com/iam/docs/keys-create-delete), which path should be declared with `OPACK_GCE_JSON_KEY`.
3. [Create a GCS Bucket](https://cloud.google.com/storage/docs/creating-buckets) and declare its name with 'OPACK_GCE_BUCKET' (defaults to `OPACK_GCE_PROJECT`).
3. [Create a GCS Bucket](https://cloud.google.com/storage/docs/creating-buckets) and declare its name with `OPACK_GCE_BUCKET` (defaults to `OPACK_GCE_PROJECT`).
4. Enable the [Cloud Ressource Manager API](https://console.cloud.google.com/marketplace/product/google/cloudresourcemanager.googleapis.com) in order for the service account to use it with its key.
```make