1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-12-16 06:50:35 +00:00
graylog_demo/Vagrantfile

25 lines
686 B
Ruby
Raw Normal View History

2020-01-22 15:09:57 +00:00
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
config.vm.provision "shell", inline: <<-SHELL
# Import GPG keys
curl -s https://download.docker.com/linux/centos/gpg -o docker-key
rpm --import docker-key /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
# Install Docker Community Edition
yum-config-manager --add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
yum install -y docker-ce docker-ce-cli containerd.io
systemctl start docker
2020-01-22 16:07:04 +00:00
systemctl -q enable docker
2020-01-22 15:09:57 +00:00
usermod -aG docker vagrant
SHELL
2020-01-22 15:20:11 +00:00
# Install newest docker-compose
config.vm.provision "shell", path: "install-compose.sh"
2020-01-22 15:09:57 +00:00
end