-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into noswap-2.0
- Loading branch information
Showing
12 changed files
with
110 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
config BR2_PACKAGE_RKTLET_MASTER | ||
bool "rktlet-master" | ||
default y | ||
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS | ||
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS | ||
depends on BR2_TOOLCHAIN_HAS_THREADS | ||
help | ||
The rkt implementation of the Kubernetes | ||
Container Runtime Interface. | ||
|
||
https://github.com/kubernetes-incubator/rktlet | ||
|
||
comment "rktlet needs a toolchain w/ threads" | ||
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS && \ | ||
BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS | ||
depends on !BR2_TOOLCHAIN_HAS_THREADS |
Binary file added
BIN
+4.98 MB
...oy/iso/minikube-iso/package/rktlet-master/fd7fc6bf4a25f03c22e5f6e30f3d9f12c468afcb.tar.gz
Binary file not shown.
2 changes: 2 additions & 0 deletions
2
deploy/iso/minikube-iso/package/rktlet-master/rktlet-master.hash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# Locally computed | ||
sha256 12254af0f8d9b1f653f20e943dbbda42b74f6eafe7331db74a32857e44efdc6f fd7fc6bf4a25f03c22e5f6e30f3d9f12c468afcb.tar.gz |
59 changes: 59 additions & 0 deletions
59
deploy/iso/minikube-iso/package/rktlet-master/rktlet-master.mk
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
################################################################################ | ||
# | ||
# rktlet | ||
# | ||
################################################################################ | ||
|
||
# HEAD as of 2018-05-28 | ||
RKTLET_MASTER_COMMIT = fd7fc6bf4a25f03c22e5f6e30f3d9f12c468afcb | ||
RKTLET_MASTER_VERSION = v0.1.0-21-gfd7fc6b | ||
RKTLET_MASTER_SITE = https://github.com/kubernetes-incubator/rktlet/archive | ||
RKTLET_MASTER_SOURCE = $(RKTLET_MASTER_COMMIT).tar.gz | ||
RKTLET_MASTER_LICENSE = Apache-2.0 | ||
RKTLET_MASTER_LICENSE_FILES = LICENSE | ||
|
||
RKTLET_MASTER_DEPENDENCIES = host-go | ||
|
||
RKTLET_MASTER_GOPATH = "$(@D)/Godeps/_workspace" | ||
RKTLET_MASTER_MAKE_ENV = $(HOST_GO_TARGET_ENV) \ | ||
CGO_ENABLED=1 \ | ||
GOBIN="$(@D)/bin" \ | ||
GOPATH="$(RKTLET_MASTER_GOPATH)" \ | ||
PATH=$(BR_PATH) | ||
|
||
RKTLET_MASTER_GLDFLAGS = \ | ||
-buildmode=pie -X github.com/kubernetes-incubator/rktlet/version.Version=$(RKTLET_MASTER_VERSION) | ||
|
||
ifeq ($(BR2_STATIC_LIBS),y) | ||
RKTLET_MASTER_GLDFLAGS += -extldflags '-static' | ||
endif | ||
|
||
RKTLET_MASTER_GOTAGS = cgo static_build | ||
|
||
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) | ||
RKTLET_MASTER_GOTAGS += seccomp | ||
RKTLET_MASTER_DEPENDENCIES += libseccomp host-pkgconf | ||
endif | ||
|
||
define RKTLET_MASTER_CONFIGURE_CMDS | ||
mkdir -p $(RKTLET_MASTER_GOPATH)/src/github.com/kubernetes-incubator | ||
ln -s $(@D) $(RKTLET_MASTER_GOPATH)/src/github.com/kubernetes-incubator/rktlet | ||
endef | ||
|
||
define RKTLET_MASTER_BUILD_CMDS | ||
cd $(@D) && $(RKTLET_MASTER_MAKE_ENV) $(HOST_DIR)/usr/bin/go \ | ||
build -v -o $(@D)/bin/rktlet \ | ||
-tags "$(RKTLET_MASTER_GOTAGS)" -ldflags "$(RKTLET_MASTER_GLDFLAGS)" github.com/kubernetes-incubator/rktlet/cmd/server | ||
endef | ||
|
||
define RKTLET_MASTER_INSTALL_TARGET_CMDS | ||
$(INSTALL) -D -m 0755 $(@D)/bin/rktlet $(TARGET_DIR)/usr/bin/rktlet | ||
endef | ||
|
||
define RKTLET_MASTER_INSTALL_INIT_SYSTEMD | ||
$(INSTALL) -Dm644 \ | ||
$(BR2_EXTERNAL_MINIKUBE_PATH)/package/rktlet-master/rktlet.service \ | ||
$(TARGET_DIR)/usr/lib/systemd/system/rktlet.service | ||
endef | ||
|
||
$(eval $(generic-package)) |
12 changes: 12 additions & 0 deletions
12
deploy/iso/minikube-iso/package/rktlet-master/rktlet.service
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
[Unit] | ||
Description=rktlet: The rkt implementation of a Kubernetes Container Runtime | ||
Documentation=https://github.com/kubernetes-incubator/rktlet/tree/master/docs | ||
|
||
[Service] | ||
ExecStart=/usr/bin/rktlet | ||
Restart=always | ||
StartLimitInterval=0 | ||
RestartSec=10 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |