Docker Image for building CloudRouter CentOS-based RPMs
SOURCES=`pwd`/sources
TARGET=`pwd`/target
mkdir -p ${TARGET}
docker run --rm \
-v ${SOURCES}:/sources:Z \
-v ${TARGET}:/target:Z \
cloudrouter/rpmbuilder-centos
${SOURCES}
is where the RPM source project and/or spec file is located.
You should see your build output in the ${TARGET}
directory.
TARGET=`pwd`/target
mkdir -p ${TARGET}
docker run --rm -it --entrypoint /usr/bin/bash \
-v ${SOURCES}:/sources:Z \
-v ${TARGET}:/target:Z \
cloudrouter/rpmbuilder-centos