FROM centos:centos7
RUN yum install -y \
	gcc \
	gettext \
	make \
	python-devel \
	python36-devel \
	rpm-build \
	tar

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

# To allow installing other dependencies
RUN yum install -y epel-release

# THg GUI dependencies
RUN yum install -y \
	dejavu-sans-fonts \
	dejavu-sans-mono-fonts

# THg tests dependencies
RUN yum install -y python-pip && \
	pip install mock nose

# RPM build dependencies
RUN yum install -y \
	desktop-file-utils

# Install Mercurial (so it can be called in our scripts)
RUN pip install mercurial

# Configure UTF-8 to avoid python3 issues
ENV LANG=en_US.UTF-8
ENV LC_ALL=en_US.UTF-8
