1
0
mirror of https://github.com/krislamo/graylog_demo synced 2024-09-19 21:50:36 +00:00

Setup CentOS 7 Docker box

This commit is contained in:
Kris Lamoureux 2020-01-22 10:09:57 -05:00
commit 8a8417b991
Signed by: kris
GPG Key ID: A30022791E1719A4
2 changed files with 21 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.vagrant

20
Vagrantfile vendored Normal file
View File

@ -0,0 +1,20 @@
# 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
usermod -aG docker vagrant
SHELL
end