diff --git a/Vagrantfile b/Vagrantfile index 090ffaa..68120dc 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -16,6 +16,14 @@ Vagrant.configure('2') do |config| vb.name = 'sumologic-collectd-plugin' end + config.vm.provider "qemu" do |qe, override| + override.vm.box = "perk/ubuntu-2204-arm64" + qe.gui = false + qe.smp = 8 + qe.memory = 16384 + qe.name = 'sumologic-collectd-plugin' + end + config.vm.provision 'shell', path: 'vagrant/provision.sh' config.vm.synced_folder ".", "/sumologic" diff --git a/vagrant/provision.sh b/vagrant/provision.sh index a6552f3..2e054a2 100644 --- a/vagrant/provision.sh +++ b/vagrant/provision.sh @@ -1,3 +1,9 @@ +#!/bin/bash + +set -euo pipefail + +ARCH="$(dpkg --print-architecture)" + sudo apt-get update # Install Python @@ -14,15 +20,15 @@ popd # Install docker curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add - add-apt-repository \ - "deb [arch=amd64] https://download.docker.com/linux/ubuntu \ + "deb [arch=${ARCH}] https://download.docker.com/linux/ubuntu \ $(lsb_release -cs) \ stable" apt-get install -y docker-ce docker-ce-cli containerd.io usermod -aG docker vagrant -# start receiver-mock -sudo docker create -p 3000:3000 --name receiver-mock --restart=always sumologic/kubernetes-tools receiver-mock --print-metrics -sudo docker start receiver-mock +# start sumologic-mock +sudo docker create -p 3000:3000 --name sumologic-mock --restart=always sumologic/sumologic-mock:2.23.0 sumologic-mock --print-metrics +sudo docker start sumologic-mock # Install collectd sudo apt-get install -y \