view contrib/packaging/docker/centos6 @ 41234:4c0d4bbdc395

packaging: allow running packaging with custom uid+gid for CentOS rpmbuild in CentOS 7 has a bug causing rpmbuild to fail with "Bad owner/group" if spec or source files are owned by a different user: https://github.com/rpm-software-management/rpm/issues/2 This makes it very annoying to try and build the CentOS RPMs on CentOS with Docker. As an alternative, this change makes it possible to do so, using an environment variable. Differential Revision: https://phab.mercurial-scm.org/D5571
author Mathias De Mare <mathias.de_mare@nokia.com>
date Fri, 11 Jan 2019 14:55:31 +0100
parents 11eda1f1b6e7
children
line wrap: on
line source

FROM centos:centos6

RUN groupadd -g %GID% build && \
    useradd -u %UID% -g %GID% -s /bin/bash -d /build -m build

RUN yum install -y \
	gcc \
	gettext \
	make \
	python-devel \
	python-docutils \
	rpm-build \
	tar

# For creating repo meta data
RUN yum install -y createrepo

# For python
RUN yum install -y \
	bzip2-devel \
	ncurses-devel \
	openssl-devel \
	readline-devel \
	zlib-devel