Compare commits

..

No commits in common. "13d80089e983af343d713328a31305c27a5ea6f1" and "fa620d6a858eb53837b26a281c93be0f3eb9ba2e" have entirely different histories.

4 changed files with 6 additions and 51 deletions

View File

@ -1,33 +0,0 @@
name: Docker
on:
push:
branches: [ "dev" ]
schedule:
- cron: '@weekly'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Get current date
id: date
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
- uses: https://github.com/actions/checkout@v4
- name: Set up Docker Buildx
uses: https://github.com/docker/setup-buildx-action@v3
with:
config-inline: |
[registry."git.schreifuchs.ch"]
http = true
insecure = true
- name: login
run: docker login -u schreifuchs -p ${{ secrets.REGISTRY_TOKEN }} git.schreifuchs.ch
- run: echo "NOW=$(date +'%Y-%m-%dT%H:%M:%S')"
- name: Build and push Docker image
uses: https://github.com/docker/build-push-action@v5
with:
context: .
file: ./Dockerfile
push: true
tags: "git.schreifuchs.ch/schreifuchs/webmin-samba-docker:${{ steps.date.outputs.date }},git.schreifuchs.ch/schreifuchs/webmin-samba-docker:latest"

View File

@ -4,11 +4,9 @@ WORKDIR /
COPY Service-check.sh . COPY Service-check.sh .
RUN apt-get update && apt-get upgrade -y RUN apt-get update && apt-get upgrade -y
RUN apt-get install apt-transport-https wget samba samba-common -y && \ RUN apt-get install apt-transport-https wget samba samba-common -y && \
mkdir /media/storage /data /data/samba /data/webmin mkdir /media/storage /data /data/samba /data/webmin && \
chmod 0777 /media/storage /data /data/samba /data/webmin && \
VOLUME /data ln -s /data/samba /etc/samba && ln -s /data/webmin /etc/webmin
RUN chmod -R 0777 /media/storage /data
RUN echo "deb https://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list && \ RUN echo "deb https://download.webmin.com/download/repository sarge contrib" >> /etc/apt/sources.list && \
cd /root && \ cd /root && \
@ -26,5 +24,5 @@ RUN sed -i 's/10000/80/g' /etc/webmin/miniserv.conf && \
sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf sed -i 's/ssl=1/ssl=0/g' /etc/webmin/miniserv.conf
RUN echo root:webmin | chpasswd RUN echo root:webmin | chpasswd
VOLUME /config
CMD [ "/bin/bash","/Service-check.sh" ] CMD [ "/bin/bash","/Service-check.sh" ]

View File

@ -1,6 +1,4 @@
# webmin-samba-docker # webmin-samba-docker
> this is a Fork of [piersonjarvis/webmin-samba-docker](https://github.com/piersonjarvis/webmin-samba-docker)
Docker container based on ubuntu running a samba server, with a webmin webui. Docker container based on ubuntu running a samba server, with a webmin webui.
This container was build with simplisity in mind. This container was build with simplisity in mind.
@ -8,5 +6,3 @@ This container was build with simplisity in mind.
To run this container all you need to do is pass port 80 on the host to port 80 on the contrainer, and mount the volume you wish to share to /media/storage on the container. To run this container all you need to do is pass port 80 on the host to port 80 on the contrainer, and mount the volume you wish to share to /media/storage on the container.
Example: docker run -d -p 80:80 -p 139:139 -p 445:445 -v /path/on/host:/media/storage piersonjarvis/webmin-samba Example: docker run -d -p 80:80 -p 139:139 -p 445:445 -v /path/on/host:/media/storage piersonjarvis/webmin-samba
config files are stored in /data. Add -v /path/on/host:/data to the docker run command to make the configuration files availble for edit on the host.

View File

@ -1,12 +1,6 @@
#!/bin/bash #!/bin/bash
apt-get update && apt-get upgrade -y apt-get update && apt-get upgrade -y
wait wait
if [ ! -f /data/webmin/config ];
then
cp /etc/samba/* /data/samba/. && cp /etc/webmin/* /data/webmin/.
fi
wait
ln -f /data/samba/* /etc/samba/ && ln -f /etc/webmin/* /data/webmin/
service webmin start service webmin start
service smbd start service smbd start
service nmbd start service nmbd start