-
Notifications
You must be signed in to change notification settings - Fork 4
/
alpine-docker-host-x86_64.json
72 lines (72 loc) · 2.33 KB
/
alpine-docker-host-x86_64.json
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
{
"description": "An Alpine Linux x86_64 based Docker host (minimal) operating system",
"variables": {
"vm_name": "alpine-docker-host",
"vm_description": "An Alpine Linux x86_64 based Docker host (minimal) operating system",
"vm_version": "1.0.0.0",
"vm_product": "Alpine Docker Host OS",
"vm_producturl": "https://alpinelinux.org/",
"vm_vendor": "Alpine Linux",
"vm_vendorurl": "https://alpinelinux.org/",
"vm_memory": "4096",
"vm_cpus": "2",
"disk_size": "12G",
"accelerator": "tcg",
"output_directory": "build/"
},
"provisioners": [
{
"type": "shell",
"scripts": [
"scripts/00-configure-base.sh",
"scripts/10-install-packages.sh",
"scripts/20-configure-networking.sh",
"scripts/25-configure-sshd.sh",
"scripts/30-configure-users.sh",
"scripts/60-configure-docker.sh",
"scripts/99-minimize-disk.sh"
]
}
],
"builders": [
{
"type": "qemu",
"headless": true,
"disk_size": "{{user `disk_size`}}",
"http_directory": "http",
"iso_urls": [
"http://dl-cdn.alpinelinux.org/alpine/v3.13/releases/x86_64/alpine-virt-3.13.2-x86_64.iso"
],
"iso_checksum": "sha256:2bfba779f5d6334543f7b2242a2a8956952c3170d083f255589c2c5c8fadc06a",
"communicator": "ssh",
"ssh_username": "root",
"ssh_password": "alpine/4u",
"ssh_wait_timeout": "10m",
"shutdown_command": "/sbin/poweroff",
"boot_wait": "2m",
"boot_command": [
"root<enter><wait>",
"ifconfig eth0 up && udhcpc -i eth0<enter><wait10>",
"wget http://{{ .HTTPIP }}:{{ .HTTPPort }}/answers<enter><wait>",
"setup-alpine -f $PWD/answers<enter><wait5>",
"alpine/4u<enter><wait>",
"alpine/4u<enter><wait>",
"<wait10><wait10><wait10>",
"y<enter>",
"<wait2m>",
"rc-service sshd stop<enter>",
"mount /dev/sda2 /mnt<enter>",
"echo 'PermitRootLogin yes' >> /mnt/etc/ssh/sshd_config<enter>",
"umount /mnt<enter>",
"reboot<enter>"
],
"format": "qcow2",
"accelerator": "{{user `accelerator`}}",
"net_device": "virtio-net",
"disk_interface": "virtio-scsi",
"vm_name": "{{user `vm_name`}}",
"output_directory": "{{user `output_directory`}}"
}
],
"post-processors": []
}