Skip to content

Commit 326c03e

Browse files
committed
Updated scripts and docs
1 parent 705b13f commit 326c03e

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,13 @@
1313

1414
The workflow of **CLOUDY** comprises the following steps:
1515

16-
1. The script `launch.sh` prepares VM instance, according to the options specified in the `config.json` file.
16+
1. The script `launch.sh` prepares a VM instance, according to the options specified in the `config.json` file.
1717

1818
2. The script `setup.sh` is executed in the VM to install dependencies and run the Python script indicated.
1919

2020
3. The output is saved to an existing bucket, or a new one is created as required.
2121

22-
4. The instances are automatically deleted once their execution has finished.
22+
4. The instance is automatically deleted once its execution has finished.
2323

2424
<p align="center">
2525
<img src="images/diagram.png" alt="DIAGRAM" width=80% />
@@ -70,7 +70,7 @@ This project consists of the following scripts:
7070

7171
The main options to edit are:
7272

73-
- `INSTANCE_NAME` and `BUCKET_NAME`: identifiers for the created instances and bucket.
73+
- `INSTANCE_NAME` and `BUCKET_NAME`: identifiers for the created instance and bucket.
7474
- `REPO_URL`: the repository to clone. This is where the code you want to execute is located.
7575
- `SCRIPT_PATH` and `SCRIPT_ARGS`: path to the Python script you want to execute in the repository, along with its input arguments.
7676
- `DEPENDENCIES`: dependencies required to run the Python script.

config.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"INSTANCE_NAME": "vm-id",
3-
"BUCKET_NAME": "bucket-id",
2+
"INSTANCE_NAME": "vm",
3+
"BUCKET_NAME": "bucket",
44
"REPO_URL": "https://github.com/manjavacas/cloudy.git",
55
"SCRIPT_PATH": "foo/foo.py",
66
"SCRIPT_ARGS": "cloudy",

images/diagram.png

-2.43 MB
Loading

scripts/launch.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ load_config() {
7070
SCRIPT_PATH=$(jq -r '.SCRIPT_PATH' "$config_file")
7171
DEPENDENCIES=$(jq -r '.DEPENDENCIES' "$config_file")
7272
SCRIPT_ARGS=$(jq -r '.SCRIPT_ARGS' "$config_file")
73+
74+
INSTANCE_NAME="${INSTANCE_NAME,,}"
75+
BUCKET_NAME="${BUCKET_NAME,,}"
7376
fi
7477
}
7578

scripts/setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ main() {
115115
run_script
116116
save_output_to_bucket
117117

118-
check "Job completed!"
118+
check "Finished."
119119
delete_instance
120120
}
121121

0 commit comments

Comments
 (0)