Skip to content

Commit

Permalink
merged with develop
Browse files Browse the repository at this point in the history
  • Loading branch information
dmytro-kyrychenko committed Dec 11, 2023
2 parents c787259 + 01ccaf2 commit ae2c187
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae2c187

Please sign in to comment.