From 80fe2f60b6f9041407699e93951bc0dd32072f25 Mon Sep 17 00:00:00 2001 From: dmytro-kyrychenko Date: Thu, 16 Nov 2023 13:56:04 +0200 Subject: [PATCH] fix: reverted change for local docker building that is messing job_log work on production --- Dockerfile | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index 5601e87..edadbfb 100644 --- a/Dockerfile +++ b/Dockerfile @@ -101,23 +101,20 @@ RUN sed -i "/imklog/s/^/#/" /etc/rsyslog.conf RUN rm -rf /usr/bin/python RUN ln -s /usr/bin/python3 /usr/bin/python +COPY ./module-compilation $VIRTUAL_ENV +RUN cd /module-compilation/resources/HTML && python setup.py install -COPY --chown=${YANG_ID}:${YANG_GID} ./module-compilation $VIRTUAL_ENV -RUN set -eux \ - && cd /module-compilation/resources/HTML && python setup.py install \ - && cd /module-compilation \ - && chmod 0777 conf/configure.sh \ - && chown -R yang:yang $VIRTUAL_ENV \ - && chmod -R 700 $VIRTUAL_ENV \ - && chmod -x rsync \ - && crontab /etc/cron.d/ietf-cron \ - && git config --global user.name miroslavKovacPantheon \ - && git config --global user.email miroslav.kovac@panetheon.tech - +RUN chmod 0777 conf/configure.sh +RUN chown -R yang:yang $VIRTUAL_ENV && chmod -R 700 $VIRTUAL_ENV && chmod -x rsync USER ${YANG_ID}:${YANG_GID} RUN crontab /etc/cron.d/ietf-cron +WORKDIR / + +RUN git config --global user.name miroslavKovacPantheon +RUN git config --global user.email miroslav.kovac@panetheon.tech + WORKDIR $VIRTUAL_ENV USER root:root