Installing Developer Components on ArchlinuxΒΆ
Set up your development environment for building, running, and testing Mattermost.
- If you are developing with the Docker container, install and configure Docker CE:
pacman -S docker
gpasswd -a user docker
systemctl enable docker.service
systemctl start docker.service
newgrp docker
- Edit your
/etc/hosts
file to include the following line:127.0.0.1 dockerhost
- Install Go 1.8.
pacman -S go
- Set up your Go workspace:
mkdir ~/go
- Add the following lines to your
~/.bashrc
file:export GOPATH=$HOME/go export PATH=$PATH:$GOPATH/bin export PATH=$PATH:/usr/local/go/bin
- Reload your bash configuration.
source ~/.bashrc
- Increase the file handle limit. Edit
/etc/security/limits.conf
and add the following lines (replace {username} with your user):
{username} soft nofile 8096 {username} hard nofile 8096You must reboot for these changes to take effect.
- Install Node.js.
pacman -S nodejs npm
- Install Yarn.
pacman -S yarn
- Fork Mattermost on GitHub.com from https://github.com/mattermost/platform.
- Download the Mattermost code from your forked repository:
- Create the directory for the code.
mkdir -p ~/go/src/github.com/mattermost
- Change to the directory that you created.
cd ~/go/src/github.com/mattermost
- Clone your Mattermost fork. In the following command, replace {username} with your GitHub username.
git clone https://github.com/{username}/platform.git
Now that everything is set up, you are ready to compile and run Mattermost. See Compiling Mattermost.