Skip to content

Commit e1f8446

Browse files
authored
Merge pull request #4421 from afbjorklund/podman-run
Enable running containers with Podman
2 parents 9d58040 + b31c66c commit e1f8446

File tree

8 files changed

+37
-8
lines changed

8 files changed

+37
-8
lines changed

deploy/iso/minikube-iso/package/Config.in

+1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
menu "System tools"
22
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/runc-master/Config.in"
33
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/podman/Config.in"
4+
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/conmon-master/Config.in"
45
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crio-bin/Config.in"
56
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crictl-bin/Config.in"
67
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/automount/Config.in"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
config BR2_PACKAGE_CONMON_MASTER
2+
bool "conmon-master"
3+
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
4+
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
5+
depends on BR2_TOOLCHAIN_HAS_THREADS
6+
select BR2_PACKAGE_LIBGLIB2
7+
select BR2_PACKAGE_SYSTEMD
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
sha256 4f978a59c6ee516f7e3febfb3b0360a17d1be2c283313e1aeb27adcb8c8f9166 dde3ccf93f01ce5a3e0f7a2c97053697cc3ed152.tar.gz
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
CONMON_MASTER_VERSION = dde3ccf93f01ce5a3e0f7a2c97053697cc3ed152
2+
CONMON_MASTER_SITE = https://github.com/containers/conmon/archive
3+
CONMON_MASTER_SOURCE = $(CONMON_MASTER_VERSION).tar.gz
4+
CONMON_MASTER_LICENSE = Apache-2.0
5+
CONMON_MASTER_LICENSE_FILES = LICENSE
6+
7+
CONMON_MASTER_DEPENDENCIES = host-pkgconf
8+
9+
define CONMON_MASTER_PATCH_PKGCONFIG
10+
sed -e 's/pkg-config/$$(PKG_CONFIG)/g' -i $(@D)/Makefile
11+
endef
12+
13+
CONMON_MASTER_POST_PATCH_HOOKS += CONMON_MASTER_PATCH_PKGCONFIG
14+
15+
define CONMON_MASTER_BUILD_CMDS
16+
$(MAKE) $(TARGET_CONFIGURE_OPTS) -C $(@D) GIT_COMMIT=$(CONMON_MASTER_VERSION) PREFIX=/usr
17+
endef
18+
19+
define CONMON_MASTER_INSTALL_TARGET_CMDS
20+
# crio conmon is installed by the crio package, so don't install it here
21+
$(INSTALL) -Dm755 $(@D)/bin/conmon $(TARGET_DIR)/usr/libexec/podman/conmon
22+
endef
23+
24+
$(eval $(generic-package))

deploy/iso/minikube-iso/package/podman/Config.in

+1
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@ config BR2_PACKAGE_PODMAN
55
depends on BR2_PACKAGE_HOST_GO_ARCH_SUPPORTS
66
depends on BR2_PACKAGE_HOST_GO_CGO_LINKING_SUPPORTS
77
depends on BR2_TOOLCHAIN_HAS_THREADS
8+
select BR2_PACKAGE_CONMON_MASTER
89
select BR2_PACKAGE_LIBSECCOMP
910
select BR2_PACKAGE_LIBGPGME
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Whether to use chroot instead of pivot_root in the runtime
2+
no_pivot_root = true

deploy/iso/minikube-iso/package/podman/podman.mk

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ endef
2929

3030
define PODMAN_INSTALL_TARGET_CMDS
3131
$(INSTALL) -Dm755 $(@D)/bin/podman $(TARGET_DIR)/usr/bin/podman
32+
$(INSTALL) -Dm644 $(BR2_EXTERNAL_MINIKUBE_PATH)/package/podman/libpod.conf $(TARGET_DIR)/etc/containers/libpod.conf
3233
$(INSTALL) -Dm644 $(BR2_EXTERNAL_MINIKUBE_PATH)/package/podman/buildah.profile $(TARGET_DIR)/etc/profile.d/podman.sh
3334
endef
3435

deploy/iso/minikube-iso/package/runc-master/runc-master.mk

-8
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ RUNC_MASTER_MAKE_ENV = $(HOST_GO_TARGET_ENV) \
2323
RUNC_MASTER_GLDFLAGS = \
2424
-buildmode=pie -X main.gitCommit=$(RUNC_MASTER_VERSION)
2525

26-
ifeq ($(BR2_STATIC_LIBS),y)
27-
RUNC_MASTER_GLDFLAGS += -extldflags '-static'
28-
endif
29-
30-
RUNC_MASTER_GOTAGS = cgo static_build
31-
3226
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
3327
RUNC_MASTER_GOTAGS += seccomp
3428
RUNC_MASTER_DEPENDENCIES += libseccomp host-pkgconf
@@ -47,8 +41,6 @@ endef
4741

4842
define RUNC_MASTER_INSTALL_TARGET_CMDS
4943
$(INSTALL) -D -m 0755 $(@D)/bin/runc $(TARGET_DIR)/usr/bin/runc
50-
# Install the binary in the location where Docker expects it, so that we can keep runc releases in sync.
51-
ln $(@D)/bin/runc $(TARGET_DIR)/usr/bin/docker-runc
5244
endef
5345

5446
$(eval $(generic-package))

0 commit comments

Comments
 (0)