-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmac.json
39 lines (39 loc) · 1.71 KB
/
mac.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
[
{
"text": "Installing %ITER% using Homebrew",
"cmd": "brew install %ITER%",
"iterations": ["git", "stlink"]
},
{
"text": "Installing %ITER% using Homebrew",
"cmd": "brew install --cask %ITER%",
"iterations": ["visual-studio-code"]
},
{
"text": "Installing Docker using Homebrew",
"cmd": "brew install --cask docker",
"pause": "Open Docker Desktop, accept the license, skip sign-in. Once \"Starting the Docker Engine\" goes away, leave the app open and continue"
},
{
"text": "Installing VS Code Extension \"%ITER%\"",
"cmd": "code --install-extension %ITER% --force",
"iterations": ["ms-vscode-remote.vscode-remote-extensionpack", "ms-azuretools.vscode-docker", "ms-vscode.cpptools-extension-pack", "ms-python.python"]
},
{
"text": "Cloning the \"%ITER%\" repository into \"%IN%\"",
"cmd": "cd %IN% && git clone https://github.com/solarcaratuva/%ITER%.git",
"skip_cmd": "[ -d \"%IN%/%ITER%\" ] && exit 0 || exit 1",
"iterations": ["Rivanna2S", "Rivanna3"]
},
{
"text": "Creating the \"%ITER%_compile\" docker container",
"cmd": "docker run -d -it --name %ITER%_compile -v %IN%/%ITER%/:/root/Rivanna2:Z ghcr.io/solarcaratuva/rivanna2-env",
"skip_cmd": "docker ps -a --format '{{.Names}}' | grep -q \"%ITER%_compile\" && exit 0 || exit 1",
"iterations": ["Rivanna2S", "Rivanna3"]
},
{
"text": "Running \"mbed-tools deploy\" to initialize the compiler in the \"%ITER%_compile\" container",
"cmd": "docker exec %ITER%_compile sh -c \"cd Rivanna2 && mbed-tools deploy\"",
"iterations": ["Rivanna2S", "Rivanna3"]
}
]