aboutsummaryrefslogtreecommitdiff
path: root/Vagrantfile
blob: b121431edadd73ad443d697c03a8a18ec8873566 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure("2") do |config|
    config.ssh.forward_env = [ "ARMLMD_LICENSE_FILE" ]
    config.ssh.forward_x11 = true

    config.vm.provision "file", source: "~/.gitconfig", destination: "${HOME}/.gitconfig"

    config.vm.provider "docker" do |d|
        d.build_dir = "docker"

        d.build_args = [ "--target", "vagrant" ]
        d.cmd = [ "sudo", "/usr/sbin/sshd", "-D" ]
        d.env = { "ARMLMD_LICENSE_FILE" => ENV["ARMLMD_LICENSE_FILE"] }

        d.has_ssh = true

        ENV["LC_ALL"] = "C.UTF-8"
    end
end