Skip to content

Commit 9cdd573

Browse files
authored
Adds Bash option throughout the workshop (#175)
1 parent aa7dc5c commit 9cdd573

File tree

20 files changed

+2197
-922
lines changed

20 files changed

+2197
-922
lines changed

docs/aca/00-workshop-intro/4-prerequisites.md

Lines changed: 45 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -38,15 +38,16 @@ This workshop typically spans several days. As such, you may close your tools, e
3838

3939
- Open a command-line terminal and create this folder for the workshop, then switch to that folder.
4040

41-
=== "Windows"
41+
=== "PowerShell"
4242
```shell
4343
md TasksTracker.ContainerApps
4444
cd TasksTracker.ContainerApps
4545
```
46-
=== "Linux"
46+
=== "Bash"
4747
```shell
48-
mkdir ~\TasksTracker.ContainerApps
49-
cd ~\TasksTracker.ContainerApps
48+
mkdir TasksTracker.ContainerApps
49+
cd TasksTracker.ContainerApps
50+
export PROJECT_ROOT=$(pwd)
5051
```
5152

5253
- Initialize the git repository.
@@ -78,29 +79,54 @@ This workshop typically spans several days. As such, you may close your tools, e
7879
7980
- Commit the `.gitignore` file.
8081
81-
```shell
82-
git add .\.gitignore
83-
git commit -m "Add .gitignore"
84-
```
82+
=== "PowerShell"
83+
```shell
84+
git add .\.gitignore
85+
git commit -m "Add .gitignore"
86+
```
87+
=== "Bash"
88+
```shell
89+
git add ./.gitignore
90+
git commit -m "Add .gitignore"
91+
```
8592
8693
### Set-Variables & Variables Script
8794
88-
- In the root create a new file called `Set-Variables.ps1`.
95+
=== "PowerShell"
96+
- In the root create a new file called `Set-Variables.ps1`.
8997
90-
- Copy the [Set-Variables.ps1 script](../../aca/30-appendix/03-variables.md){target=_blank} into the newly-created `Set-Variables.ps1` file and save it.
98+
- Copy the [Set-Variables.ps1 script](../../aca/30-appendix/03-variables.md){target=_blank} into the newly-created `Set-Variables.ps1` file and save it.
9199
92-
- Execute the script. You will do this repeatedly throughout the modules. The output of the script will inform you how many variables are written out. As we have not yet defined any variables, the output will indicate that the script has exited (without writing out to the file). This is intentional and expected at this stage.
100+
- Execute the script. You will do this repeatedly throughout the modules. The output of the script will inform you how many variables are written out. As we have not yet defined any variables, the output will indicate that the script has exited (without writing out to the file). This is intentional and expected at this stage.
93101
94-
```shell
95-
.\Set-Variables.ps1
96-
```
102+
```shell
103+
.\Set-Variables.ps1
104+
```
97105
98-
- Commit the `Set-Variables.ps1` file.
106+
- Commit the `Set-Variables.ps1` file.
99107
100-
```shell
101-
git add .\Set-Variables.ps1
102-
git commit -m "Add Set-Variables.ps1"
103-
```
108+
```shell
109+
git add .\Set-Variables.ps1
110+
git commit -m "Add Set-Variables.ps1"
111+
```
112+
=== "Bash"
113+
- In the root create a new file called `set_variables.sh`.
114+
115+
- Copy the [set_variables.sh script](../../aca/30-appendix/03-variables.md){target=_blank} into the newly-created `set_variables.sh` file and save it.
116+
117+
- Make it executable and execute the script. You will do this repeatedly throughout the modules. The output of the script will inform you how many variables are written out. As we have not yet defined any variables, the output will indicate that the script has exited (without writing out to the file). This is intentional and expected at this stage.
118+
119+
```shell
120+
chmod +x ./set_variables.sh
121+
./set_variables.sh
122+
```
123+
124+
- Commit the `set_variables.sh` file.
125+
126+
```shell
127+
git add ./set_variables.sh
128+
git commit -m "Add set_variables.sh"
129+
```
104130
105131
This completes the basic setup for Git and the variables to be used. You are ready to proceed to [Module 1](../01-deploy-api-to-aca/index.md)!
106132

0 commit comments

Comments
 (0)