Add files via upload
This commit is contained in:
parent
1e996d866e
commit
fcbbb722df
26
Dockerfile-webmin-samba
Normal file
26
Dockerfile-webmin-samba
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
FROM ubuntu
|
||||||
|
EXPOSE 80
|
||||||
|
WORKDIR /
|
||||||
|
COPY Service-check.sh .
|
||||||
|
RUN apt-get update && apt-get upgrade -y
|
||||||
|
RUN apt-get install apt-transport-https wget samba samba-common -y && \
|
||||||
|
mkdir /media/storage && \
|
||||||
|
chmod 0777 /media/storage
|
||||||
|
|
||||||
|
RUN echo "deb https://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list && \
|
||||||
|
cd /root && \
|
||||||
|
wget http://www.webmin.com/jcameron-key.asc && \
|
||||||
|
apt-key add jcameron-key.asc
|
||||||
|
|
||||||
|
RUN rm /etc/apt/apt.conf.d/docker-gzip-indexes && \
|
||||||
|
apt-get purge apt-show-versions -y && \
|
||||||
|
rm /var/lib/apt/lists/*lz4 && \
|
||||||
|
apt-get -o Acquire::GzipIndexes=false update -y
|
||||||
|
|
||||||
|
RUN apt-get update && apt-get install webmin -y
|
||||||
|
|
||||||
|
RUN sed -i 's/10000/80/g' /etc/webmin/miniserv.conf && \
|
||||||
|
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
|
||||||
|
|
||||||
|
RUN echo root:webmin | chpasswd
|
||||||
|
CMD [ "/bin/bash","/Service-check.sh" ]
|
15
Service-check.sh
Normal file
15
Service-check.sh
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
apt-get update && apt-get upgrade -y
|
||||||
|
wait
|
||||||
|
service webmin start
|
||||||
|
service smbd start
|
||||||
|
service nmbd start
|
||||||
|
while true
|
||||||
|
do
|
||||||
|
if [[ $(service webmin status) = *stopped* ]]
|
||||||
|
then
|
||||||
|
break
|
||||||
|
else
|
||||||
|
sleep 5m
|
||||||
|
fi
|
||||||
|
done
|
Loading…
Reference in New Issue
Block a user