Unverified Commit 623f5798 authored by Michal Rostecki's avatar Michal Rostecki Committed by GitHub

Merge pull request #4192 from vadorovsky/vagrant-fixes

Various Vagrant improvements
parents 6b4d75d2 d6b6a3ee
OS = (ENV['OS'] || "alpine312")
DISTRO = (ENV['DISTRO'] || "alpine312")
BOX_REPO = (ENV['BOX_REPO'] || "generic")
HOME = ENV['HOME']
PROJ_HOME = File.dirname(__FILE__)
......@@ -17,7 +17,7 @@ MOUNT_TYPE = ENV['MOUNT_TYPE'] || "virtualbox"
# --- May need to add terminal to System Preferences -> Security & Privacy -> Privacy -> Full Disk Access
def provision(vm, node_num)
node_os = (ENV["OS_#{node_num}"] || OS)
node_os = (ENV["DISTRO_#{node_num}"] || DISTRO)
vm.box = (ENV["BOX_#{node_num}"] || ENV["BOX"] || "#{BOX_REPO}/#{node_os}")
vm.hostname = "#{PROJECT}-#{node_num}-#{vm.box.gsub(/^.*\//,"")}"
vm.network "private_network", ip: "#{NETWORK_PREFIX}.#{100+node_num}"
......@@ -33,6 +33,10 @@ Vagrant.configure("2") do |config|
v.memory = NODE_MEMORY
v.customize ["modifyvm", :id, "--audio", "none"]
end
config.vm.provider "libvirt" do |v|
v.cpus = NODE_CPUS
v.memory = NODE_MEMORY
end
if Vagrant.has_plugin?("vagrant-timezone")
config.timezone.value = :host
end
......
......@@ -9,17 +9,32 @@ export SELINUX=true
EOF
. /etc/profile.d/build.sh
# ---
apt-get update
apt-get install -y \
build-essential \
pkg-config \
ca-certificates \
curl \
docker.io \
gcc \
git \
jq \
libffi-dev \
libseccomp-dev \
libsqlite3-dev \
libselinux1-dev \
libuv1-dev \
make \
npm \
pkg-config \
python3 \
squashfs-tools \
tar \
wget \
vim \
zip \
zlib1g-dev \
zstd
# ---
sed -E 's|apk( -U)?( --no-cache)?( --repository [^ ]*)? add|apt-get install -y|g' -i /tmp/docker-run
. /tmp/docker-run
# ---
go get -u github.com/go-delve/delve/cmd/dlv
# ---
ubuntu1804
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment