Skip to content

Commit

Permalink
feat: add aws cli for rpmbuilds
Browse files Browse the repository at this point in the history
in order to sync from s3 during each package build these containers need aws cli
  • Loading branch information
Mossman1215 authored and ardrigh committed Nov 29, 2023
1 parent 6ef0f24 commit 8a6cc6e
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
5 changes: 4 additions & 1 deletion images/rpmbuild-centos-stream8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ RUN dnf update -y && \
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
rpm-build rpmdevtools rpm-sign rpmlint shadow-utils systemd unzip

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip" && unzip awscliv2.zip
RUN ./aws/install
7 changes: 6 additions & 1 deletion images/rpmbuild-centos-stream9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
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 systemd openssl fontconfig-devel freetype freetype-devel boost
gcc-c++ kernel-devel python3 glibc systemd openssl fontconfig-devel freetype freetype-devel boost unzip

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
11 changes: 8 additions & 3 deletions images/rpmbuild-centos7/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
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
&& 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 \
Expand All @@ -11,4 +12,8 @@ RUN yum update -y && \
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
rpmdevtools rpmlint rpm-sign shadow-utils systemd tar yum-utils unzip

RUN curl "https://awscli.amazonaws.com/awscli-exe-linux-x86_64.zip" -o "awscliv2.zip"
RUN unzip awscliv2.zip
RUN ./aws/install
2 changes: 1 addition & 1 deletion images/rpmbuild-fedora/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ FROM ghcr.io/geonet/base-images/fedora:38
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 systemd openssl fontconfig-devel freetype freetype-devel boost
gcc-c++ kernel-devel python3 glibc systemd openssl fontconfig-devel freetype freetype-devel boost awscli

0 comments on commit 8a6cc6e

Please sign in to comment.