Sha256: 9f23a94a32997dd46a23e3b77a7566ef9ec8eba30be8e6641b7ddd72214bfe33

Contents?: true

Size: 954 Bytes

Versions: 1

Compression:

Stored size: 954 Bytes

Contents

# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|

  config.vm.box = "ubuntu/focal64"

  config.vm.provider "virtualbox" do |vb|
    vb.linked_clone = true
  end

  config.vm.network "forwarded_port", guest: 62225, host: 62225

  config.vm.provision "docker" do |d|
    d.post_install_provision "shell", inline: $dockerOpenTcpPortScript
  end

  config.vagrant.plugins = "vagrant-ssh-config"

end

$dockerOpenTcpPortScript = <<-'SCRIPT'
set -o errexit
set -o nounset
set -o xtrace

mkdir -p /etc/systemd/system/docker.service.d
echo '[Service]' > /etc/systemd/system/docker.service.d/override.conf
echo 'ExecStart=' >> /etc/systemd/system/docker.service.d/override.conf
echo 'ExecStart=/usr/bin/dockerd -H fd:// -H tcp://0.0.0.0:62225 --containerd=/run/containerd/containerd.sock' >> /etc/systemd/system/docker.service.d/override.conf
systemctl daemon-reload
systemctl stop docker.service
systemctl start docker.service
SCRIPT

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
vagrant-ssh-config-0.0.1 Vagrantfile