File tree Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Expand file tree Collapse file tree 5 files changed +9
-6
lines changed Original file line number Diff line number Diff line change 1313
1414The 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
18182 . The script ` setup.sh ` is executed in the VM to install dependencies and run the Python script indicated.
1919
20203 . 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.
Original file line number Diff line number Diff line change 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" ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments