Skip to content

Commit

Permalink
fix: Fix building RPM packages by switching from CentOS to RockyLinux (
Browse files Browse the repository at this point in the history
…#34)

fix: Fix building RPM packages by switching from CentOS to RockyLinux

Refs: XRDCAT-11
  • Loading branch information
melbeltagy authored Jul 15, 2024
1 parent 8ac0d3d commit d17e4f4
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ on:
- 'xroad-catalog-persistence/src/**'
- '.github/**'
- 'gradle/libs.versions.toml' # So that dependabot PRs are tested
- 'xroad-catalog-collector/packages/**'
- 'xroad-catalog-lister/packages/**'
pull_request:
types: [opened, synchronize, reopened]
paths:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
FROM centos:7
FROM rockylinux:9
MAINTAINER "Nordic Institute for Interoperability Solutions (NIIS)" <x-road@niis.org>

RUN yum -y install sudo git rpm-build java-21-openjdk-headless
RUN yum clean all
RUN sed -i 's/requiretty/!requiretty/' /etc/sudoers
RUN dnf -y install sudo git rpm-build systemd-rpm-macros systemd java-21-openjdk-headless \
&& dnf clean all \
&& sed -i 's/requiretty/!requiretty/' /etc/sudoers

ARG CATALOG_PROFILE
ENV CATALOG_PROFILE=${CATALOG_PROFILE}
USER root
RUN git config --global --add safe.directory /workspace
CMD /workspace/xroad-catalog-collector/build_rpm.sh -p $CATALOG_PROFILE

Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
FROM centos:7
FROM rockylinux:9
MAINTAINER "Nordic Institute for Interoperability Solutions (NIIS)" <x-road@niis.org>

RUN yum -y install sudo git rpm-build java-21-openjdk-headless
RUN yum clean all
RUN sed -i 's/requiretty/!requiretty/' /etc/sudoers
RUN dnf -y install sudo git rpm-build systemd-rpm-macros systemd java-21-openjdk-headless \
&& dnf clean all \
&& sed -i 's/requiretty/!requiretty/' /etc/sudoers

ARG CATALOG_PROFILE
ENV CATALOG_PROFILE=${CATALOG_PROFILE}
USER root
RUN git config --global --add safe.directory /workspace
CMD /workspace/xroad-catalog-lister/build_rpm.sh -p $CATALOG_PROFILE

0 comments on commit d17e4f4

Please sign in to comment.