├── README.md ├── .gitattributes ├── .gitignore └── Dockerfile /README.md: -------------------------------------------------------------------------------- 1 | # docker-webmin 2 | dockerfile for webmin 3 | 4 | ## Building the image 5 | ``` 6 | git clone https://github.com/chsliu/docker-webmin.git 7 | cd docker-webmin 8 | docker build -t chsliu/webmin . 9 | ``` 10 | 11 | ## Running the container 12 | ``` 13 | docker run -d -p 10000:10000 chsliu/webmin 14 | ``` 15 | 16 | Log into webmin and manage your server 17 | ``` 18 | http://hostname.or.ip:10000 19 | (root:pass) 20 | ``` 21 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Auto detect text files and perform LF normalization 2 | * text=auto 3 | 4 | # Custom for Visual Studio 5 | *.cs diff=csharp 6 | 7 | # Standard to msysgit 8 | *.doc diff=astextplain 9 | *.DOC diff=astextplain 10 | *.docx diff=astextplain 11 | *.DOCX diff=astextplain 12 | *.dot diff=astextplain 13 | *.DOT diff=astextplain 14 | *.pdf diff=astextplain 15 | *.PDF diff=astextplain 16 | *.rtf diff=astextplain 17 | *.RTF diff=astextplain 18 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # Windows image file caches 2 | Thumbs.db 3 | ehthumbs.db 4 | 5 | # Folder config file 6 | Desktop.ini 7 | 8 | # Recycle Bin used on file shares 9 | $RECYCLE.BIN/ 10 | 11 | # Windows Installer files 12 | *.cab 13 | *.msi 14 | *.msm 15 | *.msp 16 | 17 | # Windows shortcuts 18 | *.lnk 19 | 20 | # ========================= 21 | # Operating System Files 22 | # ========================= 23 | 24 | # OSX 25 | # ========================= 26 | 27 | .DS_Store 28 | .AppleDouble 29 | .LSOverride 30 | 31 | # Thumbnails 32 | ._* 33 | 34 | # Files that might appear on external disk 35 | .Spotlight-V100 36 | .Trashes 37 | 38 | # Directories potentially created on remote AFP share 39 | .AppleDB 40 | .AppleDesktop 41 | Network Trash Folder 42 | Temporary Items 43 | .apdisk 44 | -------------------------------------------------------------------------------- /Dockerfile: -------------------------------------------------------------------------------- 1 | FROM debian:jessie 2 | MAINTAINER Sita Liu 3 | 4 | 5 | RUN echo root:pass | chpasswd && \ 6 | echo "Acquire::GzipIndexes \"false\"; Acquire::CompressionTypes::Order:: \"gz\";" >/etc/apt/apt.conf.d/docker-gzip-indexes && \ 7 | apt-get update && \ 8 | apt-get install -y \ 9 | wget \ 10 | locales && \ 11 | dpkg-reconfigure locales && \ 12 | locale-gen C.UTF-8 && \ 13 | /usr/sbin/update-locale LANG=C.UTF-8 && \ 14 | wget http://www.webmin.com/jcameron-key.asc && \ 15 | apt-key add jcameron-key.asc && \ 16 | echo "deb http://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list && \ 17 | echo "deb http://webmin.mirror.somersettechsolutions.co.uk/repository sarge contrib" >> /etc/apt/sources.list && \ 18 | apt-get update && \ 19 | apt-get install -y webmin && \ 20 | apt-get clean 21 | 22 | 23 | ENV LC_ALL C.UTF-8 24 | 25 | EXPOSE 10000 26 | 27 | VOLUME ["/etc/webmin"] 28 | 29 | CMD /usr/bin/touch /var/webmin/miniserv.log && /usr/sbin/service webmin restart && /usr/bin/tail -f /var/webmin/miniserv.log 30 | --------------------------------------------------------------------------------