mirror of
https://github.com/R0GGER/docker-wsusoffline.git
synced 2026-11-11 09:12:41 +01:00
timezone, cron
This commit is contained in:
1 parent
afe9512563
commit
374397622b
1 file changed
+17
-10
+17
-10
@@ -2,24 +2,31 @@ FROM phusion/baseimage:0.9.18
|
||||
MAINTAINER R0GGER
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -y unzip md5deep wget xmlstarlet cabextract genisoimage nano
|
||||
RUN apt-get install -y unzip md5deep wget xmlstarlet cabextract genisoimage tzdata python python-pip mercurial
|
||||
|
||||
ENV SYSTEMS="all-62 all-63 all-100"
|
||||
ENV OFFICE="o2k10 o2k13 o2k16"
|
||||
ENV LANGUAGE="nld enu"
|
||||
ENV PARAMS="/dotnet /msse /wddefs /wle"
|
||||
ENV CRON="* 12,0 * * *"
|
||||
ENV TIMEZONE="Europe/Amsterdam"
|
||||
|
||||
ADD crons.conf /app/crons.conf
|
||||
ADD run.sh /app/run.sh
|
||||
# WSUSOFFLINE
|
||||
ADD update.sh /etc/my_init.d/update.sh
|
||||
|
||||
RUN crontab /app/crons.conf
|
||||
RUN cron
|
||||
|
||||
RUN chmod +x /app/run.sh
|
||||
RUN chmod +x /etc/my_init.d/update.sh
|
||||
RUN ln -s /app/wsusoffline/client /client
|
||||
RUN ln -s /app/wsusoffline/iso /iso
|
||||
|
||||
VOLUME ["/client"]
|
||||
CMD ["/sbin/my_init"]
|
||||
# CRON
|
||||
RUN pip install -e hg+https://bitbucket.org/dbenamy/devcron#egg=devcron
|
||||
RUN mkdir /cron
|
||||
ADD run.sh /cron/run.sh
|
||||
RUN echo "${CRON} /bin/sh /cron/run.sh" > /cron/crontab
|
||||
RUN chmod a+x /cron/run.sh
|
||||
|
||||
# SET TIMEZONE
|
||||
RUN echo "${TIMEZONE}" > /etc/timezone
|
||||
RUN dpkg-reconfigure -f noninteractive tzdata
|
||||
|
||||
VOLUME ["/client", "/iso"]
|
||||
CMD ["/sbin/my_init", "devcron.py", "/cron/crontab"]
|
||||
Reference in new issue
Block a user