1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

B #-: Don't fail docker build if resolv.conf is RO (#2486)

(cherry picked from commit dbf1e882b14d0b0b49b0ad41a2987ab628047043)
This commit is contained in:
Jan Orel 2023-02-13 17:20:12 +01:00 committed by Ruben S. Montero
parent 1c938fe928
commit 2efd46f163
No known key found for this signature in database
GPG Key ID: A0CEA6FA880A1D87

View File

@ -18,6 +18,6 @@ COPY context /root/context
%ONE_ENTRYPOINT%
RUN if [ -f /one_entrypoint.sh ]; then chmod u+x /one_entrypoint.sh; fi
RUN rm -rf /root/context
RUN echo "#Generated by OpenNebula" > /etc/resolv.conf
RUN if [ -w /etc/resolv.conf]; then echo "#Generated by OpenNebula" > /etc/resolv.conf; fi
RUN rm -f /etc/ssh/ssh_host_* > /dev/null 2>&1
RUN if [ `command -v usermod` ]; then usermod -p '*' root > /dev/null 2>&1; fi