Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 02dc8d5

Browse files
committed
update 1.3
1 parent fd78b0f commit 02dc8d5

File tree

3 files changed

+12
-10
lines changed

3 files changed

+12
-10
lines changed

Dockerfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
FROM fedora:latest
1+
FROM frolvlad/alpine-glibc:latest
22

3-
RUN dnf upgrade -y &&\
4-
dnf install -y curl cronie
3+
RUN apk update && apk upgrade &&\
4+
apk add curl busybox-openrc
55

66
COPY entrypoint.sh /blobsaver/
77

@@ -11,4 +11,4 @@ ENV VERSION="3.5.0"
1111
ENV CRONTIME="*/5 * * * *"
1212
ENV BLOBARG="--include-betas --background-autosave"
1313

14-
ENTRYPOINT ["/blobsaver/entrypoint.sh"]
14+
ENTRYPOINT ["/blobsaver/entrypoint.sh"]

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ By default, it will check every 5 minutes. You can change this by building it yo
1616

1717
Find a place to store your blobs. Something like `/home/(user)/Documents/Blobs/`. This will be needed later. </br>
1818

19+
I also highly recommend limiting the CPU usage of the container as when the program runs, it will spike your CPU usage. </br>
20+
1921
### Docker container </br>
2022
```
2123
docker run -d --name (container name) -v (path to blob directory):/blobsaver/blobs/ -e VERSION=(version) -e CRONTIME=(time in cron format) -e BLOBARG=(arguments for blobsaver) passivelemon/blobsaver-docker:latest

entrypoint.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22

33
mkdir -p /blobsaver/
44
cd /blobsaver/
5-
if [ ! -e /opt/blobsaver/bin/blobsaver ]; then
6-
curl -L --output /blobsaver/blobsaver-${VERSION}-1.x86_64.rpm https://github.com/airsquared/blobsaver/releases/latest/download/blobsaver-${VERSION}-1.x86_64.rpm
7-
dnf install -y /blobsaver/blobsaver-${VERSION}-1.x86_64.rpm
8-
rm /blobsaver/blobsaver-${VERSION}-1.x86_64.rpm
5+
if [ ! -e /blobsaver/bin/blobsaver ]; then
6+
curl -L --output /blobsaver/blobsaver-${VERSION}.tar.gz https://github.com/airsquared/blobsaver/releases/latest/download/blobsaver-${VERSION}.tar.gz
7+
tar -xvzf blobsaver-${VERSION}.tar.gz
8+
rm /blobsaver/blobsaver-${VERSION}.tar.gz
99
fi
1010

1111
export BLOBSAVER_CLI_ONLY
1212
echo "|| Manually saving blobs once. ||"
13-
/opt/blobsaver/bin/blobsaver --import=/blobsaver/blobs/blobsaver.xml --save-path=/blobsaver/blobs ${BLOBARG}
13+
/blobsaver/bin/blobsaver --import=/blobsaver/blobs/blobsaver.xml --save-path=/blobsaver/blobs ${BLOBARG}
1414
echo "|| Done. Continuing with cronjob. ||"
15-
(crontab -l 2>/dev/null; echo "${CRONTIME} /opt/blobsaver/bin/blobsaver --import=/blobsaver/blobs/blobsaver.xml --save-path=/blobsaver/blobs ${BLOBARG}") | crontab -
15+
(crontab -l 2>/dev/null; echo "${CRONTIME} /blobsaver/bin/blobsaver --import=/blobsaver/blobs/blobsaver.xml --save-path=/blobsaver/blobs ${BLOBARG}") | crontab -
1616
crond -f

0 commit comments

Comments
 (0)