Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

APRICOT v1.0.0 #11

Merged
merged 26 commits into from
Oct 10, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
b2e9024
Added notifications. Fixed dropdown images location
AntonioSanch3z Oct 1, 2024
7d0bcb4
Checking for correct credentials before continuing
AntonioSanch3z Oct 1, 2024
543efe7
Added some styling
AntonioSanch3z Oct 2, 2024
b8fe47d
Improved some styling
AntonioSanch3z Oct 3, 2024
c334e23
Improved list deployments performance
AntonioSanch3z Oct 3, 2024
83d8909
Fixed upload magic command
AntonioSanch3z Oct 4, 2024
30c194d
Improvements in listDeployments console logs
AntonioSanch3z Oct 4, 2024
53766d5
Better user feedback
AntonioSanch3z Oct 4, 2024
75a9ccd
Minor changes to code
AntonioSanch3z Oct 4, 2024
0412df2
Improved code practices and made it less redundant
AntonioSanch3z Oct 4, 2024
b449a59
Fixed EGI credentials check
AntonioSanch3z Oct 4, 2024
ca82138
Minor changes to some code
AntonioSanch3z Oct 6, 2024
575f3da
Improved deployment code efficiency and readability. Added styles to …
AntonioSanch3z Oct 6, 2024
0c6e6db
Updated package.json
AntonioSanch3z Oct 6, 2024
c7f92b0
Fixed styles for the forms
AntonioSanch3z Oct 7, 2024
1ec96bb
Changed tutorial
AntonioSanch3z Oct 7, 2024
76a7c24
Fixed styles for better experience
AntonioSanch3z Oct 7, 2024
1abc406
Fixed EC2 deployment
AntonioSanch3z Oct 8, 2024
7efd28a
Linted file
AntonioSanch3z Oct 8, 2024
aa305b5
Fixed tutorial error
AntonioSanch3z Oct 9, 2024
4de7bab
Fixed tutorial error
AntonioSanch3z Oct 9, 2024
104ed69
Dynamic user created to connect to shh
AntonioSanch3z Oct 9, 2024
7814744
Improved magic commands functions
AntonioSanch3z Oct 10, 2024
fb095a9
Minor changes to apricot tutorial
AntonioSanch3z Oct 10, 2024
403bf1a
Linted css file
AntonioSanch3z Oct 10, 2024
d30519b
Linted ts files
AntonioSanch3z Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 23 additions & 14 deletions apricot-tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"source": [
"#### Welcome to the APRICOT extension. This plugin designed for Jupyter Notebook allows you to deploy and manage virtual infrastructures using the [Infrastructure Manager](https://imdocs.readthedocs.io/en/devel/) tool. In this notebook, we will cover the basics to help you get started with APRICOT.\n",
"\n",
"First of all, let's create a infrastructure to execute the following example notebook. To do so, click in the **Deployment menu** button in the toolbar above and follow the steps to deploy your first infrastructure. Any infrastructure should be able to execute all commands.\n",
"First of all, let's create a infrastructure to execute the following example notebook. To do so, click in the **Deployment menu** button in the toolbar above and follow the steps to deploy your first infrastructure.\n",
"\n",
"Once the infrastructure has been deployed, we can start playing with the notebook."
]
Expand Down Expand Up @@ -49,24 +49,24 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"To begin with the tutorial, please paste the infrastructure ID inside the **infrastructure_id** variable:"
"To begin with the tutorial, please paste the infrastructure ID inside the **infrastructure_id** variable once the infrastructure gets it:"
]
},
{
"cell_type": "code",
"execution_count": 11,
"execution_count": 3,
"metadata": {},
"outputs": [],
"source": [
"infrastructure_id = \"dc678ce2-7eff-11ef-9af1-968d5abd162c\"\n",
"infrastructure_id = \"3eb5235a-86cb-11ef-8a9b-e6c8d43d93e3\"\n",
"vm_id = \"0\""
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Using the ID of our new infrastructure, we can get more information about it:"
"Using the ID of our new infrastructure, we can check the logs of our new infrastructure while it is being created:"
]
},
{
Expand All @@ -75,14 +75,14 @@
"metadata": {},
"outputs": [],
"source": [
"%apricot_vmls $infrastructure_id"
"%apricot_log $infrastructure_id"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can execute different Linux commands on the virtual machines using the infrastructure ID and the ID of one of its nodes. Let's practice it by creating a file named \"test123.txt\" on the first node:"
"Or check the different nodes of our infrastructure:"
]
},
{
Expand All @@ -91,14 +91,25 @@
"metadata": {},
"outputs": [],
"source": [
"%apricot exec $infrastructure_id $vm_id touch \"test123.txt\""
"%apricot_vmls $infrastructure_id"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"We can check the new file in the VM:"
"We can execute different command line commands on the virtual machines using the infrastructure ID and the ID of one of its nodes.\n",
"\n",
"Let's practice it by creating a file named \"test.txt\" on the first node with the _touch_ Linux command and check if it worked (if you deployed an infrastructure with a different OS, change the _touch_ Linux command):"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"%apricot exec $infrastructure_id $vm_id touch \"test.txt\""
]
},
{
Expand All @@ -114,7 +125,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Let's download the file to our local storage:"
"Now let's download the file to our local storage:"
]
},
{
Expand All @@ -123,7 +134,7 @@
"metadata": {},
"outputs": [],
"source": [
"%apricot_download $infrastructure_id $vm_id test123.txt ."
"%apricot_download $infrastructure_id $vm_id test2.txt ."
]
},
{
Expand Down Expand Up @@ -156,9 +167,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"Congratulations! You finished the tutorial and now you are free to keep exploring and exploiting the APRICOT extension!\n",
"\n",
"All the magics implemented are available in README.md."
"Congratulations! You finished the tutorial and now you are free to keep exploring the APRICOT extension!"
]
}
],
Expand Down
Loading
Loading