add dockerfiles for build containers

This commit is contained in:
joshuaboud 2021-05-28 16:15:07 -03:00
parent 282bf8afb2
commit 507ff2cdda
No known key found for this signature in database
GPG Key ID: 17EFB59E2A8BF50E
3 changed files with 40 additions and 0 deletions

17
docker/el7 Normal file
View File

@ -0,0 +1,17 @@
FROM centos:7
LABEL description="Container in which to build el7 applications"
ENV TZ=America/Glace_Bay
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN yum install -y gcc rpm-build rpm-devel rpmlint make python python3 bash coreutils diffutils patch rpmdevtools
RUN mkdir -p /home/rpm/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS,tmp}
RUN echo %_topdir /home/rpm/rpmbuild > /etc/rpm/macros
RUN echo %_tmppath %{_topdir}/tmp >> /etc/rpm/macros
RUN chmod -R 777 /home/rpm
RUN ln -fs /usr/bin/python3 /usr/bin/python

15
docker/el8 Normal file
View File

@ -0,0 +1,15 @@
FROM centos:8
LABEL description="Container in which to build el8 applications"
ENV TZ=America/Glace_Bay
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN dnf install -y gcc rpm-build rpm-devel rpmlint make python3 bash diffutils patch rpmdevtools
RUN mkdir -p /home/rpm/rpmbuild/{BUILD,BUILDROOT,RPMS,SOURCES,SPECS,SRPMS,tmp}
RUN echo %_topdir /home/rpm/rpmbuild > /etc/rpm/macros
RUN echo %_tmppath %{_topdir}/tmp >> /etc/rpm/macros
RUN chmod -R 777 /home/rpm

8
docker/ubuntu Normal file
View File

@ -0,0 +1,8 @@
FROM ubuntu:focal
LABEL description="Container in which to build ubuntu applications"
ENV TZ=America/Glace_Bay
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && apt install -y make build-essential fakeroot devscripts debhelper python3