Skip to content
Permalink
Browse files

Centos 8 build

  • Loading branch information
subuk committed Nov 22, 2019
1 parent 7a6705b commit f0ffccac7702ed6a65c87946e4dce07e77ddb09c
Showing with 25 additions and 1 deletion.
  1. +15 −1 dockerbuild.sh
  2. +4 −0 dockerbuild/centos8.dockerfile
  3. +6 −0 dockerbuild/centos8.yum.conf
@@ -1,11 +1,25 @@
#!/bin/bash
set -e

USAGE="Usage: $0 [centos-7|ubuntu-1804] <make args...>"
USAGE="Usage: $0 [centos-7|centos-8|ubuntu-1804] <make args...>"
CACHE_DIR=/tmp/vmango-package-build-cache
mkdir -p $CACHE_DIR

case "$1" in
"centos-8")
DOCKER_IMAGE=vmango:build_centos8
YUM_CONFIG=`pwd`/dockerbuild/centos8.yum.conf
if [[ "Y$(docker images -q $DOCKER_IMAGE)" == "Y" || "Y${FORCE_REBUILD}" != "Y" ]]; then
docker build -t $DOCKER_IMAGE -f dockerbuild/centos8.dockerfile .
fi
shift
exec docker run --rm -it \
-v `pwd`:/source \
-v $CACHE_DIR:/cache \
-v $YUM_CONFIG:/etc/yum.conf \
-w /source \
$DOCKER_IMAGE $@
;;
"centos-7")
DOCKER_IMAGE=vmango:build_centos7
YUM_CONFIG=`pwd`/dockerbuild/centos7.yum.conf
@@ -0,0 +1,4 @@
FROM centos:8

RUN yum install -y rpmdevtools make epel-release git dnf-utils
RUN echo '%_topdir /tmp/buildd' > ~/.rpmmacros && rpmdev-setuptree
@@ -0,0 +1,6 @@
[main]
cachedir=/cache/yum/$basearch/$releasever
gpgcheck=1
installonly_limit=3
clean_requirements_on_remove=True
best=True

0 comments on commit f0ffcca

Please sign in to comment.
You can’t perform that action at this time.