mirror of
https://github.com/45Drives/cockpit-navigator.git
synced 2025-07-23 13:45:22 +02:00
add dockerfiles for build containers
This commit is contained in:
parent
282bf8afb2
commit
507ff2cdda
17
docker/el7
Normal file
17
docker/el7
Normal 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
15
docker/el8
Normal 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
8
docker/ubuntu
Normal 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
|
Loading…
x
Reference in New Issue
Block a user