2015-07-30 13:30:49 -04:00
|
|
|
Developer Machine Setup
|
2015-06-18 23:14:43 -08:00
|
|
|
-----------------------------
|
|
|
|
|
|
2015-07-30 13:30:49 -04:00
|
|
|
### Mac OS X ###
|
2015-06-18 23:14:43 -08:00
|
|
|
|
2015-07-30 13:30:49 -04:00
|
|
|
1. Download and set up Boot2Docker
|
|
|
|
|
1. Follow the instructions at http://docs.docker.com/installation/mac/
|
|
|
|
|
1. Use the Boot2Docker command-line utility
|
|
|
|
|
2. If you do command-line setup use: `boot2docker init eval “$(boot2docker shellinit)”`
|
|
|
|
|
2. Get your Docker IP address with `boot2docker ip`
|
|
|
|
|
3. Add a line to your /etc/hosts that goes `<Docker IP> dockerhost`
|
|
|
|
|
4. Run `boot2docker shellinit` and copy the export statements to your ~/.bash_profile
|
2015-09-11 09:35:05 -04:00
|
|
|
2. Download Go (version 1.4.2) from http://golang.org/dl/
|
2015-07-30 13:30:49 -04:00
|
|
|
3. Set up your Go workspace
|
|
|
|
|
1. `mkdir ~/go`
|
|
|
|
|
2. Add the following to your ~/.bash_profile
|
|
|
|
|
`export GOPATH=$HOME/go`
|
|
|
|
|
`export PATH=$PATH:$GOPATH/bin`
|
|
|
|
|
3. Reload your bash profile
|
|
|
|
|
`source ~/.bash_profile`
|
|
|
|
|
4. Install Node.js using Homebrew
|
|
|
|
|
1. Download Homebrew from http://brew.sh/
|
|
|
|
|
2. `brew install node`
|
|
|
|
|
5. Install Compass
|
2015-09-11 12:38:10 -04:00
|
|
|
1. Run `ruby -v` and check the ruby version is 1.8.7 or higher
|
|
|
|
|
2. `sudo gem install compass`
|
2015-07-30 13:30:49 -04:00
|
|
|
6. Download Mattermost
|
|
|
|
|
`cd ~/go`
|
|
|
|
|
`mkdir -p src/github.com/mattermost`
|
|
|
|
|
`cd src/github.com/mattermost`
|
2015-09-11 09:35:05 -04:00
|
|
|
`git clone https://github.com/mattermost/platform.git`
|
2015-07-30 13:30:49 -04:00
|
|
|
`cd platform`
|
|
|
|
|
7. Run unit tests on Mattermost using `make test` to make sure the installation was successful
|
|
|
|
|
8. If tests passed, you can now run Mattermost using `make run`
|
2015-06-18 23:14:43 -08:00
|
|
|
|
2015-07-13 23:40:40 -07:00
|
|
|
Any issues? Please let us know on our forums at: http://forum.mattermost.org
|
2015-06-18 23:14:43 -08:00
|
|
|
|
2015-07-30 13:30:49 -04:00
|
|
|
### Ubuntu ###
|
2015-06-18 23:14:43 -08:00
|
|
|
|
2015-07-30 13:30:49 -04:00
|
|
|
1. Download Docker
|
|
|
|
|
1. 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`
|
|
|
|
|
2. Set up your dockerhost address
|
|
|
|
|
1. Edit your /etc/hosts file to include the following line
|
|
|
|
|
`127.0.0.1 dockerhost`
|
|
|
|
|
3. Install build essentials
|
|
|
|
|
1. `apt-get install build-essential`
|
2015-09-11 09:35:05 -04:00
|
|
|
4. Download Go (version 1.4.2) from http://golang.org/dl/
|
2015-07-30 13:30:49 -04:00
|
|
|
5. Set up your Go workspace and add Go to the PATH
|
|
|
|
|
1. `mkdir ~/go`
|
|
|
|
|
2. Add the following to your ~/.bashrc
|
|
|
|
|
`export GOPATH=$HOME/go`
|
|
|
|
|
`export GOROOT=/usr/local/go`
|
|
|
|
|
`export PATH=$PATH:$GOROOT/bin`
|
|
|
|
|
3. Reload your bashrc
|
|
|
|
|
`source ~/.bashrc`
|
|
|
|
|
6. Install Node.js
|
|
|
|
|
1. Download the newest version of the Node.js sources from https://nodejs.org/download/
|
|
|
|
|
2. Extract the contents of the package and cd into the extracted files
|
|
|
|
|
3. Compile and install Node.js
|
|
|
|
|
`./configure`
|
|
|
|
|
`make`
|
|
|
|
|
`make install`
|
|
|
|
|
7. Install Ruby and Compass
|
|
|
|
|
`apt-get install ruby`
|
|
|
|
|
`apt-get install ruby-dev`
|
|
|
|
|
`gem install compass`
|
|
|
|
|
8. Download Mattermost
|
|
|
|
|
`cd ~/go`
|
|
|
|
|
`mkdir -p src/github.com/mattermost`
|
|
|
|
|
`cd src/github.com/mattermost`
|
2015-09-11 09:35:05 -04:00
|
|
|
`git clone https://github.com/mattermost/platform.git`
|
2015-07-30 13:30:49 -04:00
|
|
|
`cd platform`
|
|
|
|
|
9. Run unit tests on Mattermost using `make test` to make sure the installation was successful
|
|
|
|
|
10. If tests passed, you can now run Mattermost using `make run`
|
2015-06-18 23:14:43 -08:00
|
|
|
|
2015-07-13 23:40:40 -07:00
|
|
|
Any issues? Please let us know on our forums at: http://forum.mattermost.org
|