Skip to content

Commit

Permalink
2024-10-30-15-51-29 - rd-code
Browse files Browse the repository at this point in the history
  • Loading branch information
josephmachado committed Oct 30, 2024
1 parent 3496c16 commit b33baa1
Show file tree
Hide file tree
Showing 4 changed files with 145 additions and 7 deletions.
67 changes: 67 additions & 0 deletions 10-Cloud-Services/Cloud-Services.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,73 @@
"# Manage cloud services with UI, cli, python module or IAC"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "d6ce1d9a-e780-4dea-9612-76338c53ce06",
"metadata": {},
"outputs": [],
"source": [
"# go to https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html#getting-started-install-instructions"
]
},
{
"cell_type": "code",
"execution_count": 1,
"id": "053c262b-4fe7-4147-bbe5-b1cd7a0a4a32",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"aws-cli/2.17.32 Python/3.11.9 Linux/6.9.3-76060903-generic exe/x86_64.pop.22\n"
]
}
],
"source": [
"! aws --version"
]
},
{
"cell_type": "code",
"execution_count": 3,
"id": "0f5b85ef-8a58-40da-a208-c272ae5a7ed1",
"metadata": {},
"outputs": [],
"source": [
"# setup aws cli to work with your aws account here https://portal.aws.amazon.com/"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "fad4e8d9-7a0f-4e88-b9e8-a336562d48a3",
"metadata": {},
"outputs": [],
"source": [
"# create an aws account"
]
},
{
"cell_type": "code",
"execution_count": 4,
"id": "4de5923e-7099-4ccf-93c8-64912b3c0209",
"metadata": {},
"outputs": [],
"source": [
"# configure your aws cli to work with your aws account \n",
"# Use recommended IAM approach if you are doing this on your personal laptop"
]
},
{
"cell_type": "markdown",
"id": "f3a1fed1-52fc-4f1b-b863-784d9ed91dc8",
"metadata": {},
"source": [
"**NOTE** Be careful with any services that you spin up, this will result in you being charged if you go over the free tier limits!!!"
]
},
{
"cell_type": "markdown",
"id": "9cfe4a10-7595-4d49-8a3e-d1c5445d892d",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"id": "7df815d7-fab6-4ce4-98a3-c03230a3be66",
"metadata": {},
"outputs": [],
Expand Down
8 changes: 2 additions & 6 deletions 8-Visualizations/Visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,15 @@
},
{
"cell_type": "code",
"execution_count": 2,
"execution_count": 6,
"id": "b9cb318e-3f92-430a-8d5b-c1908beba875",
"metadata": {},
"outputs": [
{
"name": "stdout",
"output_type": "stream",
"text": [
"CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\n",
"dd6ea004cf36 6-scheduling--orchestration-airflow-webserver \"/usr/bin/dumb-init …\" About a minute ago Up 42 seconds (healthy) 0.0.0.0:8080->8080/tcp, :::8080->8080/tcp webserver\n",
"3b5d361b77a5 6-scheduling--orchestration-airflow-scheduler \"/usr/bin/dumb-init …\" About a minute ago Up 58 seconds (healthy) 8080/tcp scheduler\n",
"827ce29a3da1 postgres:16 \"docker-entrypoint.s…\" About a minute ago Up About a minute (healthy) 0.0.0.0:5432->5432/tcp, :::5432->5432/tcp postgres\n",
"acbd5081a110 metabase/metabase \"/app/run_metabase.sh\" About a minute ago Up About a minute 0.0.0.0:3000->3000/tcp, :::3000->3000/tcp dashboard\n"
"CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\n"
]
}
],
Expand Down
75 changes: 75 additions & 0 deletions 9-Version-Control/Version-Control.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,81 @@
"source": [
"# Developer workflow"
]
},
{
"cell_type": "markdown",
"id": "d140b45f-77b6-496f-8710-07dcd8d4ab90",
"metadata": {},
"source": [
"Env\n",
"\n",
"local\n",
"UAT\n",
"..\n",
"Prod\n",
"\n",
"main -> version of code running in production\n",
"\n",
"When developing new features/making changes, you create a branch, develop, test and get reviews on it before merging it into main. The merged code will then be pushed to production (we will see how in the CI/CD chapter)\n"
]
},
{
"cell_type": "markdown",
"id": "cc61b4c8-2e62-443c-87f7-a989a8eecfcb",
"metadata": {},
"source": [
"clone this repo & delete the git folder"
]
},
{
"cell_type": "markdown",
"id": "2c1f54f0-a799-4bea-a3b9-8a529a98e6b4",
"metadata": {},
"source": [
"Create a GitHub repo and push this to the main branch"
]
},
{
"cell_type": "markdown",
"id": "1849f017-49c4-4823-8401-7baae5d29c8c",
"metadata": {},
"source": [
"Create branch"
]
},
{
"cell_type": "markdown",
"id": "bc63fabe-aa8e-47eb-ba3a-ddd049999233",
"metadata": {},
"source": [
"Make change"
]
},
{
"cell_type": "markdown",
"id": "64e6db6b-d4e5-4812-9ae9-b2f1593caf0a",
"metadata": {},
"source": [
"Put up a PR"
]
},
{
"cell_type": "code",
"execution_count": null,
"id": "ae17b281-46c2-4e60-b69a-7b142aec5049",
"metadata": {},
"outputs": [],
"source": [
"Ask colleagues for reviews"
]
},
{
"cell_type": "markdown",
"id": "c369c178-03f9-40d3-b60f-f6750e41f8df",
"metadata": {},
"source": [
"Once all comments are addressed and approved, push change to main branch"
]
}
],
"metadata": {
Expand Down

0 comments on commit b33baa1

Please sign in to comment.