Skip to content

Commit

Permalink
Merge pull request #288 from rucio/rdimaio-patch-1
Browse files Browse the repository at this point in the history
Install `patchutils` as part of the later image in the Dockerfile
  • Loading branch information
dchristidis authored Feb 8, 2024
2 parents df75f9b + 7283ff6 commit c3d12c8
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 7 deletions.
3 changes: 2 additions & 1 deletion daemons/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

FROM almalinux:9 as rpm_builder
RUN dnf upgrade -y
RUN dnf install -y rpm-build rpmdevtools yum-utils epel-release.noarch patchutils
RUN dnf install -y rpm-build rpmdevtools yum-utils epel-release.noarch
RUN yum-config-manager --enable crb
# BUILD and install openssl 3.1
ADD openssl.spec /root/rpmbuild/SPECS/openssl.spec
Expand Down Expand Up @@ -44,6 +44,7 @@ RUN dnf install -y epel-release.noarch && \
sendmail \
sendmail-cf \
memcached \
patchutils \
xrootd-client && \
dnf clean all && \
rm -rf /var/cache/dnf
Expand Down
12 changes: 10 additions & 2 deletions daemons/start-daemon.sh
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,11 @@ then
echo "Applying patch ${patchfile}"

tmp_bin_file="${TMP_PATCH_DIR}/tmp_bin"
filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}

if ! filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}; then
echo "Error while filtering patch ${patchfile}/bin. Exiting setup."
exit 1
fi

if [ -s ${tmp_bin_file} ]
then
Expand All @@ -58,7 +62,11 @@ then
fi

tmp_lib_file="${TMP_PATCH_DIR}/tmp_lib"
filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}

if ! filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}; then
echo "Error while filtering patch ${patchfile}/lib. Exiting setup."
exit 1
fi

if [ -s ${tmp_lib_file} ]
then
Expand Down
12 changes: 10 additions & 2 deletions server/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,11 @@ then
echo "Applying patch ${patchfile}"

tmp_bin_file="${TMP_PATCH_DIR}/tmp_bin"
filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}

if ! filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}; then
echo "Error while filtering patch ${patchfile}/bin. Exiting setup."
exit 1
fi

if [ -s ${tmp_bin_file} ]
then
Expand All @@ -69,7 +73,11 @@ then
fi

tmp_lib_file="${TMP_PATCH_DIR}/tmp_lib"
filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}

if ! filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}; then
echo "Error while filtering patch ${patchfile}/lib. Exiting setup."
exit 1
fi

if [ -s ${tmp_lib_file} ]
then
Expand Down
12 changes: 10 additions & 2 deletions webui/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,11 @@ then
echo "Applying patch ${patchfile}"

tmp_bin_file="${TMP_PATCH_DIR}/tmp_bin"
filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}

if ! filterdiff -i '*/bin/*' "${patchfile}" > ${tmp_bin_file}; then
echo "Error while filtering patch ${patchfile}/bin. Exiting setup."
exit 1
fi

if [ -s ${tmp_bin_file} ]
then
Expand All @@ -37,7 +41,11 @@ then
fi

tmp_lib_file="${TMP_PATCH_DIR}/tmp_lib"
filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}

if ! filterdiff -i '*/lib/*' "${patchfile}" > ${tmp_lib_file}; then
echo "Error while filtering patch ${patchfile}/lib. Exiting setup."
exit 1
fi

if [ -s ${tmp_lib_file} ]
then
Expand Down

0 comments on commit c3d12c8

Please sign in to comment.