From e7e8264222aa03bddcb8cfa2df9bbfc3d55978ef Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sat, 17 Feb 2024 22:36:22 -0800 Subject: [PATCH 1/6] included more vscode extensions --- _posts/2024-02-10-Raspberry-Pi-Setup.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/_posts/2024-02-10-Raspberry-Pi-Setup.md b/_posts/2024-02-10-Raspberry-Pi-Setup.md index 80366d3..21c8a9a 100644 --- a/_posts/2024-02-10-Raspberry-Pi-Setup.md +++ b/_posts/2024-02-10-Raspberry-Pi-Setup.md @@ -69,6 +69,12 @@ sudo apt install code Relevant Extensions to install: + Docker + Dev Containers ++ Black Formatter + - Set `Editor: Default Formatter' as 'Black Formatter'. + - Go to `Black-formatter: Args` and set `--line-length=80`. + - Set `editor.formatOnSave` to `true`. ++ autoDocstring + - You can choose the docstring format of your preference. ## 4. Connect to GitHub with SSH + Generate new ssh key, `ssh-keygen -t ed25519 -C "[your_email@domain.com]"` From 91801b68b0def381487f52667ac6f58164006a6a Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sat, 17 Feb 2024 23:11:02 -0800 Subject: [PATCH 2/6] updated extensions --- _posts/2024-02-10-Raspberry-Pi-Setup.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_posts/2024-02-10-Raspberry-Pi-Setup.md b/_posts/2024-02-10-Raspberry-Pi-Setup.md index 21c8a9a..a9f3bed 100644 --- a/_posts/2024-02-10-Raspberry-Pi-Setup.md +++ b/_posts/2024-02-10-Raspberry-Pi-Setup.md @@ -67,6 +67,7 @@ sudo apt install code ``` Relevant Extensions to install: ++ Python, Pylance, and Python Debugger + Docker + Dev Containers + Black Formatter @@ -75,6 +76,7 @@ Relevant Extensions to install: - Set `editor.formatOnSave` to `true`. + autoDocstring - You can choose the docstring format of your preference. ++ GitLens ## 4. Connect to GitHub with SSH + Generate new ssh key, `ssh-keygen -t ed25519 -C "[your_email@domain.com]"` From 5076be00253e287b371d00f7daa6b5304d65c805 Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sat, 17 Feb 2024 23:30:49 -0800 Subject: [PATCH 3/6] automated way to say to git inside container? --- _posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md b/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md index 13899f8..109db55 100644 --- a/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md +++ b/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md @@ -76,5 +76,7 @@ Using a volume to provide sensitive information, such as an SSH key, during runt - **Dynamic Configuration:** With a volume, sensitive information can be changed without rebuilding the Docker image. This flexibility is valuable when updating credentials or keys without redeploying the entire application. +> There seems to be a way to allow VSCode to automatically share the GitHub SSH key with your container. I haven't been able to make it work, but it is worth sharing, ([LINK](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials). Let me know if it worked for you! {: .prompt-tip } + ## Environmental Variables Setting up environmental variables correctly is important for both the security and functionality of your images. Make sure you create them either in the command line while starting container with `docker run -e [ENV_VAR_NAME]=$ENV_VAR_NAME`, or inside the container by executing `export [ENV_VAR_NAME]=[VALUE]`. If you choose the former make sure to not pass the sensitive information directly on the command line. From dd15aac3cc3038fd41768ed16e810683daeb42f9 Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sat, 17 Feb 2024 23:54:50 -0800 Subject: [PATCH 4/6] included more settings on dev containers --- _posts/2024-02-10-Raspberry-Pi-Setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_posts/2024-02-10-Raspberry-Pi-Setup.md b/_posts/2024-02-10-Raspberry-Pi-Setup.md index a9f3bed..d3e0848 100644 --- a/_posts/2024-02-10-Raspberry-Pi-Setup.md +++ b/_posts/2024-02-10-Raspberry-Pi-Setup.md @@ -69,7 +69,6 @@ sudo apt install code Relevant Extensions to install: + Python, Pylance, and Python Debugger + Docker -+ Dev Containers + Black Formatter - Set `Editor: Default Formatter' as 'Black Formatter'. - Go to `Black-formatter: Args` and set `--line-length=80`. @@ -77,6 +76,8 @@ Relevant Extensions to install: + autoDocstring - You can choose the docstring format of your preference. + GitLens ++ Dev Containers + - Include all the previous extensions by identifier within `Dev Containers: Default Extensions` so all your extensions will always be installed. ## 4. Connect to GitHub with SSH + Generate new ssh key, `ssh-keygen -t ed25519 -C "[your_email@domain.com]"` From 26c8820529a2df7fd3c7e6e825b03ec9ae8fdcc0 Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sun, 18 Feb 2024 00:08:11 -0800 Subject: [PATCH 5/6] updated default settings for containers --- _posts/2024-02-10-Raspberry-Pi-Setup.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/_posts/2024-02-10-Raspberry-Pi-Setup.md b/_posts/2024-02-10-Raspberry-Pi-Setup.md index d3e0848..705246c 100644 --- a/_posts/2024-02-10-Raspberry-Pi-Setup.md +++ b/_posts/2024-02-10-Raspberry-Pi-Setup.md @@ -71,13 +71,14 @@ Relevant Extensions to install: + Docker + Black Formatter - Set `Editor: Default Formatter' as 'Black Formatter'. - - Go to `Black-formatter: Args` and set `--line-length=80`. + - Go to `Black-formatter: Args` and set `--line-length=79`. - Set `editor.formatOnSave` to `true`. + autoDocstring - You can choose the docstring format of your preference. + GitLens + Dev Containers - Include all the previous extensions by identifier within `Dev Containers: Default Extensions` so all your extensions will always be installed. + - Update the dev.containers.defaultFeatures and include inside it all the settings you want to propagate to your containers. (e.g. all the black Formatter and autoDocstring settings) ## 4. Connect to GitHub with SSH + Generate new ssh key, `ssh-keygen -t ed25519 -C "[your_email@domain.com]"` From 20de1b85d542b74345b8e07c7d9700676c057ef1 Mon Sep 17 00:00:00 2001 From: bubl-ai <155429313+bubl-ai@users.noreply.github.com> Date: Sun, 18 Feb 2024 00:14:11 -0800 Subject: [PATCH 6/6] improved tip message --- _posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md b/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md index 109db55..924715f 100644 --- a/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md +++ b/_posts/2024-02-12-Simple-Dockerfile-for-Dev-Purposes.md @@ -76,7 +76,7 @@ Using a volume to provide sensitive information, such as an SSH key, during runt - **Dynamic Configuration:** With a volume, sensitive information can be changed without rebuilding the Docker image. This flexibility is valuable when updating credentials or keys without redeploying the entire application. -> There seems to be a way to allow VSCode to automatically share the GitHub SSH key with your container. I haven't been able to make it work, but it is worth sharing, ([LINK](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials). Let me know if it worked for you! {: .prompt-tip } +> There seems to be a way to allow VSCode to automatically share the GitHub SSH key with your container. I haven't been able to make it work, but it is worth sharing, [LINK](https://code.visualstudio.com/remote/advancedcontainers/sharing-git-credentials). Let me know if it worked for you! ## Environmental Variables Setting up environmental variables correctly is important for both the security and functionality of your images. Make sure you create them either in the command line while starting container with `docker run -e [ENV_VAR_NAME]=$ENV_VAR_NAME`, or inside the container by executing `export [ENV_VAR_NAME]=[VALUE]`. If you choose the former make sure to not pass the sensitive information directly on the command line.