Skip to content
Snippets Groups Projects
Commit 5e53a99c authored by Kenneth R Hancock's avatar Kenneth R Hancock
Browse files

Added Support for Git Bash for Windows

parent 79c1dc80
No related branches found
No related tags found
No related merge requests found
......@@ -6,8 +6,13 @@ If you have a Windows system without WSL, then start [here](https://git.uwaterlo
If you do not have access to a UNIX or UNIX-like environment then you can use the
[older instructions](https://student.cs.uwaterloo.ca/~cs350/common/Install161.html) to build, run, debug and test in University of Waterloo's linux student environment.
## Windows Option A
This is an emulated environment and allows for bash like commands, but you are running windows underneath.
* Install [Git for Windows](https://gitforwindows.org/)
* Install [docker](https://docs.docker.com/desktop/windows/install) for Windows.
## Windows - Prerequistes to install a UNIX-like environment and Docker
## Windows Option B
This setup is for if you'd like to have the full linux environment, WSL2 is just a linux VM running on your computer!
* Install [WSL](https://docs.microsoft.com/en-us/windows/wsl/install).
* Install [docker](https://docs.docker.com/desktop/windows/install) for WSL.
......
#!/usr/bin/env bash
export MSYS_NO_PATHCONV=1
realpath() {
[[ $1 = /* ]] && echo "$1" || echo "$PWD/${1#./}"
}
rm -rf logs
rm -rf "logs"
set -e
if [ "$#" -ne 1 ];then
......@@ -12,16 +13,16 @@ if [ "$#" -ne 1 ];then
fi
mkdir -p logs
chmod a+rwx logs
mkdir -p "logs"
chmod a+rwx "logs"
KERNFILE=$1
docker run -it --rm \
-v `realpath $KERNFILE`:/kernel \
-v `realpath os161-container/assignments`:/assignments \
-v `realpath logs`:/logs \
--entrypoint /bin/bash \
-v `realpath "$KERNFILE"`:/kernel \
-v `realpath "os161-container/assignments"`:/assignments \
-v `realpath "logs"`:/logs \
--entrypoint bash \
--name os161 \
os161-runner
docker kill os161 > /dev/null 2> /dev/null
export MSYS_NO_PATHCONV=0
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment