Skip to content
Snippets Groups Projects
Commit d8818616 authored by Mads Kiilerich's avatar Mads Kiilerich
Browse files

docker: add CentOS 5

There is no official CentOS 5 docker template so we use one from saltstack.
parent 77da9c03
No related branches found
No related tags found
No related merge requests found
......@@ -155,6 +155,16 @@
mkdir -p packages/fedora20
contrib/dockerrpm fedora20
centos5:
mkdir -p packages/centos5
contrib/buildrpm --withpython
cp rpmbuild/RPMS/*/* packages/centos5
cp rpmbuild/SRPMS/* packages/centos5
docker-centos5:
mkdir -p packages/centos5
contrib/dockerrpm centos5 --withpython
centos6:
mkdir -p packages/centos6
contrib/buildrpm
......
FROM saltstack/centos-5-minimal
RUN yum install -y gcc make rpm-build gettext tar
RUN yum install -y python-devel python-docutils
RUN yum install -y readline-devel openssl-devel ncurses-devel zlib-devel bzip2-devel
......@@ -18,6 +18,7 @@
PLATFORM="$1"
[ "$PLATFORM" ] || { echo "Error: platform name must be specified"; exit 1; }
shift # extra params are passed to buildrpm
DFILE="$ROOTDIR/contrib/docker/$PLATFORM"
[ -f "$DFILE" ] || { echo "Error: docker file $DFILE not found"; exit 1; }
......@@ -32,7 +33,7 @@
) | $DOCKER build --tag $CONTAINER -
RPMBUILDDIR=$ROOTDIR/packages/$PLATFORM
contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare
contrib/buildrpm --rpmbuilddir $RPMBUILDDIR --prepare $*
DSHARED=/mnt/shared
$DOCKER run -u $DBUILDUSER --rm -v $RPMBUILDDIR:$DSHARED $CONTAINER \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment