Skip to content

Commit

Permalink
Merge pull request #54 from arambazamba:setup
Browse files Browse the repository at this point in the history
setup guide updated
  • Loading branch information
alexander-kastil authored Sep 25, 2022
2 parents 11bcdb5 + adc5b54 commit 1ca753e
Show file tree
Hide file tree
Showing 13 changed files with 80 additions and 306 deletions.
2 changes: 2 additions & 0 deletions Demos/04-FunctionApps/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

[Azure Functions Reference](https://docs.microsoft.com/en-gb/azure/azure-functions/functions-reference)

[Event-driven scaling in Azure Functions](https://learn.microsoft.com/en-us/azure/azure-functions/event-driven-scaling)

[Quickstarts - Available for different frameworks](https://docs.microsoft.com/en-us/azure/azure-functions/create-first-function-vs-code-java)

## CLI Reference
Expand Down
24 changes: 24 additions & 0 deletions Setup/windows-subsystem-linux/all-in-one.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
sudo apt update

# node
sudo curl -sL https://deb.nodesource.com/setup_14.x | sudo bash
sudo apt-get install -y nodejs

# .net
wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.deb -O packages-microsoft-prod.deb
sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1

sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-6.0

# azure cli
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az config set extension.use_dynamic_install=yes

# function core tools
sudo npm install -g azure-functions-core-tools@4 --unsafe-perm true
6 changes: 3 additions & 3 deletions Setup/windows-subsystem-linux/install-net.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ wget https://packages.microsoft.com/config/ubuntu/20.10/packages-microsoft-prod.
sudo dpkg -i packages-microsoft-prod.deb

sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1
sudo apt-get install -y apt-transport-https && \
sudo apt-get update && \
sudo apt-get install -y dotnet-sdk-3.1

sudo apt-get update; \
sudo apt-get install -y apt-transport-https && \
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
50 changes: 46 additions & 4 deletions Tooling/01-Github/readme.md → Tooling/01-Git/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@

[Git Graph VS Code](https://marketplace.visualstudio.com/items?itemName=mhutchie.git-graph)

[Git History Diff](https://marketplace.visualstudio.com/items?itemName=huizhou.githd)

# Git / Github Essentials

## Configuration
Expand Down Expand Up @@ -129,6 +127,50 @@ git branch save-detached-head

> Note: You will have to switch to the branch you saved to afterwards
## Changing Branches

Saving work befor switching the branch - alternative to stage and commit:

```
git stash | git stash push
```

List stashes:

```
git stash list
```

Use a stash:

```
git stash apply | git stash apply stash@{2}
```

Switch to Branch:

```
git checkout [name_of_your_branch]
```

Cleaning up after branch switches - ie to remove untracked files from other branches on local disk:

-n flag is used to perform dry run.
-f flag is used to remove untracked files.
-fd flag is used to remove untracked files and folders.
-fx flag is used to remove untracked and ignored files.

```
git clean -fd | git clean -f folderpath
```

Update a Branch from master / main:

```
git fetch
git rebase origin/master
```

## Tags

Create Lightweight tag :
Expand Down Expand Up @@ -302,6 +344,6 @@ git flow release finish RELEASE

## Additional Labs & Walkthroughs

[Introduction to Git](https://docs.microsoft.com/en-us/learn/modules/intro-to-git/)

[Learning Path - Introduction to version control with Git](https://docs.microsoft.com/en-us/learn/paths/intro-to-vc-git/)

[Learning Path - Manage Source Control (GitHub)](https://learn.microsoft.com/en-us/training/paths/az-400-manage-source-control/)
2 changes: 0 additions & 2 deletions Tooling/08-Docker-WSL/configure-wsl2.ps1

This file was deleted.

19 changes: 3 additions & 16 deletions Tooling/08-Docker-WSL/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,26 +18,13 @@ Check Docker Settings:

#### <a id="wsl">Install WSL2</a>

Execute script `setup-wsl2.ps1` multible times to setup WSL2.
Open PowerShell as Administrator and run:

```powershell
Set-ExecutionPolicy Bypass -Scope Process -Force;
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://raw.githubusercontent.com/arambazamba/az-204/main/Tooling/08-Docker-WSL/setup-wsl2.ps1'))
wsl --install
```

First Run:

![finish-sw](_images/finish-sw.jpg)

>Note: Reboot between first and second run.
Second Run:

![select-distro](_images/select-distro.jpg)

After the second run your selected linux distro will be opened an you can set your username:

> Note: You can take the same credntials just like on the Windows VM
Reboot your machine & open WSL and set your root user & password:

```
user=azlabadmin
Expand Down
Loading

0 comments on commit 1ca753e

Please sign in to comment.