Installing Developer Components on ArchlinuxΒΆ

Set up your development environment for building, running, and testing Mattermost.

  1. If you are developing with the Docker container, install and configure Docker CE:
  1. pacman -S docker
  2. gpasswd -a user docker
  3. systemctl enable docker.service
  4. systemctl start docker.service
  5. newgrp docker
  6. Edit your /etc/hosts file to include the following line:
127.0.0.1 dockerhost
  1. Install Go 1.8.
pacman -S go
  1. Set up your Go workspace:
  1. mkdir ~/go
  2. Add the following lines to your ~/.bashrc file:
export GOPATH=$HOME/go
export PATH=$PATH:$GOPATH/bin
export PATH=$PATH:/usr/local/go/bin
  1. Reload your bash configuration.
source ~/.bashrc
  1. 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  8096

You must reboot for these changes to take effect.

  1. Install Node.js.
pacman -S nodejs npm
  1. Install Yarn.
pacman -S yarn
  1. Fork Mattermost on GitHub.com from https://github.com/mattermost/platform.
  2. Download the Mattermost code from your forked repository:
  1. Create the directory for the code.
mkdir -p ~/go/src/github.com/mattermost
  1. Change to the directory that you created.
cd ~/go/src/github.com/mattermost
  1. 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.