mirror of
https://github.com/flatcar/scripts.git
synced 2025-12-08 19:02:10 +01:00
Merge pull request #1269 from crawford/rkt
app-emulation/rkt: bump to v0.5.5 and add gc timer
This commit is contained in:
commit
13d4294c79
7
sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/files/rkt-gc.service
vendored
Normal file
7
sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/files/rkt-gc.service
vendored
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Garbage Collection for rkt
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Environment=GRACE_PERIOD=1d
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=/usr/bin/rkt gc --grace-period=$GRACE_PERIOD
|
||||||
9
sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/files/rkt-gc.timer
vendored
Normal file
9
sdk_container/src/third_party/coreos-overlay/app-emulation/rkt/files/rkt-gc.timer
vendored
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Periodic Garbage Collection for rkt
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnActiveSec=0s
|
||||||
|
OnUnitActiveSec=12h
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@ -5,12 +5,12 @@ EAPI=5
|
|||||||
CROS_WORKON_PROJECT="coreos/rkt"
|
CROS_WORKON_PROJECT="coreos/rkt"
|
||||||
CROS_WORKON_LOCALNAME="rkt"
|
CROS_WORKON_LOCALNAME="rkt"
|
||||||
CROS_WORKON_REPO="git://github.com"
|
CROS_WORKON_REPO="git://github.com"
|
||||||
inherit cros-workon
|
inherit cros-workon systemd
|
||||||
|
|
||||||
if [[ "${PV}" == 9999 ]]; then
|
if [[ "${PV}" == 9999 ]]; then
|
||||||
KEYWORDS="~amd64"
|
KEYWORDS="~amd64"
|
||||||
else
|
else
|
||||||
CROS_WORKON_COMMIT="c8a7050a883653266137ae05f6e8f166db52eb67" # v0.5.4
|
CROS_WORKON_COMMIT="40ced98c320c056e343fe9c3eaeb90a4ff248936" # v0.5.5
|
||||||
KEYWORDS="amd64"
|
KEYWORDS="amd64"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
@ -51,4 +51,7 @@ src_install() {
|
|||||||
|
|
||||||
insinto /usr/share/rkt
|
insinto /usr/share/rkt
|
||||||
doins "${S}/bin/stage1.aci"
|
doins "${S}/bin/stage1.aci"
|
||||||
|
|
||||||
|
systemd_dounit "${FILESDIR}"/${PN}-gc.service
|
||||||
|
systemd_dounit "${FILESDIR}"/${PN}-gc.timer
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user