-
Notifications
You must be signed in to change notification settings - Fork 390
/
Vagrantfile
42 lines (35 loc) · 1.53 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/jammy64"
config.ssh.forward_agent = false
config.vm.define "my-cool-app.local", primary: true do |app|
app.vm.hostname = "my-cool-app"
app.vm.network "private_network", type: "dhcp"
end
config.vm.provider "virtualbox" do |vb|
vb.customize ["modifyvm", :id, "--name", "django_default_project", "--memory", "1024"]
end
config.vm.provider "docker" do |d, override|
override.vm.box = nil
d.name = "django_default_project"
d.build_dir = "docker"
d.create_args = ["--publish-all", "--security-opt=seccomp:unconfined",
"--tmpfs=/run", "--tmpfs=/run/lock", "--tmpfs=/tmp",
"--volume=/sys/fs/cgroup:/sys/fs/cgroup:ro"]
d.has_ssh = true
end
# For local development, uncommenting and editing the line below will enable
# a folder in the host machine containing your local git repo to be synced to
# the guest machine. Ensure the Ansible playbook variable "setup_git_repo" is
# set to "no" (in group_vars/vagrant/vars.yml) when enabling this.
#config.vm.synced_folder "../../../django_default_project", "/webapps/django_default_project/django_default_project"
# Ansible provisioner.
config.vm.provision "ansible" do |ansible|
ansible.playbook = "vagrant.yml"
ansible.host_key_checking = false
ansible.verbose = "vv"
end
end