From 2a9e6e2053407cd126bf1154086f3ca170c7d5a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Andriot?= Date: Tue, 25 Jul 2017 18:36:32 +0200 Subject: RPM packaging: update build scripts --- redhat/docker/fedora32.sh | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100755 redhat/docker/fedora32.sh (limited to 'redhat/docker/fedora32.sh') diff --git a/redhat/docker/fedora32.sh b/redhat/docker/fedora32.sh new file mode 100755 index 000000000..823b27fbc --- /dev/null +++ b/redhat/docker/fedora32.sh @@ -0,0 +1,26 @@ +#!/bin/bash + +NAME="fedora32" +VERSION="$1" # E.g: '26' +IMAGE="${NAME}:${VERSION}" +INSTALLROOT="/dev/shm/${IMAGE}" + +sudo rm -rf "${INSTALLROOT}" +setarch i686 sudo dnf install \ + --refresh \ + --installroot="${INSTALLROOT}" \ + --releasever="${VERSION}" \ + --disablerepo="*" --enablerepo="fedora,updates" \ + --nodocs \ + --assumeyes \ + @core bash vim + +sudo sed -i "${INSTALLROOT}/etc/yum.repos.d/"*".repo" \ + -e "s|\$basearch|i386|g" \ + -e "s|\$releasever|${VERSION}|g" + +sudo tar -C "${INSTALLROOT}" -c . >"${IMAGE}.tar" +sudo rm -rf "${INSTALLROOT}" + +docker rmi -f "${IMAGE}" +docker import "${IMAGE}.tar" "${IMAGE}" -- cgit v1.2.1