mirror of
https://github.com/linuxkit/linuxkit.git
synced 2025-07-20 17:49:10 +00:00
Merge pull request #2578 from ijc/linuxkit-pkg
Bulk conversion from `pkg/package.mk` to `linuxkit pkg`
This commit is contained in:
commit
38e48d3bf4
8
Makefile
8
Makefile
@ -5,7 +5,7 @@ all: default
|
||||
VERSION="0.0" # dummy for now
|
||||
GIT_COMMIT=$(shell git rev-list -1 HEAD)
|
||||
|
||||
GO_COMPILE=linuxkit/go-compile:7cac05c5588b3dd6a7f7bdb34fc1da90257394c7
|
||||
GO_COMPILE=linuxkit/go-compile:20621b2539e546a8c94e625928f8d59f12684398
|
||||
|
||||
MOBY?=bin/moby
|
||||
LINUXKIT?=bin/linuxkit
|
||||
@ -94,19 +94,19 @@ ci: test-cross
|
||||
$(MAKE)
|
||||
$(MAKE) install
|
||||
$(MAKE) -C test all
|
||||
$(MAKE) -C pkg tag
|
||||
$(MAKE) -C pkg build
|
||||
|
||||
ci-tag: test-cross
|
||||
$(MAKE)
|
||||
$(MAKE) install
|
||||
$(MAKE) -C test all
|
||||
$(MAKE) -C pkg tag
|
||||
$(MAKE) -C pkg build
|
||||
|
||||
ci-pr: test-cross
|
||||
$(MAKE)
|
||||
$(MAKE) install
|
||||
$(MAKE) -C test pr
|
||||
$(MAKE) -C pkg tag
|
||||
$(MAKE) -C pkg build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
|
@ -3,30 +3,30 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0 page_poison=1"
|
||||
init:
|
||||
- linuxkit/vpnkit-expose-port:fa4ab4ac78b83fe392e39b861b4114c3bb02d170 # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/vpnkit-expose-port:62c36a9df76b53b36103783040d26246a5670697 # install vpnkit-expose-port and vpnkit-iptables-wrapper on host
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
# support metadata for optional config in /var/config
|
||||
- name: metadata
|
||||
image: linuxkit/metadata:52a3d36ed158357125f3a998f9d03784eb0636d3
|
||||
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: sysfs
|
||||
image: linuxkit/sysfs:3ae01a25583ee37a5ff8b09a0e569cb4bd8cf2e9
|
||||
image: linuxkit/sysfs:7ff47034ed61c8e4c7ca5b8992056c66c6f39df8
|
||||
- name: binfmt
|
||||
image: linuxkit/binfmt:472eeba777d056c5f98fe074aa0f581c67ccc7ff
|
||||
image: linuxkit/binfmt:dff7a32108d8e40922027642b598b4eb011f46bb
|
||||
# Format and mount the disk image in /var/lib/docker
|
||||
- name: format
|
||||
image: linuxkit/format:f180a74d878c8c0c86f6208f9311474c91452a79
|
||||
image: linuxkit/format:e7f06bd9bb96b663f8aab7d648a5dfc3ed7785fc
|
||||
- name: mount
|
||||
image: linuxkit/mount:96ac4d32d340ac6e4ddfbf506fa3a497d23649da
|
||||
image: linuxkit/mount:80c6aeef04260eaa7c74a93594ea7c5a4ab2808e
|
||||
command: ["/usr/bin/mountie", "/var/lib"]
|
||||
# make a swap file on the mounted disk
|
||||
- name: swap
|
||||
image: linuxkit/swap:3881b1e0fadb7765d2fa85d03563c887ab9335a6
|
||||
image: linuxkit/swap:195ef5c89fcd68ff412ecb01a330e75503dc7b83
|
||||
command: ["/swap.sh", "--path", "/var/lib/swap", "--size", "1024M"]
|
||||
# mount-vpnkit mounts the 9p share used by vpnkit to coordinate port forwarding
|
||||
- name: mount-vpnkit
|
||||
@ -44,41 +44,41 @@ onboot:
|
||||
- /var:/host_var
|
||||
command: ["sh", "-c", "mv -v /host_var/log /host_var/lib && ln -vs /var/lib/log /host_var/log"]
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
# Enable acpi to shutdown on power events
|
||||
- name: acpid
|
||||
image: linuxkit/acpid:79e5c20de96e1633c9c40935b99dde45aefba37b
|
||||
image: linuxkit/acpid:6e3f0c5deca1633230dce9a35b67e1f61f05c47a
|
||||
# Enable getty for easier debugging
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
# Run ntpd to keep time synchronised in the VM
|
||||
- name: ntpd
|
||||
image: linuxkit/openntpd:0d7befc79842849d0b88d6c3b64200e340d7cf67
|
||||
image: linuxkit/openntpd:8d32daf90ecf70b7e185cb7a2db53b4c539d371c
|
||||
# VSOCK to unix domain socket forwarding. Forwards guest /var/run/docker.sock
|
||||
# to a socket on the host.
|
||||
- name: vsudd
|
||||
image: linuxkit/vsudd:d40f65855dfc4fe4740ba5fb5d3282cbc2131715
|
||||
image: linuxkit/vsudd:c6afbe7c0abc87e9aa204fa98247f8b05dee3488
|
||||
binds:
|
||||
- /var/run:/var/run
|
||||
command: ["/vsudd", "-inport", "2376:unix:/var/run/docker.sock"]
|
||||
# vpnkit-forwarder forwards network traffic to/from the host via VSOCK port 62373.
|
||||
# It needs access to the vpnkit 9P coordination share
|
||||
- name: vpnkit-forwarder
|
||||
image: linuxkit/vpnkit-forwarder:42d80758e3b6a9f58cdfd25e53c775eebe951669
|
||||
image: linuxkit/vpnkit-forwarder:41dea19da37ce88d351ef3bd612004fb455a5a71
|
||||
binds:
|
||||
- /var/vpnkit:/port
|
||||
net: host
|
||||
command: ["/vpnkit-forwarder", "-vsockPort", "62373"]
|
||||
# Monitor for image deletes and invoke a TRIM on the container filesystem
|
||||
- name: trim-after-delete
|
||||
image: linuxkit/trim-after-delete:8e7aea3dc87bbb72cf56e62d8b8861ff93946480
|
||||
image: linuxkit/trim-after-delete:75f57f502528aa16dea1f9ac78b8993b217917fb
|
||||
# When the host resumes from sleep, force a clock resync
|
||||
- name: host-timesync-daemon
|
||||
image: linuxkit/host-timesync-daemon:625a906f2c3d9a3a2b8c856f062bc6c0d6b526bd
|
||||
image: linuxkit/host-timesync-daemon:a5f86805ac54c086fc1ef6fa107d50a13ef2ec7e
|
||||
|
||||
trust:
|
||||
org:
|
||||
|
@ -4,8 +4,8 @@ kernel:
|
||||
cmdline: "console=ttyS0"
|
||||
tar: none
|
||||
init:
|
||||
- linuxkit/init-lcow:877bfca958c836f7e0ba9a6157088905611a08f9
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/init-lcow:50112be5023c21bf5a355323243c56b30890bc89
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
files:
|
||||
- path: etc/linuxkit.yml
|
||||
metadata: yaml
|
||||
|
@ -22,7 +22,7 @@ docker run -it --rm \
|
||||
-v $(pwd):/go/src/github.com/linuxkit/linuxkit \
|
||||
-w /go/src/github.com/linuxkit/linuxkit/src/cmd/linuxkit \
|
||||
--entrypoint /go/bin/vndr \
|
||||
linuxkit/go-compile:7cac05c5588b3dd6a7f7bdb34fc1da90257394c7
|
||||
linuxkit/go-compile:20621b2539e546a8c94e625928f8d59f12684398
|
||||
```
|
||||
|
||||
To update a single dependency:
|
||||
@ -32,7 +32,7 @@ docker run -it --rm \
|
||||
-v $(pwd):/go/src/github.com/linuxkit/linuxkit \
|
||||
-w /go/src/github.com/linuxkit/linuxkit/src/cmd/linuxkit \
|
||||
--entrypoint /go/bin/vndr \
|
||||
linuxkit/go-compile:7cac05c5588b3dd6a7f7bdb34fc1da90257394c7
|
||||
linuxkit/go-compile:20621b2539e546a8c94e625928f8d59f12684398
|
||||
github.com/docker/docker
|
||||
```
|
||||
|
||||
|
@ -2,23 +2,23 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: metadata
|
||||
image: linuxkit/metadata:52a3d36ed158357125f3a998f9d03784eb0636d3
|
||||
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
||||
services:
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
binds:
|
||||
- /var/config/ssh/authorized_keys:/root/.ssh/authorized_keys
|
||||
- name: nginx
|
||||
|
@ -2,20 +2,20 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
services:
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
files:
|
||||
- path: root/.ssh/authorized_keys
|
||||
source: ~/.ssh/id_rsa.pub
|
||||
|
@ -2,31 +2,31 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: sysfs
|
||||
image: linuxkit/sysfs:3ae01a25583ee37a5ff8b09a0e569cb4bd8cf2e9
|
||||
image: linuxkit/sysfs:7ff47034ed61c8e4c7ca5b8992056c66c6f39df8
|
||||
- name: format
|
||||
image: linuxkit/format:f180a74d878c8c0c86f6208f9311474c91452a79
|
||||
image: linuxkit/format:e7f06bd9bb96b663f8aab7d648a5dfc3ed7785fc
|
||||
- name: mount
|
||||
image: linuxkit/mount:96ac4d32d340ac6e4ddfbf506fa3a497d23649da
|
||||
image: linuxkit/mount:80c6aeef04260eaa7c74a93594ea7c5a4ab2808e
|
||||
command: ["/usr/bin/mountie", "/var/lib/docker"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
- name: ntpd
|
||||
image: linuxkit/openntpd:0d7befc79842849d0b88d6c3b64200e340d7cf67
|
||||
image: linuxkit/openntpd:8d32daf90ecf70b7e185cb7a2db53b4c539d371c
|
||||
- name: docker
|
||||
image: docker:17.07.0-ce-dind
|
||||
capabilities:
|
||||
|
@ -2,27 +2,27 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: metadata
|
||||
image: linuxkit/metadata:52a3d36ed158357125f3a998f9d03784eb0636d3
|
||||
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
binds:
|
||||
- /var/config/ssh/authorized_keys:/root/.ssh/authorized_keys
|
||||
- name: nginx
|
||||
|
@ -2,24 +2,24 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
# to make insecure with passwordless root login, uncomment following lines
|
||||
#env:
|
||||
# - INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
files:
|
||||
- path: etc/getty.shadow
|
||||
# sample sets password for root to "abcdefgh" (without quotes)
|
||||
|
@ -2,16 +2,16 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
onboot:
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
trust:
|
||||
|
@ -2,18 +2,18 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
- name: node_exporter
|
||||
image: linuxkit/node_exporter:a058fe1c6a4440a9689022a9fd7cffdcfd56d52c
|
||||
trust:
|
||||
|
@ -2,27 +2,27 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS1"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: rngd1
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
command: ["/sbin/rngd", "-1"]
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: metadata
|
||||
image: linuxkit/metadata:52a3d36ed158357125f3a998f9d03784eb0636d3
|
||||
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
||||
command: ["/usr/bin/metadata", "packet"]
|
||||
services:
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
trust:
|
||||
org:
|
||||
- linuxkit
|
||||
|
@ -4,16 +4,16 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
onboot:
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: redis
|
||||
|
@ -2,27 +2,27 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: rngd1
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
command: ["/sbin/rngd", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
files:
|
||||
- path: root/.ssh/authorized_keys
|
||||
source: ~/.ssh/id_rsa.pub
|
||||
|
@ -2,33 +2,33 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: format
|
||||
image: linuxkit/format:f180a74d878c8c0c86f6208f9311474c91452a79
|
||||
image: linuxkit/format:e7f06bd9bb96b663f8aab7d648a5dfc3ed7785fc
|
||||
- name: mount
|
||||
image: linuxkit/mount:96ac4d32d340ac6e4ddfbf506fa3a497d23649da
|
||||
image: linuxkit/mount:80c6aeef04260eaa7c74a93594ea7c5a4ab2808e
|
||||
command: ["/usr/bin/mountie", "/var/external"]
|
||||
- name: swap
|
||||
image: linuxkit/swap:3881b1e0fadb7765d2fa85d03563c887ab9335a6
|
||||
image: linuxkit/swap:195ef5c89fcd68ff412ecb01a330e75503dc7b83
|
||||
# to use unencrypted swap, use:
|
||||
# command: ["/swap.sh", "--path", "/var/external/swap", "--size", "1G"]
|
||||
command: ["/swap.sh", "--path", "/var/external/swap", "--size", "1G", "--encrypt"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
capabilities:
|
||||
|
@ -2,25 +2,25 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.38
|
||||
cmdline: "console=tty0 console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: tss
|
||||
image: linuxkit/tss:7f7d8d3d76d764e3130dd92f52c4944908c8bd80
|
||||
image: linuxkit/tss:2c29b212733e90fbbd7aeaf032cadc044dbc7fe4
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
files:
|
||||
- path: etc/getty.shadow
|
||||
# sample sets password for root to "abcdefgh" (without quotes)
|
||||
|
@ -2,22 +2,22 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
capabilities:
|
||||
|
@ -2,12 +2,12 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
onboot:
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: mount-vpnkit
|
||||
image: alpine:3.6
|
||||
@ -19,15 +19,15 @@ onboot:
|
||||
command: ["sh", "-c", "mkdir /host_var/vpnkit && mount -v -t 9p -o trans=virtio,dfltuid=1001,dfltgid=50,version=9p2000 port /host_var/vpnkit"]
|
||||
services:
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
- name: vpnkit-forwarder
|
||||
image: linuxkit/vpnkit-forwarder:42d80758e3b6a9f58cdfd25e53c775eebe951669
|
||||
image: linuxkit/vpnkit-forwarder:41dea19da37ce88d351ef3bd612004fb455a5a71
|
||||
binds:
|
||||
- /var/vpnkit:/port
|
||||
net: host
|
||||
command: ["/vpnkit-forwarder"]
|
||||
- name: vpnkit-expose-port
|
||||
image: linuxkit/vpnkit-forwarder:42d80758e3b6a9f58cdfd25e53c775eebe951669
|
||||
image: linuxkit/vpnkit-forwarder:41dea19da37ce88d351ef3bd612004fb455a5a71
|
||||
net: none
|
||||
binds:
|
||||
- /var/vpnkit:/port
|
||||
|
@ -2,16 +2,16 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
onboot:
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
services:
|
||||
- name: vsudd
|
||||
image: linuxkit/vsudd:d40f65855dfc4fe4740ba5fb5d3282cbc2131715
|
||||
image: linuxkit/vsudd:c6afbe7c0abc87e9aa204fa98247f8b05dee3488
|
||||
binds:
|
||||
- /run/containerd/containerd.sock:/run/containerd/containerd.sock
|
||||
command: ["/vsudd",
|
||||
|
@ -2,27 +2,27 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=ttyS0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: metadata
|
||||
image: linuxkit/metadata:52a3d36ed158357125f3a998f9d03784eb0636d3
|
||||
image: linuxkit/metadata:4920d2b7f987c4cf67c5472308b0badcdfac4b2b
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: sshd
|
||||
image: linuxkit/sshd:361e9d03f96ef5f22e61c69280ffb9291bde746f
|
||||
image: linuxkit/sshd:4a2fc7be31fa57dcade391de6173e0af55296e7f
|
||||
binds:
|
||||
- /var/config/ssh/authorized_keys:/root/.ssh/authorized_keys
|
||||
- name: nginx
|
||||
|
@ -2,18 +2,18 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.49
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
- name: wg0
|
||||
image: linuxkit/ip:bdc10950043419d4eb19a10c3122e12ee472d465
|
||||
image: linuxkit/ip:7a82871df06767cfe26a04d0ed6bee1031ba5d04
|
||||
net: new
|
||||
binds:
|
||||
- /etc/wireguard:/etc/wireguard
|
||||
@ -26,7 +26,7 @@ onboot:
|
||||
bindNS:
|
||||
net: /run/netns/wg0
|
||||
- name: wg1
|
||||
image: linuxkit/ip:bdc10950043419d4eb19a10c3122e12ee472d465
|
||||
image: linuxkit/ip:7a82871df06767cfe26a04d0ed6bee1031ba5d04
|
||||
net: new
|
||||
binds:
|
||||
- /etc/wireguard:/etc/wireguard
|
||||
@ -40,12 +40,12 @@ onboot:
|
||||
net: /run/netns/wg1
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:48870d0f92c65fecd6ddb18004d68d85f9b9cde3
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
net: /run/netns/wg1
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
net: /run/netns/wg0
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:4476496e70a41705f9a8f1c9162a4e21a40817fe AS kernel-build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS kernel-build
|
||||
RUN apk add \
|
||||
argp-standalone \
|
||||
automake \
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:4476496e70a41705f9a8f1c9162a4e21a40817fe AS kernel-build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS kernel-build
|
||||
RUN apk add \
|
||||
argp-standalone \
|
||||
build-base \
|
||||
|
@ -1,6 +1,6 @@
|
||||
ARG IMAGE
|
||||
FROM ${IMAGE} AS ksrc
|
||||
FROM linuxkit/alpine:4476496e70a41705f9a8f1c9162a4e21a40817fe AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
RUN apk add \
|
||||
attr-dev \
|
||||
autoconf \
|
||||
|
@ -63,7 +63,7 @@ endif
|
||||
|
||||
KERNEL_VERSIONS=
|
||||
|
||||
.PHONY: check tag push
|
||||
.PHONY: check build push
|
||||
# Targets:
|
||||
# fetch: Downloads the kernel sources into ./sources
|
||||
# build: Builds all kernels
|
||||
|
16
linuxkit.yml
16
linuxkit.yml
@ -2,15 +2,15 @@ kernel:
|
||||
image: linuxkit/kernel:4.9.53
|
||||
cmdline: "console=tty0 console=ttyS0 console=ttyAMA0"
|
||||
init:
|
||||
- linuxkit/init:7804129bd06218b72c298139a25698a748d253c6
|
||||
- linuxkit/runc:a1b564248a0d0b118c11e61db9f84ecf41dd2d2a
|
||||
- linuxkit/containerd:417f83f7b8dc1fa36acf90effe44f99c7397480a
|
||||
- linuxkit/ca-certificates:e44b0a66df5a102c0e220f0066b0d904710dcb10
|
||||
- linuxkit/init:98e95fb67e8afcf02c09ba927e4b357fec42977a
|
||||
- linuxkit/runc:991ef358ad8fc1111d64f4d8071f2009cc561f6a
|
||||
- linuxkit/containerd:eaf0d615cfceb9d854408dd3c80429ee8ac4d051
|
||||
- linuxkit/ca-certificates:ea3c4c120f929f4f07ac8535d75933365b5e9582
|
||||
onboot:
|
||||
- name: sysctl
|
||||
image: linuxkit/sysctl:154913b72c6f1f33eb408609fca9963628e8c051
|
||||
image: linuxkit/sysctl:53f0c724919e8f76ea06c44ee703330290b22669
|
||||
- name: dhcpcd
|
||||
image: linuxkit/dhcpcd:d4408777ed6b6e6e562a5d4938fd09804324b33e
|
||||
image: linuxkit/dhcpcd:aa685261ceb2557990dcfe9dd8824c6b9ec416e2
|
||||
command: ["/sbin/dhcpcd", "--nobackground", "-f", "/dhcpcd.conf", "-1"]
|
||||
onshutdown:
|
||||
- name: shutdown
|
||||
@ -18,11 +18,11 @@ onshutdown:
|
||||
command: ["/bin/echo", "so long and thanks for all the fish"]
|
||||
services:
|
||||
- name: getty
|
||||
image: linuxkit/getty:a19851531487b7bfbe45dcf77e3309c127cc78a6
|
||||
image: linuxkit/getty:7abaf7b276c59f80891d92e9279e3e3ee8e2f512
|
||||
env:
|
||||
- INSECURE=true
|
||||
- name: rngd
|
||||
image: linuxkit/rngd:558e86a36242bb74353bc9287b715ddb8567357e
|
||||
image: linuxkit/rngd:719e087b06dd14c29acd23fa07cccd036bbab4db
|
||||
- name: nginx
|
||||
image: nginx:alpine
|
||||
capabilities:
|
||||
|
25
pkg/Makefile
25
pkg/Makefile
@ -1,20 +1,19 @@
|
||||
DIRS = $(shell find . -maxdepth 1 -mindepth 1 -type d)
|
||||
.PHONY: clean dirs $(DIRS)
|
||||
|
||||
# TODO(ijc) once all switch to `linuxkit pkg` update this to:
|
||||
# linuxkit pkg <build|push> [--force] $$d
|
||||
# linuxkit pkg show-tag $$d
|
||||
DIRS = $(dir $(shell find . -maxdepth 2 -mindepth 2 -type f -name build.yml))
|
||||
.PHONY: push force-push build forcebuild show-tag clean
|
||||
|
||||
push:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d"; done
|
||||
@set -e; for d in $(DIRS); do linuxkit pkg push "$$d"; done
|
||||
|
||||
tag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" tag; done
|
||||
forcepush:
|
||||
@set -e; for d in $(DIRS); do linuxkit pkg push --force "$$d"; done
|
||||
|
||||
forcetag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" forcetag; done
|
||||
build:
|
||||
@set -e; for d in $(DIRS); do linuxkit pkg build "$$d"; done
|
||||
|
||||
forcebuild:
|
||||
@set -e; for d in $(DIRS); do linuxkit pkg build --force "$$d"; done
|
||||
|
||||
show-tag:
|
||||
@set -e; for d in $(DIRS); do make -C "$$d" show-tag; done
|
||||
@set -e; for d in $(DIRS); do linuxkit pkg show-tag "$$d"; done
|
||||
|
||||
clean: ;
|
||||
clean:
|
||||
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
@ -6,7 +6,7 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
busybox
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror2
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror2
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
busybox-initscripts
|
||||
|
@ -1,3 +0,0 @@
|
||||
IMAGE=acpid
|
||||
|
||||
include ../package.mk
|
1
pkg/acpid/build.yml
Normal file
1
pkg/acpid/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: acpid
|
@ -1,10 +1,10 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
RUN apk add abuild gcc git
|
||||
|
||||
ADD build.sh /
|
||||
RUN adduser -D -G abuild builder && sudo -u builder /build.sh
|
||||
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
COPY --from=build /home/builder/*apk /
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
|
@ -1,16 +0,0 @@
|
||||
.PHONY: push forcepush tag forcetag show-tag
|
||||
|
||||
push:
|
||||
linuxkit pkg push .
|
||||
|
||||
forcepush:
|
||||
linuxkit pkg push --force .
|
||||
|
||||
tag:
|
||||
linuxkit pkg build .
|
||||
|
||||
forcetag:
|
||||
linuxkit pkg build --force .
|
||||
|
||||
show-tag:
|
||||
linuxkit pkg show-tag .
|
@ -1,10 +1,10 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS qemu
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS qemu
|
||||
RUN apk add \
|
||||
qemu-aarch64 \
|
||||
qemu-arm \
|
||||
qemu-ppc64le
|
||||
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,16 +0,0 @@
|
||||
.PHONY: push forcepush tag forcetag show-tag
|
||||
|
||||
push:
|
||||
linuxkit pkg push .
|
||||
|
||||
forcepush:
|
||||
linuxkit pkg push --force .
|
||||
|
||||
tag:
|
||||
linuxkit pkg build .
|
||||
|
||||
forcetag:
|
||||
linuxkit pkg build --force .
|
||||
|
||||
show-tag:
|
||||
linuxkit pkg show-tag .
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 as alpine
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d as alpine
|
||||
|
||||
RUN apk add ca-certificates
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
IMAGE=ca-certificates
|
||||
|
||||
include ../package.mk
|
1
pkg/ca-certificates/build.yml
Normal file
1
pkg/ca-certificates/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: ca-certificates
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:28254e4530703db4caa6b0199a025c30a987dfa1 as alpine
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d as alpine
|
||||
RUN apk add tzdata
|
||||
|
||||
WORKDIR $GOPATH/src/github.com/containerd/containerd
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=containerd
|
||||
DEPS=$(wildcard cmd/service/*.go) etc/containerd/config.toml
|
||||
|
||||
include ../package.mk
|
1
pkg/containerd/build.yml
Normal file
1
pkg/containerd/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: containerd
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=dhcpcd
|
||||
DEPS=dhcpcd.conf $(wildcard usr/lib/dhcpcd/dhcpcd-hooks/*)
|
||||
|
||||
include ../package.mk
|
1
pkg/dhcpcd/build.yml
Normal file
1
pkg/dhcpcd/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: dhcpcd
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
@ -15,7 +15,7 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
&& true
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=extend
|
||||
DEPS=extend.go
|
||||
|
||||
include ../package.mk
|
1
pkg/extend/build.yml
Normal file
1
pkg/extend/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: extend
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:d1778ee29f11475548f0e861f57005a84e82ba4e AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
@ -15,7 +15,7 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
&& true
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM linuxkit/alpine:d1778ee29f11475548f0e861f57005a84e82ba4e AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=format
|
||||
DEPS=format.go
|
||||
|
||||
include ../package.mk
|
1
pkg/format/build.yml
Normal file
1
pkg/format/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: format
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:d1778ee29f11475548f0e861f57005a84e82ba4e AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=getty
|
||||
DEPS=usr/bin/rungetty.sh $(wildcard etc/*) $(wildcard etc/init.d/*)
|
||||
|
||||
include ../package.mk
|
1
pkg/getty/build.yml
Normal file
1
pkg/getty/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: getty
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev git
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,6 +0,0 @@
|
||||
IMAGE=host-timesync-daemon
|
||||
DEPS=$(wildcard *.go)
|
||||
NETWORK=1
|
||||
ARCHES=x86_64
|
||||
|
||||
include ../package.mk
|
4
pkg/host-timesync-daemon/build.yml
Normal file
4
pkg/host-timesync-daemon/build.yml
Normal file
@ -0,0 +1,4 @@
|
||||
image: host-timesync-daemon
|
||||
network: true
|
||||
arches:
|
||||
- amd64
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:77287352db68b442534c0005edd6ff750c8189f3 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
@ -7,7 +7,7 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
musl
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM linuxkit/alpine:77287352db68b442534c0005edd6ff750c8189f3 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
ENV OPENGCS_REPO=https://github.com/Microsoft/opengcs
|
||||
ENV OPENGCS_COMMIT=48ae4e3ba3d2fea746fb4dc20a72832a46f45466
|
||||
RUN apk add --no-cache build-base curl git go musl-dev
|
||||
|
@ -1,5 +0,0 @@
|
||||
IMAGE=init-lcow
|
||||
NETWORK=1
|
||||
ARCHES=x86_64
|
||||
|
||||
include ../package.mk
|
4
pkg/init-lcow/build.yml
Normal file
4
pkg/init-lcow/build.yml
Normal file
@ -0,0 +1,4 @@
|
||||
image: init-lcow
|
||||
network: true
|
||||
arches:
|
||||
- amd64
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:28254e4530703db4caa6b0199a025c30a987dfa1 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
RUN apk add --no-cache --initdb alpine-baselayout make gcc musl-dev git linux-headers
|
||||
|
||||
ADD usermode-helper.c ./
|
||||
@ -16,7 +16,7 @@ RUN mkdir /tmp/bin && cd /tmp/bin/ && cp /go/bin/rc.init . && ln -s rc.init rc.s
|
||||
RUN cd /go/src/cmd/service && ./skanky-vendor.sh $GOPATH/src/github.com/containerd/containerd
|
||||
RUN go-compile.sh /go/src/cmd/service
|
||||
|
||||
FROM linuxkit/alpine:1e67b8fdba849ed2f7e8537c13b7f280639623d6 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out alpine-baselayout busybox musl
|
||||
|
||||
|
@ -1,16 +0,0 @@
|
||||
.PHONY: push forcepush tag forcetag show-tag
|
||||
|
||||
push:
|
||||
linuxkit pkg push .
|
||||
|
||||
forcepush:
|
||||
linuxkit pkg push --force .
|
||||
|
||||
tag:
|
||||
linuxkit pkg build .
|
||||
|
||||
forcetag:
|
||||
linuxkit pkg build --force .
|
||||
|
||||
show-tag:
|
||||
linuxkit pkg show-tag .
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:d1778ee29f11475548f0e861f57005a84e82ba4e AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add curl
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=ip
|
||||
NETWORK=1
|
||||
|
||||
include ../package.mk
|
2
pkg/ip/build.yml
Normal file
2
pkg/ip/build.yml
Normal file
@ -0,0 +1,2 @@
|
||||
image: ip
|
||||
network: true
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev linux-headers
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=metadata
|
||||
DEPS=$(wildcard *.go)
|
||||
|
||||
include ../package.mk
|
1
pkg/metadata/build.yml
Normal file
1
pkg/metadata/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: metadata
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,5 +0,0 @@
|
||||
IMAGE=mkimage
|
||||
DEPS=mkimage.sh
|
||||
ARCHES=x86_64
|
||||
|
||||
include ../package.mk
|
3
pkg/mkimage/build.yml
Normal file
3
pkg/mkimage/build.yml
Normal file
@ -0,0 +1,3 @@
|
||||
image: mkimage
|
||||
arches:
|
||||
- amd64
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,3 +0,0 @@
|
||||
IMAGE=modprobe
|
||||
|
||||
include ../package.mk
|
1
pkg/modprobe/build.yml
Normal file
1
pkg/modprobe/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: modprobe
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
@ -9,7 +9,7 @@ RUN apk add --no-cache --initdb -p /out \
|
||||
&& true
|
||||
RUN rm -rf /out/etc/apk /out/lib/apk /out/var/cache
|
||||
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=mount
|
||||
DEPS=mountie.go
|
||||
|
||||
include ../package.mk
|
1
pkg/mount/build.yml
Normal file
1
pkg/mount/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: mount
|
@ -1,6 +1,3 @@
|
||||
IMAGE=node_exporter
|
||||
image: node_exporter
|
||||
# Can't pull with content trust. Skip for now
|
||||
# https://github.com/linuxkit/linuxkit/issues/2349
|
||||
ARCHES=SKIP
|
||||
|
||||
include ../package.mk
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
alpine-baselayout \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=open-vm-tools
|
||||
ARCHES=x86_64
|
||||
|
||||
include ../package.mk
|
3
pkg/open-vm-tools/build.yml
Normal file
3
pkg/open-vm-tools/build.yml
Normal file
@ -0,0 +1,3 @@
|
||||
image: open-vm-tools
|
||||
arches:
|
||||
- amd64
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=openntpd
|
||||
DEPS=etc/ntpd.conf
|
||||
|
||||
include ../package.mk
|
1
pkg/openntpd/build.yml
Normal file
1
pkg/openntpd/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: openntpd
|
123
pkg/package.mk
123
pkg/package.mk
@ -1,123 +0,0 @@
|
||||
.PHONY: image tag forcetag show-tag check-dirty push forcepush
|
||||
default: push
|
||||
|
||||
ORG?=linuxkit
|
||||
SOURCE ?= .
|
||||
|
||||
ARCH := $(shell uname -m)
|
||||
|
||||
# Hash is of $(CURDIR) not $(CURDIR)$(SOURCE) to allow autogenerated
|
||||
# source subdirectories (which would not be covered by ls-tree, but
|
||||
# the code which autogenerates should be in $(CURDIR) so that is what
|
||||
# we want to use.
|
||||
ifeq ($(HASH),)
|
||||
HASH_COMMIT?=HEAD # Setting this is only really useful with the show-tag target
|
||||
HASH?=$(shell git ls-tree --full-tree $(HASH_COMMIT) -- $(CURDIR) | awk '{print $$3}')
|
||||
|
||||
ifneq ($(HASH_COMMIT),HEAD) # Others can't be dirty by definition
|
||||
DIRTY:=$(shell git update-index -q --refresh && git diff-index --quiet HEAD -- $(CURDIR) || echo "-dirty")
|
||||
endif
|
||||
|
||||
ifeq ($(ARCH), x86_64)
|
||||
SUFFIX=-amd64
|
||||
endif
|
||||
ifeq ($(ARCH), aarch64)
|
||||
SUFFIX=-arm64
|
||||
endif
|
||||
|
||||
endif
|
||||
|
||||
# Makefiles can specify specific architectures they compile for. Default: all
|
||||
ifeq ($(ARCHES),)
|
||||
ARCHES:=x86_64 aarch64
|
||||
endif
|
||||
|
||||
ifneq ($(filter $(ARCH),$(ARCHES)),)
|
||||
REAL:=-y
|
||||
else
|
||||
REAL:=-n
|
||||
endif
|
||||
|
||||
TAG:=$(ORG)/$(IMAGE):$(HASH)$(DIRTY)
|
||||
|
||||
REPO?=https://github.com/linuxkit/linuxkit
|
||||
ifneq ($(REPO),)
|
||||
REPO_LABEL=--label org.opencontainers.image.source=$(REPO)
|
||||
endif
|
||||
ifeq ($(DIRTY),)
|
||||
REPO_COMMIT=$(shell git rev-parse HEAD)
|
||||
COMMIT_LABEL=--label org.opencontainers.image.revision=$(REPO_COMMIT)
|
||||
endif
|
||||
LABELS=$(REPO_LABEL) $(COMMIT_LABEL)
|
||||
|
||||
BASE_DEPS=Dockerfile Makefile
|
||||
|
||||
# Get a release tag, if present
|
||||
RELEASE:=$(shell git tag -l --points-at HEAD)
|
||||
|
||||
# Path to push-manifest.sh
|
||||
PUSH_MANIFEST:=$(shell git rev-parse --show-toplevel)/scripts/push-manifest.sh
|
||||
|
||||
ifdef NETWORK
|
||||
NET_OPT=
|
||||
else
|
||||
NET_OPT=--network=none
|
||||
endif
|
||||
|
||||
ifeq ($(DOCKER_CONTENT_TRUST),)
|
||||
ifndef NOTRUST
|
||||
export DOCKER_CONTENT_TRUST=1
|
||||
endif
|
||||
endif
|
||||
|
||||
tag: tag$(REAL)
|
||||
forcetag: forcetag$(REAL)
|
||||
push: push$(REAL)
|
||||
forcepush: forcepush$(REAL)
|
||||
|
||||
show-tag:
|
||||
@echo $(TAG)
|
||||
|
||||
tag-y: $(BASE_DEPS) $(DEPS)
|
||||
docker pull $(TAG)$(SUFFIX) || \
|
||||
docker build $(LABELS) $(NET_OPT) -t $(TAG)$(SUFFIX) $(SOURCE)
|
||||
|
||||
forcetag-y: $(BASE_DEPS) $(DEPS)
|
||||
docker build $(LABELS) $(NET_OPT) -t $(TAG)$(SUFFIX) $(SOURCE)
|
||||
|
||||
check-dirty:
|
||||
ifneq ($(DIRTY),)
|
||||
$(error Your repository is not clean. Will not push package image)
|
||||
endif
|
||||
ifeq ($(SUFFIX),)
|
||||
$(error Refusing to push without a SUFFIX)
|
||||
endif
|
||||
|
||||
push-y: tag-y check-dirty
|
||||
docker pull $(TAG)$(SUFFIX) || \
|
||||
(docker push $(TAG)$(SUFFIX) && \
|
||||
$(PUSH_MANIFEST) $(TAG) $(DOCKER_CONTENT_TRUST))
|
||||
ifneq ($(RELEASE),)
|
||||
docker tag $(TAG)$(SUFFIX) $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
|
||||
docker push $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
|
||||
$(PUSH_MANIFEST) $(ORG)/$(IMAGE):$(RELEASE) $(DOCKER_CONTENT_TRUST)
|
||||
endif
|
||||
|
||||
forcepush-y: forcetag-y check-dirty
|
||||
docker push $(TAG)$(SUFFIX)
|
||||
$(PUSH_MANIFEST) $(TAG) $(DOCKER_CONTENT_TRUST)
|
||||
ifneq ($(RELEASE),)
|
||||
docker tag $(TAG)$(SUFFIX) $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
|
||||
docker push $(ORG)/$(IMAGE):$(RELEASE)$(SUFFIX)
|
||||
$(PUSH_MANIFEST) $(ORG)/$(IMAGE):$(RELEASE) $(DOCKER_CONTENT_TRUST)
|
||||
endif
|
||||
|
||||
# If not supported for an arch, print a message
|
||||
tag-n:
|
||||
$(info This package does not work on $(ARCH). Ignored)
|
||||
forcetag-n:
|
||||
$(info This package does not work on $(ARCH). Ignored)
|
||||
push-n:
|
||||
$(info This package does not work on $(ARCH). Ignored)
|
||||
forcepush-n:
|
||||
$(info This package does not work on $(ARCH). Ignored)
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS build
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS build
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN mkdir -p /out/var/run
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,3 +0,0 @@
|
||||
IMAGE=qemu-ga
|
||||
|
||||
include ../package.mk
|
1
pkg/qemu-ga/build.yml
Normal file
1
pkg/qemu-ga/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: qemu-ga
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN apk add --no-cache go gcc musl-dev linux-headers
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=rngd
|
||||
DEPS:=$(wildcard cmd/rngd/*.go) $(shell find cmd/rngd/vendor)
|
||||
|
||||
include ../package.mk
|
1
pkg/rngd/build.yml
Normal file
1
pkg/rngd/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: rngd
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:6ed3b299f5243acb6459b4993549c5045e4ad7f4 as alpine
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d as alpine
|
||||
RUN \
|
||||
apk add \
|
||||
bash \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=runc
|
||||
NETWORK=1
|
||||
|
||||
include ../package.mk
|
2
pkg/runc/build.yml
Normal file
2
pkg/runc/build.yml
Normal file
@ -0,0 +1,2 @@
|
||||
image: runc
|
||||
network: true
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:d1778ee29f11475548f0e861f57005a84e82ba4e AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=sshd
|
||||
DEPS=etc/motd etc/ssh/sshd_config usr/bin/ssh.sh
|
||||
|
||||
include ../package.mk
|
1
pkg/sshd/build.yml
Normal file
1
pkg/sshd/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: sshd
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN mkdir -p /out/etc/apk && cp -r /etc/apk/* /out/etc/apk/
|
||||
RUN apk add --no-cache --initdb -p /out \
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=swap
|
||||
DEPS=swap.sh
|
||||
|
||||
include ../package.mk
|
1
pkg/swap/build.yml
Normal file
1
pkg/swap/build.yml
Normal file
@ -0,0 +1 @@
|
||||
image: swap
|
@ -1,4 +1,4 @@
|
||||
FROM linuxkit/alpine:87a0cd10449d72f374f950004467737dbf440630 AS mirror
|
||||
FROM linuxkit/alpine:ad35b6ddbc70faa07e59a9d7dee7707c08122e8d AS mirror
|
||||
|
||||
RUN apk add --no-cache go musl-dev
|
||||
ENV GOPATH=/go PATH=$PATH:/go/bin
|
||||
|
@ -1,4 +0,0 @@
|
||||
IMAGE=sysctl
|
||||
DEPS=main.go
|
||||
|
||||
include ../package.mk
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user