Skip to content

Instantly share code, notes, and snippets.

@kozmaz87
Created January 4, 2019 01:02
Show Gist options
  • Save kozmaz87/db4f2bb043fa75413742828b9b338d6b to your computer and use it in GitHub Desktop.
Save kozmaz87/db4f2bb043fa75413742828b9b338d6b to your computer and use it in GitHub Desktop.
Vagrant mattermost team demo setup for Windows host
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.network "public_network"
config.vm.provision "shell", inline: <<-SHELL
set -e
echo I am provisioning...
setenforce 0
yum install -y epel-release
yum install -y docker git docker-compose
systemctl enable docker
systemctl start docker
git clone https://github.com/mattermost/mattermost-docker.git
cd mattermost-docker
mkdir -p ./volumes/app/mattermost/{data,logs,config,plugins}
chown -R 2000:2000 ./volumes
sed -i "s/ # args:/ args:/g" docker-compose.yml
sed -i "s/ # - edition=team/ - edition=team/g" docker-compose.yml
sed -i "s/ # - PUID=1000/ - PUID=2000/g" docker-compose.yml
sed -i "s/ # - PGID=1000/ - PGID=2000/g" docker-compose.yml
docker-compose build
docker-compose up -d
SHELL
config.vm.provider "hyperv" do |h|
h.memory = 4096
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment