diff --git a/deploy/iso/minikube-iso/package/Config.in b/deploy/iso/minikube-iso/package/Config.in index d33f9e33565a..f9a04fdfbe5b 100644 --- a/deploy/iso/minikube-iso/package/Config.in +++ b/deploy/iso/minikube-iso/package/Config.in @@ -1,6 +1,7 @@ menu "System tools" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/runc-master/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/podman/Config.in" + source "$BR2_EXTERNAL_MINIKUBE_PATH/package/conmon-master/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crio-bin/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crictl-bin/Config.in" source "$BR2_EXTERNAL_MINIKUBE_PATH/package/automount/Config.in" diff --git a/deploy/iso/minikube-iso/package/conmon-master/Config.in b/deploy/iso/minikube-iso/package/conmon-master/Config.in new file mode 100644 index 000000000000..b9906f95a0c9 --- /dev/null +++ b/deploy/iso/minikube-iso/package/conmon-master/Config.in @@ -0,0 +1,7 @@ +config BR2_PACKAGE_CONMON_MASTER + bool "conmon-master" + depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS + depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS + depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_LIBGLIB2 + select BR2_PACKAGE_SYSTEMD diff --git a/deploy/iso/minikube-iso/package/conmon-master/conmon-master.hash b/deploy/iso/minikube-iso/package/conmon-master/conmon-master.hash new file mode 100644 index 000000000000..cc13eb0cc868 --- /dev/null +++ b/deploy/iso/minikube-iso/package/conmon-master/conmon-master.hash @@ -0,0 +1 @@ +sha256 4f978a59c6ee516f7e3febfb3b0360a17d1be2c283313e1aeb27adcb8c8f9166 dde3ccf93f01ce5a3e0f7a2c97053697cc3ed152.tar.gz diff --git a/deploy/iso/minikube-iso/package/conmon-master/conmon-master.mk b/deploy/iso/minikube-iso/package/conmon-master/conmon-master.mk new file mode 100644 index 000000000000..0586253f1c64 --- /dev/null +++ b/deploy/iso/minikube-iso/package/conmon-master/conmon-master.mk @@ -0,0 +1,24 @@ +CONMON_MASTER_VERSION = dde3ccf93f01ce5a3e0f7a2c97053697cc3ed152 +CONMON_MASTER_SITE = https://github.com/containers/conmon/archive +CONMON_MASTER_SOURCE = $(CONMON_MASTER_VERSION).tar.gz +CONMON_MASTER_LICENSE = Apache-2.0 +CONMON_MASTER_LICENSE_FILES = LICENSE + +CONMON_MASTER_DEPENDENCIES = host-pkgconf + +define CONMON_MASTER_PATCH_PKGCONFIG + sed -e 's/pkg-config/$$(PKG_CONFIG)/g' -i $(@D)/Makefile +endef + +CONMON_MASTER_POST_PATCH_HOOKS += CONMON_MASTER_PATCH_PKGCONFIG + +define CONMON_MASTER_BUILD_CMDS + $(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) GIT_COMMIT=$(CONMON_MASTER_VERSION) PREFIX=/usr +endef + +define CONMON_MASTER_INSTALL_TARGET_CMDS + # crio conmon is installed by the crio package, so don't install it here + $(INSTALL) -Dm755 $(@D)/bin/conmon $(TARGET_DIR)/usr/libexec/podman/conmon +endef + +$(eval $(generic-package)) diff --git a/deploy/iso/minikube-iso/package/podman/Config.in b/deploy/iso/minikube-iso/package/podman/Config.in index f9451eface92..8eb3c5128a3c 100644 --- a/deploy/iso/minikube-iso/package/podman/Config.in +++ b/deploy/iso/minikube-iso/package/podman/Config.in @@ -5,5 +5,6 @@ config BR2_PACKAGE_PODMAN depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS depends on BR2_TOOLCHAIN_HAS_THREADS + select BR2_PACKAGE_CONMON_MASTER select BR2_PACKAGE_LIBSECCOMP select BR2_PACKAGE_LIBGPGME diff --git a/deploy/iso/minikube-iso/package/podman/libpod.conf b/deploy/iso/minikube-iso/package/podman/libpod.conf new file mode 100644 index 000000000000..b5d19cd85190 --- /dev/null +++ b/deploy/iso/minikube-iso/package/podman/libpod.conf @@ -0,0 +1,2 @@ +# Whether to use chroot instead of pivot_root in the runtime +no_pivot_root = true diff --git a/deploy/iso/minikube-iso/package/podman/podman.mk b/deploy/iso/minikube-iso/package/podman/podman.mk index b5ad703b7a29..5ee095a22507 100644 --- a/deploy/iso/minikube-iso/package/podman/podman.mk +++ b/deploy/iso/minikube-iso/package/podman/podman.mk @@ -29,6 +29,7 @@ endef define PODMAN_INSTALL_TARGET_CMDS $(INSTALL) -Dm755 $(@D)/bin/podman $(TARGET_DIR)/usr/bin/podman + $(INSTALL) -Dm644 $(BR2_EXTERNAL_MINIKUBE_PATH)/package/podman/libpod.conf $(TARGET_DIR)/etc/containers/libpod.conf $(INSTALL) -Dm644 $(BR2_EXTERNAL_MINIKUBE_PATH)/package/podman/buildah.profile $(TARGET_DIR)/etc/profile.d/podman.sh endef diff --git a/deploy/iso/minikube-iso/package/runc-master/runc-master.mk b/deploy/iso/minikube-iso/package/runc-master/runc-master.mk index d6cfd9d68455..f409a8787109 100644 --- a/deploy/iso/minikube-iso/package/runc-master/runc-master.mk +++ b/deploy/iso/minikube-iso/package/runc-master/runc-master.mk @@ -23,12 +23,6 @@ RUNC_MASTER_MAKE_ENV = $(HOST_GO_TARGET_ENV) \ RUNC_MASTER_GLDFLAGS = \ -buildmode=pie -X main.gitCommit=$(RUNC_MASTER_VERSION) -ifeq ($(BR2_STATIC_LIBS),y) -RUNC_MASTER_GLDFLAGS += -extldflags '-static' -endif - -RUNC_MASTER_GOTAGS = cgo static_build - ifeq ($(BR2_PACKAGE_LIBSECCOMP),y) RUNC_MASTER_GOTAGS += seccomp RUNC_MASTER_DEPENDENCIES += libseccomp host-pkgconf @@ -47,8 +41,6 @@ endef define RUNC_MASTER_INSTALL_TARGET_CMDS $(INSTALL) -D -m 0755 $(@D)/bin/runc $(TARGET_DIR)/usr/bin/runc - # Install the binary in the location where Docker expects it, so that we can keep runc releases in sync. - ln $(@D)/bin/runc $(TARGET_DIR)/usr/bin/docker-runc endef $(eval $(generic-package))