Skip to content

Commit

Permalink
Make Lithops example names consistent with benchmarks and other execu…
Browse files Browse the repository at this point in the history
…tors (#425)

* Change lithops/aws-lambda example to lithops/aws

* Change lithops/gcf example to lithops/gcp
  • Loading branch information
tomwhite authored Mar 15, 2024
1 parent 1c595bd commit e7dd08d
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions examples/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ Follow the instructions for setting up Cubed to run on your chosen cloud and exe

| Executor | Cloud | Set up instructions |
|----------|--------|--------------------------------------------------------------|
| Lithops | AWS | [lithops/aws-lambda/README.md](lithops/aws-lambda/README.md) |
| | Google | [lithops/gcf/README.md](lithops/gcf/README.md) |
| Lithops | AWS | [lithops/aws/README.md](lithops/aws/README.md) |
| | Google | [lithops/gcp/README.md](lithops/gcp/README.md) |
| Modal | AWS | [modal/aws/README.md](modal/aws/README.md) |
| | Google | [modal/gcp/README.md](modal/gcp/README.md) |
| Coiled | AWS | [coiled/aws/README.md](coiled/aws/README.md) |
Expand All @@ -30,7 +30,7 @@ The `add-asarray.py` script is a small example that adds two small 4x4 arrays to
Export `CUBED_CONFIG` as described in the set up instructions, then run the script. This is for Lithops on AWS:

```shell
export CUBED_CONFIG=$(pwd)/lithops/aws-lambda
export CUBED_CONFIG=$(pwd)/lithops/aws
python add-asarray.py
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ ulimit -n 1024
Before running the examples, first change to the top-level examples directory (`cd ../..`) and type

```shell
export CUBED_CONFIG=$(pwd)/lithops/aws-lambda
export CUBED_CONFIG=$(pwd)/lithops/aws
```

Then you can run the examples described [there](../../README.md).
Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

```shell
# from this directory
conda create --name cubed-lithops-gcf-examples -y python=3.11
conda activate cubed-lithops-gcf-examples
conda create --name cubed-lithops-gcp-examples -y python=3.11
conda activate cubed-lithops-gcp-examples
pip install -r requirements.txt # use requirements file from same directory as this readme
```

2. Configure Lithops with a [Google Cloud Functions compute backend](https://lithops-cloud.github.io/docs/source/compute_config/gcp_functions.html#configuration), and a [Google Cloud Storage backend](https://lithops-cloud.github.io/docs/source/storage_config/gcp_storage.html#configuration).
- Note: it may be useful to put the configuration in a different place to the default (e.g. `~/.lithops/config.gcf`), and then call `export LITHOPS_CONFIG_FILE=~/.lithops/config.gcf`
- Note: it may be useful to put the configuration in a different place to the default (e.g. `~/.lithops/config.gcp`), and then call `export LITHOPS_CONFIG_FILE=~/.lithops/config.gcp`
- Although optional, it is convenient to [configure Lithops logging](https://lithops-cloud.github.io/docs/source/configuration.html) by setting `log_filename` (to `lithops.log`, for example), so that messages are sent to a file, rather than the console.
3. Give permissions to access your GCP buckets by calling `export GOOGLE_APPLICATION_CREDENTIALS=<path-to-json>`, where `<path-to-json>` is the full path to the `.json` key file you downloaded when configuring GCP storage for Lithops in the previous step.
4. Create a new GCP bucket (called `cubed-<username>-temp`, for example) in the same region you chose when configuring Google Cloud Functions and Storage for Lithops. This will be used for intermediate zarr data. Note that this is different to the bucket created when configuring Lithops, which just stores configuration data.
Expand All @@ -38,7 +38,7 @@ ulimit -n 1024
Before running the examples, first change to the top-level examples directory (`cd ../..`) and type

```shell
export CUBED_CONFIG=$(pwd)/lithops/gcf
export CUBED_CONFIG=$(pwd)/lithops/gcp
```

Then you can run the examples described [there](../../README.md).
Expand Down
File renamed without changes.
File renamed without changes.

0 comments on commit e7dd08d

Please sign in to comment.