4.5 KiB
Developer Machine Setup
Mac OS X
- Download and set up Docker Toolbox
- Follow the instructions at http://docs.docker.com/installation/mac/
- Start a new docker host
docker-machine create -d virtualbox dev - Get the IP address of your docker host
docker-machine ip dev - Add a line to your /etc/hosts that goes
<Docker IP> dockerhost - Run
docker-machine env devand copy the export statements to your ~/.bash_profile
- Download Go 1.5.1 and Node.js using Homebrew
- Download Homebrew from http://brew.sh/
brew install gobrew install node
- Set up your Go workspace
mkdir ~/go- Add the following to your ~/.bash_profile
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
ulimit -n 8096
If you don't increase the file handle limit you may see some weird build issues with browserify or npm. - Reload your bash profile
source ~/.bash_profile
- Install Compass
- Run
ruby -vand check the ruby version is 1.8.7 or higher sudo gem install compass
- Run
- Download Mattermost
cd ~/go
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
git clone https://github.com/mattermost/platform.git
cd platform - Run unit tests on Mattermost using
make testto make sure the installation was successful - If tests passed, you can now run Mattermost using
make run
Any issues? Please let us know on our forums at: http://forum.mattermost.org
Ubuntu
- Download Docker
- Follow the instructions at https://docs.docker.com/installation/ubuntulinux/ or use the summary below:
sudo apt-get update
sudo apt-get install wget
wget -qO- https://get.docker.com/ | sh
sudo usermod -aG docker <username>
sudo service docker start
newgrp docker
- Follow the instructions at https://docs.docker.com/installation/ubuntulinux/ or use the summary below:
- Set up your dockerhost address
- Edit your /etc/hosts file to include the following line
127.0.0.1 dockerhost
- Edit your /etc/hosts file to include the following line
- Install build essentials
apt-get install build-essential
- Download Go 1.5.1 from http://golang.org/dl/
- Set up your Go workspace and add Go to the PATH
mkdir ~/go- Add the following to your ~/.bashrc
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
ulimit -n 8096
If you don't increase the file handle limit you may see some weird build issues with browserify or npm. - Reload your bashrc
source ~/.bashrc
- Install Node.js
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs - Install Ruby and Compass
apt-get install ruby
apt-get install ruby-dev
gem install compass - Download Mattermost
cd ~/go
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
git clone https://github.com/mattermost/platform.git
cd platform - Run unit tests on Mattermost using
make testto make sure the installation was successful - If tests passed, you can now run Mattermost using
make run
Any issues? Please let us know on our forums at: http://forum.mattermost.org
Archlinux
-
Install Docker
pacman -S dockergpasswd -a user dockersystemctl enable docker.servicesystemctl start docker.servicenewgrp docker
-
Set up your dockerhost address
- Edit your /etc/hosts file to include the following line
127.0.0.1 dockerhost
- Edit your /etc/hosts file to include the following line
-
Install Go
pacman -S go
-
Set up your Go workspace and add Go to the PATH
mkdir ~/go- Add the following to your ~/.bashrc
export GOPATH=$HOME/goexport GOROOT=/usr/lib/goexport PATH=$PATH:$GOROOT/bin
- Reload your bashrc
source ~/.bashrc
-
Edit /etc/security/limits.conf and add the following lines (replace username with your user):
username soft nofile 8096 username hard nofile 8096You will need to reboot after changing this. If you don't increase the file handle limit you may see some weird build issues with browserify or npm.
-
Install Node.js
pacman -S nodejs npm -
Install Ruby and Compass
-
pacman -S ruby -
Add executable gems to your path in your ~/.bashrc
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH" -
gem install compass
-
-
Download Mattermost
cd ~/go
mkdir -p src/github.com/mattermost
cd src/github.com/mattermost
git clone https://github.com/mattermost/platform.git
cd platform -
Run unit tests on Mattermost using
make testto make sure the installation was successful -
If tests passed, you can now run Mattermost using
make run
Any issues? Please let us know on our forums at: http://forum.mattermost.org