add dockerfiles for build containers
This commit is contained in:
parent
282bf8afb2
commit
507ff2cdda
|
@ -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
|
|
@ -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
|
|
@ -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
|
Loading…
Reference in New Issue