Installing Developer Components on WindowsΒΆ
- Install and setup Docker. If you are using Windows 10 Pro or Enterprise, you can use Docker for Windows.
- Install Docker for Windows.
- Add the line
127.0.0.1 dockerhost
toC:\Windows\System32\drivers\etc\hosts
using a text editor with administrator privileges.
- For other Windows versions, or if you prefer to use VirtualBox, use Docker Toolbox:
- Install Docker Toolbox.
- Run the Docker Quickstart Terminal and let it configure the
default
machine.- Run
docker-machine ip default
in the terminal to get the IP address for the next step.- Add the line
{Docker-IP} dockerhost
toC:\Windows\System32\drivers\etc\hosts
using a text editor with administrator privileges.
- Download and install Node.js from https://nodejs.org/.
- Download and install Go 1.8 from https://golang.org/dl/.
- Install Yarn. Go to https://yarnpkg.com/en/docs/install#windows-tab and follow the installation instructions.
- Fork Mattermost on GitHub.com from https://github.com/mattermost/platform, then:
cd ~/go
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
git clone https://github.com/{username}/platform.git
cd platform
git config core.eol lf
git config core.autocrlf input
git reset --hard HEAD
- Install and setup babun from http://babun.github.io/.
- Setup the following environment variables (change the path accordingly):
export PATH="/c/Program Files/go/bin":$PATH export PATH="/c/Program Files/nodejs":$PATH export PATH="/c/Program Files/Git/bin":$PATH export GOROOT="c:\\Program Files\\go" export GOPATH="c:\\User\\{user-name}\\go" export PATH="/c/Program Files/Docker Toolbox":$PATH #change the path accordingly if you are using Docker for Windows eval $(docker-machine env default) #skip this line if you are using Docker for Windows
Now that everything is set up, you are ready to compile and run Mattermost. See Compiling Mattermost.