Skip to content

Commit

Permalink
Merge pull request #9635 from afbjorklund/podman2-iso
Browse files Browse the repository at this point in the history
ISO: Upgrade podman to version 2.2.0 and remove varlink
  • Loading branch information
medyagh authored Dec 8, 2020
2 parents 3e670f2 + 01ff1de commit 47217f4
Show file tree
Hide file tree
Showing 9 changed files with 47 additions and 24 deletions.
2 changes: 1 addition & 1 deletion deploy/iso/minikube-iso/board/coreos/minikube/users
Original file line number Diff line number Diff line change
@@ -1 +1 @@
docker 1000 docker 1000 =tcuser /home/docker /bin/bash wheel,vboxsf -
docker 1000 docker 1000 =tcuser /home/docker /bin/bash wheel,vboxsf,podman -
1 change: 0 additions & 1 deletion deploy/iso/minikube-iso/package/Config.in
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
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/varlink/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/conmon/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crio-bin/Config.in"
source "$BR2_EXTERNAL_MINIKUBE_PATH/package/crictl-bin/Config.in"
Expand Down
4 changes: 4 additions & 0 deletions deploy/iso/minikube-iso/package/podman/override.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[Socket]
SocketMode=0660
SocketUser=root
SocketGroup=podman
1 change: 1 addition & 0 deletions deploy/iso/minikube-iso/package/podman/podman.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
d /run/podman 0770 root podman
2 changes: 2 additions & 0 deletions deploy/iso/minikube-iso/package/podman/podman.hash
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
sha256 a16846fe076aaf2c9ea2e854c3baba9fb838d916be7fb4b5be332e6c92d907d4 v1.9.3.tar.gz
sha256 5ebaa6e0dbd7fd1863f70d2bc71dc8a94e195c3339c17e3cac4560c9ec5747f8 v2.1.1.tar.gz
sha256 ec5473e51fa28f29af323473fc484f742dc7df23d06d8ba9f217f13382893a71 v2.2.0.tar.gz
45 changes: 39 additions & 6 deletions deploy/iso/minikube-iso/package/podman/podman.mk
Original file line number Diff line number Diff line change
@@ -1,12 +1,15 @@
PODMAN_DUMMY = DUMMY
PODMAN_VERSION = v1.9.3
PODMAN_COMMIT = 5d44534fff6877b1cb15b760242279ae6293154c
PODMAN_VERSION = v2.2.0
PODMAN_COMMIT = db1d2ff111ee9b012779ff3a5279a982520ccda4
PODMAN_SITE = https://github.com/containers/podman/archive
PODMAN_SOURCE = $(PODMAN_VERSION).tar.gz
PODMAN_LICENSE = Apache-2.0
PODMAN_LICENSE_FILES = LICENSE

PODMAN_DEPENDENCIES = host-go
ifeq ($(BR2_INIT_SYSTEMD),y)
# need libsystemd for journal
PODMAN_DEPENDENCIES += systemd
endif

PODMAN_GOPATH = $(@D)/_output
PODMAN_BIN_ENV = \
Expand All @@ -17,11 +20,24 @@ PODMAN_BIN_ENV = \
PATH=$(PODMAN_GOPATH)/bin:$(BR_PATH)


define PODMAN_USERS
- -1 podman -1 - - - - -
endef

define PODMAN_MOD_VENDOR_MAKEFILE
# "build flag -mod=vendor only valid when using modules"
sed -e 's|-mod=vendor ||' -i $(@D)/Makefile
endef

PODMAN_POST_EXTRACT_HOOKS += PODMAN_MOD_VENDOR_MAKEFILE

define PODMAN_CONFIGURE_CMDS
mkdir -p $(PODMAN_GOPATH) && mv $(@D)/vendor $(PODMAN_GOPATH)/src

mkdir -p $(PODMAN_GOPATH)/src/github.com/containers
ln -sf $(@D) $(PODMAN_GOPATH)/src/github.com/containers/libpod
mkdir -p $(PODMAN_GOPATH)/src/github.com/varlink
ln -sf $(@D)/vendor/github.com/varlink/go $(PODMAN_GOPATH)/src/github.com/varlink/go
ln -sf $(@D) $(PODMAN_GOPATH)/src/github.com/containers/podman

ln -sf $(@D) $(PODMAN_GOPATH)/src/github.com/containers/podman/v2
endef

define PODMAN_BUILD_CMDS
Expand All @@ -35,4 +51,21 @@ define PODMAN_INSTALL_TARGET_CMDS
$(INSTALL) -m 644 $(@D)/cni/87-podman-bridge.conflist $(TARGET_DIR)/etc/cni/net.d/87-podman-bridge.conflist
endef

define PODMAN_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 644 \
$(@D)/contrib/systemd/system/podman.service \
$(TARGET_DIR)/usr/lib/systemd/system/podman.service
$(INSTALL) -D -m 644 \
$(@D)/contrib/systemd/system/podman.socket \
$(TARGET_DIR)/usr/lib/systemd/system/podman.socket

# Allow running podman-remote as a user in the group "podman"
$(INSTALL) -D -m 644 \
$(PODMAN_PKGDIR)/override.conf \
$(TARGET_DIR)/usr/lib/systemd/system/podman.socket.d/override.conf
$(INSTALL) -D -m 644 \
$(PODMAN_PKGDIR)/podman.conf \
$(TARGET_DIR)/usr/lib/tmpfiles.d/podman.conf
endef

$(eval $(generic-package))
3 changes: 0 additions & 3 deletions deploy/iso/minikube-iso/package/varlink/Config.in

This file was deleted.

4 changes: 0 additions & 4 deletions deploy/iso/minikube-iso/package/varlink/varlink.hash

This file was deleted.

9 changes: 0 additions & 9 deletions deploy/iso/minikube-iso/package/varlink/varlink.mk

This file was deleted.

0 comments on commit 47217f4

Please sign in to comment.