Skip to content

Commit

Permalink
chore(): remove cron task
Browse files Browse the repository at this point in the history
  • Loading branch information
eskwisit committed Feb 27, 2024
1 parent 2ff9ca2 commit a3f28a2
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 32 deletions.
13 changes: 4 additions & 9 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ LABEL email='mru2683@gmail.com'

# Prepare Nut install
RUN apt-get update && apt-get -y install \
gcc \
cron \
wget \
unzip \
gcc \
libssl-dev \
libcurl4-openssl-dev \
zlib1g-dev \
Expand All @@ -21,7 +20,7 @@ RUN wget https://github.com/blawar/nut/archive/refs/tags/v3.3.zip
RUN unzip v3.3.zip -d /root
RUN mv /root/nut-3.3 /root/nut

# Tune config
# Edit config
RUN mv /root/nut/conf/nut.default.conf /root/nut/conf/nut.conf
RUN sed -i '/scan/c "scan": ["\/titles"]' /root/nut/conf/nut.conf

Expand All @@ -36,16 +35,12 @@ RUN echo markupsafe==2.0.1 >>/root/nut/requirements.txt
RUN pip3 install -U pip
RUN pip3 install -r /root/nut/requirements.txt

COPY /entrypoint.sh /

RUN chmod +x /entrypoint.sh

VOLUME [ "/titles" ]
VOLUME [ "/titles", "/root/nut/conf", "/root/nut/_NSPOUT" ]

EXPOSE 9000

# clean up
RUN rm v3.3.zip
RUN apt-get autoremove

ENTRYPOINT ["/entrypoint.sh"]
CMD ["python3", "/root/nut/nut.py", "--server"]
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Slim Docker image featuring embedded Nut server from [blawar/nut](https://github
- Thin Docker image.
- Very low memory usage.
- Designed to work on amd64 arch (Linux, Unix).
- Cron task to poll new titles.
- Auto refresh of titles directory.
- Zero config bundle.
- Seamless integration for [Tinfoil](https://tinfoil.io/).

Expand All @@ -20,3 +20,13 @@ docker pull eskwisit/nut-server
# Run image
docker run -d --name=nut-server -v /path/to/titles:/titles:rw eskwisit/nut-server
```

## Volumes

If you need to tune the configuration, you can mount titles, conf and NSPOUT volumes.

```bash
-v /path/to/titles:/titles:rw # For titles
-v /path/to/conf:/root/nut/conf:rw # For config files
-v /path/to/_NSPOUT:/root/nut/_NSPOUT/:rw # For NSP out
```
22 changes: 0 additions & 22 deletions entrypoint.sh

This file was deleted.

0 comments on commit a3f28a2

Please sign in to comment.