Browse Source

Add Sample Data

layerset
Till Wegmüller 6 years ago
parent
commit
4322964ff5
  1. 1
      Jenkinsfile
  2. 206
      samples/imagedefs.json
  3. 20
      samples/profile.json

1
Jenkinsfile vendored

@ -29,6 +29,7 @@ node {
stage('Build'){
sh 'go build -o output/imageadm cmd/imageadm.go'
sh 'cp samples/* output'
}

206
samples/imagedefs.json

@ -0,0 +1,206 @@
{
"sections": {
"base": {
"name": "base",
"paths": [
"bash",
"grep",
"/etc/resolv.conf"
]
},
"basicshell": {
"name": "basicshell",
"users": [
"root"
],
"groups": [
"root"
],
"comment": "bash based shell with several basic utilities",
"paths": [
"/bin/sh",
"bash",
"ls",
"cat",
"chmod",
"cp",
"cpio",
"date",
"dd",
"echo",
"egrep",
"false",
"fgrep",
"grep",
"gunzip",
"gzip",
"ln",
"ls",
"mkdir",
"mktemp",
"more",
"mv",
"pwd",
"rm",
"rmdir",
"sed",
"sh",
"sleep",
"sync",
"tar",
"touch",
"true",
"uncompress",
"zcat",
"/etc/motd",
"/etc/profile",
"/etc/bash.bashrc",
"/usr/lib/locale/en_US.UTF-8"
],
"dependencies": [
"uidbasics"
]
},
"installd": {
"name": "installd",
"paths": [
"svccfg",
"svcadm",
"svcs",
"zfs",
"zpool",
"devfsadm",
"devprop",
"cfgadm",
"svc.startd",
"/etc/inittab",
"soconfig",
"autopush",
"svcprop",
"truss",
"wget",
"pkill",
"mkfifo",
"beadm",
"pmadm",
"format",
"fdisk",
"bootadm",
"cryptoadm",
"dladm",
"ipadm",
"flowadm",
"init",
"installgrub",
"mount",
"mountall",
"fsck",
"routeadm",
"route",
"sync",
"uname",
"quota",
"prtconf",
"lofiadm",
"df",
"coreadm",
"/usr/lib/platexec",
"/usr/lib/iconv/646%UTF-8.so",
"/usr/lib/iconv/UTF-8%646.so",
"/bin",
"/sbin",
"/boot",
"/lib",
"/etc",
"/var/svc/profile",
"/var/svc/manifest",
"/usr/lib/fs",
"/usr/lib/devfsadm"
]
},
"kernel": {
"name": "kernel",
"paths": [
"/kernel",
"/platform/i86hvm",
"/platform/i86xpv",
"/platform/i86pc/amd64",
"/platform/i86pc/boot_archive",
"/platform/i86pc/boot_archive.hash",
"/platform/i86pc/kernel",
"/platform/i86pc/multiboot",
"/platform/i86pc/ucode"
]
},
"logbasics": {
"name": "logbasics",
"devices": [
"/dev/log",
"/dev/conslog"
],
"paths": [
"/etc/localtime"
]
},
"netbasics": {
"name": "netbasics",
"paths": [
"/etc/resolv.conf",
"/etc/host.conf",
"/etc/hosts",
"/etc/protocols",
"/etc/services"
]
},
"rsync": {
"name": "rsync",
"paths": [
"rsync"
],
"dependencies": [
"netbasics",
"uidbasics"
]
},
"scp": {
"name": "scp",
"devices": [
"/dev/urandom",
"/dev/random",
"/dev/null"
],
"comment": "ssh secure shell",
"paths": [
"scp"
],
"dependencies": [
"netbasics",
"uidbasics"
]
},
"ssh": {
"name": "ssh",
"devices": [
"/dev/null",
"/dev/urandom",
"/dev/random"
],
"paths": [
"ssh"
],
"dependencies": [
"netbasics",
"uidbasics"
]
},
"uidbasics": {
"name": "uidbasics",
"paths": [
"/etc/default/nss",
"/lib/libnsl.so.1",
"/usr/lib/nss_*.so.1",
"/etc/nsswitch.conf"
]
}
}
}

20
samples/profile.json

@ -0,0 +1,20 @@
{
"type": "chroot",
"file_sets": [
"kernel",
"installd",
"basicshell"
],
"manifest": {
"acKind": "ImageManifest",
"acVersion": "0.8.10+git",
"name": "installd"
},
"files": [],
"users": [
"root"
],
"groups": [
"root"
]
}
Loading…
Cancel
Save