Skip to content

Commit

Permalink
feat: add rpmbuild base images for packaging
Browse files Browse the repository at this point in the history
adds the following rpmbuild images
- CentOS 7
- CentOS Stream 8
- CentOS Stream 9
  • Loading branch information
BobyMCbobs authored and Mossman1215 committed Sep 26, 2023
1 parent 6919a8f commit 0234b77
Show file tree
Hide file tree
Showing 5 changed files with 46 additions and 2 deletions.
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ list of vendored base images
| ghcr.io/geonet/base-images/fedora | fedora for build tasks |
| ghcr.io/geonet/base-images/fedora-coreos | fedora coreos for edge devices |
| ghcr.io/geonet/base-images/alpine-iputils | includes tools like ping |
| ghcr.io/geonet/base-images/shellcheck | shellcheck bash scripts |

| ghcr.io/geonet/base-images/shellcheck | shellcheck bash scripts |
| ghcr.io/geonet/base-images/rpmbuild-centos7 | image for building RPMs with, based on CentOS 7 |
| ghcr.io/geonet/base-images/rpmbuild-centos-stream8 | image for building RPMs with, based on CentOS Stream 8 |
| ghcr.io/geonet/base-images/rpmbuild-centos-stream9 | image for building RPMs with, based on CentOS Stream 9 |

for tags, check [config.yaml](./config.yaml).

Expand Down
6 changes: 6 additions & 0 deletions config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,3 +84,9 @@ build:
destination: ghcr.io/geonet/base-images/texlive:latest
- source: ./images/chart-centos7/Dockerfile
destination: ghcr.io/geonet/base-images/chart-centos7:latest
- source: ./images/rpmbuild-centos7/Dockerfile
destination: ghcr.io/geonet/base-images/rpmbuild-centos7:latest
- source: ./images/rpmbuild-centos-stream8/Dockerfile
destination: ghcr.io/geonet/base-images/rpmbuild-centos-stream8:latest
- source: ./images/rpmbuild-centos-stream9/Dockerfile
destination: ghcr.io/geonet/base-images/rpmbuild-centos-stream9:latest
16 changes: 16 additions & 0 deletions images/rpmbuild-centos-stream8/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
FROM ghcr.io/geonet/base-images/centos:stream8
# Install prerequisites
RUN dnf module enable -y nodejs:16 \
&& dnf install -y epel-release epel-next-release \
'dnf-command(config-manager)' \
&& dnf config-manager --set-enabled powertools
# Update system
RUN dnf update -y && \
dnf install -y boost automake boost-filesystem boost-iostreams \
boost-program-options boost-regex boost-signals boost-system \
boost-thread cairo cairo-devel dnf-plugins-core fontconfig \
fontconfig-devel freetype freetype-devel gcc gcc-c++ git glibc \
kernel-devel libdbi libdbi-devel libgfortran libxml2 \
libxml2-devel make ncurses ncurses-devel nodejs npm octave \
openssl pango pango-devel perl-devel python3 qt5-qtwebengine \
rpm-build rpmdevtools rpm-sign rpmlint shadow-utils systemd
6 changes: 6 additions & 0 deletions images/rpmbuild-centos-stream9/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
FROM ghcr.io/geonet/base-images/centos:stream9
# Installing tools needed for rpmbuild
RUN dnf update -y && \
dnf install -y \
rpm-build rpmdevtools rpm-sign rpmlint git dnf-plugins-core nodejs npm make automake gcc \
gcc-c++ kernel-devel python3 glibc
14 changes: 14 additions & 0 deletions images/rpmbuild-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
FROM ghcr.io/geonet/base-images/centos:centos7
# Install prerequisites
RUN curl -O https://nodejs.org/dist/v16.20.2/node-v16.20.2-linux-x64.tar.xz \
&& tar --strip-components 1 -xvf node-v* -C /usr/local \
&& yum install -y epel-release
# Update system
RUN yum update -y && \
yum install -y autoconf automake boost boost-filesystem boost-iostreams \
boost-program-options boost-regex boost-signals boost-system boost-thread \
cairo cairo-devel createrepo fontconfig fontconfig-devel \
freetype freetype-devel gcc gcc-c++ git libdbi libdbi-devel libgfortran \
libxml2 libxml2-devel m2crypto make ncurses ncurses-devel numpy octave \
openssl pango pango-devel perl-devel python3 qtwebkit rpm-build \
rpmdevtools rpmlint rpm-sign shadow-utils systemd tar yum-utils

0 comments on commit 0234b77

Please sign in to comment.