-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Fix building RPM packages by switching from CentOS to RockyLinux (…
…#34) fix: Fix building RPM packages by switching from CentOS to RockyLinux Refs: XRDCAT-11
- Loading branch information
1 parent
8ac0d3d
commit d17e4f4
Showing
3 changed files
with
12 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 5 additions & 5 deletions
10
xroad-catalog-collector/packages/xroad-catalog-collector/docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
9 changes: 5 additions & 4 deletions
9
xroad-catalog-lister/packages/xroad-catalog-lister/docker/Dockerfile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |