Skip to content

Latest commit

 

History

History
28 lines (23 loc) · 631 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 631 Bytes

rpmbuilder-centos

Docker Image for building CloudRouter CentOS-based RPMs

Non-interactive build

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.

Interactive builds

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