You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/aca/00-workshop-intro/4-prerequisites.md
+45-19Lines changed: 45 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -38,15 +38,16 @@ This workshop typically spans several days. As such, you may close your tools, e
38
38
39
39
- Open a command-line terminal and create this folder for the workshop, then switch to that folder.
40
40
41
-
=== "Windows"
41
+
=== "PowerShell"
42
42
```shell
43
43
md TasksTracker.ContainerApps
44
44
cd TasksTracker.ContainerApps
45
45
```
46
-
=== "Linux"
46
+
=== "Bash"
47
47
```shell
48
-
mkdir ~\TasksTracker.ContainerApps
49
-
cd ~\TasksTracker.ContainerApps
48
+
mkdir TasksTracker.ContainerApps
49
+
cd TasksTracker.ContainerApps
50
+
export PROJECT_ROOT=$(pwd)
50
51
```
51
52
52
53
- Initialize the git repository.
@@ -78,29 +79,54 @@ This workshop typically spans several days. As such, you may close your tools, e
78
79
79
80
- Commit the `.gitignore` file.
80
81
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
+
```
85
92
86
93
### Set-Variables & Variables Script
87
94
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`.
89
97
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.
91
99
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.
93
101
94
-
```shell
95
-
.\Set-Variables.ps1
96
-
```
102
+
```shell
103
+
.\Set-Variables.ps1
104
+
```
97
105
98
-
- Commit the `Set-Variables.ps1` file.
106
+
- Commit the `Set-Variables.ps1` file.
99
107
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
+
```
104
130
105
131
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)!
0 commit comments