Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add rpmbuild base images for packaging #105

Merged
merged 1 commit into from
Sep 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading