Created
January 4, 2019 01:02
-
-
Save kozmaz87/db4f2bb043fa75413742828b9b338d6b to your computer and use it in GitHub Desktop.
Vagrant mattermost team demo setup for Windows host
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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