Skip to content

Commit f898ada

Browse files
committed
Rebase to Alpine 3.19, add root periodic crontabs for logrotate
Signed-off-by: Eric Nemchik <[email protected]>
1 parent 07bdb53 commit f898ada

File tree

8 files changed

+22
-14
lines changed

8 files changed

+22
-14
lines changed

.github/workflows/external_trigger.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
echo "**** External trigger running off of master branch. To disable this trigger, set a Github secret named \"PAUSE_EXTERNAL_TRIGGER_RSNAPSHOT_MASTER\". ****"
2121
echo "External trigger running off of master branch. To disable this trigger, set a Github secret named \`PAUSE_EXTERNAL_TRIGGER_RSNAPSHOT_MASTER\`" >> $GITHUB_STEP_SUMMARY
2222
echo "**** Retrieving external version ****"
23-
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
23+
EXT_RELEASE=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2424
&& awk '/^P:'"rsnapshot"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://')
2525
if [ -z "${EXT_RELEASE}" ] || [ "${EXT_RELEASE}" == "null" ]; then
2626
echo "**** Can't retrieve external version, exiting ****"
@@ -74,7 +74,7 @@ jobs:
7474
echo "**** Version ${EXT_RELEASE} already pushed, exiting ****"
7575
echo "Version ${EXT_RELEASE} already pushed, exiting" >> $GITHUB_STEP_SUMMARY
7676
exit 0
77-
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"rsnapshot"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
77+
elif [[ $(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/aarch64/APKINDEX.tar.gz" | tar -xz -C /tmp && awk '/^P:'"rsnapshot"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://') != "${EXT_RELEASE}" ]]; then
7878
echo "**** New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting ****"
7979
echo "New version ${EXT_RELEASE} found; but not all arch repos updated yet; exiting" >> $GITHUB_STEP_SUMMARY
8080
FAILURE_REASON="New version ${EXT_RELEASE} for rsnapshot tag latest is detected, however not all arch repos are updated yet. Will try again later."

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:3.18
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.19
44

55
# set version label
66
ARG BUILD_DATE
@@ -12,7 +12,7 @@ LABEL maintainer="nemchik"
1212
RUN \
1313
echo "**** install runtime packages ****" && \
1414
if [ -z ${RSNAPSHOT_VERSION+x} ]; then \
15-
RSNAPSHOT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
15+
RSNAPSHOT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
1616
&& awk '/^P:rsnapshot$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
1717
fi && \
1818
apk add --no-cache \

Dockerfile.aarch64

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# syntax=docker/dockerfile:1
22

3-
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.18
3+
FROM ghcr.io/linuxserver/baseimage-alpine:arm64v8-3.19
44

55
# set version label
66
ARG BUILD_DATE
@@ -12,7 +12,7 @@ LABEL maintainer="nemchik"
1212
RUN \
1313
echo "**** install runtime packages ****" && \
1414
if [ -z ${RSNAPSHOT_VERSION+x} ]; then \
15-
RSNAPSHOT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.18/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
15+
RSNAPSHOT_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.19/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
1616
&& awk '/^P:rsnapshot$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
1717
fi && \
1818
apk add --no-cache \

Jenkinsfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ pipeline {
2424
DEV_DOCKERHUB_IMAGE = 'lsiodev/rsnapshot'
2525
PR_DOCKERHUB_IMAGE = 'lspipepr/rsnapshot'
2626
DIST_IMAGE = 'alpine'
27-
DIST_TAG = '3.18'
28-
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/main/'
27+
DIST_TAG = '3.19'
28+
DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
2929
DIST_REPO_PACKAGES = 'rsnapshot'
3030
MULTIARCH='true'
3131
CI='true'

README.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ services:
100100
- PGID=1000
101101
- TZ=Etc/UTC
102102
volumes:
103-
- /path/to/appdata:/config
103+
- /path/to/rsnapshot/config:/config
104104
- /path/to/snapshots:/.snapshots #optional
105105
- /path/to/data:/data #optional
106106
restart: unless-stopped
@@ -114,7 +114,7 @@ docker run -d \
114114
-e PUID=1000 \
115115
-e PGID=1000 \
116116
-e TZ=Etc/UTC \
117-
-v /path/to/appdata:/config \
117+
-v /path/to/rsnapshot/config:/config \
118118
-v /path/to/snapshots:/.snapshots `#optional` \
119119
-v /path/to/data:/data `#optional` \
120120
--restart unless-stopped \
@@ -130,7 +130,7 @@ Containers are configured using parameters passed at runtime (such as those abov
130130
| `-e PUID=1000` | for UserID - see below for explanation |
131131
| `-e PGID=1000` | for GroupID - see below for explanation |
132132
| `-e TZ=Etc/UTC` | specify a timezone to use, see this [list](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List). |
133-
| `-v /config` | Contains all relevant configuration files. |
133+
| `-v /config` | Persistent config files |
134134
| `-v /.snapshots` | Storage location for all snapshots. |
135135
| `-v /data` | Storage location for data to be backed up. |
136136

@@ -310,6 +310,7 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
310310

311311
## Versions
312312

313+
* **23.12.23:** - Rebase to Alpine 3.19, add root periodic crontabs for logrotate.
313314
* **25.05.23:** - Rebase to Alpine 3.18, deprecate armhf.
314315
* **02.03.23:** - Split cron into separate init step and set crontab permissions.
315316
* **15.12.22:** - Rebase to alpine 3.17.

jenkins-vars.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ repo_vars:
1616
- DEV_DOCKERHUB_IMAGE = 'lsiodev/rsnapshot'
1717
- PR_DOCKERHUB_IMAGE = 'lspipepr/rsnapshot'
1818
- DIST_IMAGE = 'alpine'
19-
- DIST_TAG = '3.18'
20-
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.18/main/'
19+
- DIST_TAG = '3.19'
20+
- DIST_REPO = 'http://dl-cdn.alpinelinux.org/alpine/v3.19/main/'
2121
- DIST_REPO_PACKAGES = 'rsnapshot'
2222
- MULTIARCH='true'
2323
- CI='true'

readme-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ common_param_env_vars_enabled: true
1919
param_container_name: "{{ project_name }}"
2020
param_usage_include_vols: true
2121
param_volumes:
22-
- { vol_path: "/config", vol_host_path: "/path/to/appdata", desc: "Contains all relevant configuration files." }
22+
- { vol_path: "/config", vol_host_path: "/path/to/{{ project_name }}/config", desc: "Persistent config files" }
2323
param_usage_include_env: true
2424
param_env_vars:
2525
- { env_var: "TZ", env_value: "America/New_York", desc: "Specify a timezone to use EG America/New_York"}
@@ -58,6 +58,7 @@ app_setup_block: |
5858
5959
# changelog
6060
changelogs:
61+
- { date: "23.12.23:", desc: "Rebase to Alpine 3.19, add root periodic crontabs for logrotate." }
6162
- { date: "25.05.23:", desc: "Rebase to Alpine 3.18, deprecate armhf." }
6263
- { date: "02.03.23:", desc: "Split cron into separate init step and set crontab permissions." }
6364
- { date: "15.12.22:", desc: "Rebase to alpine 3.17." }

root/defaults/crontabs/root

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
# min hour day month weekday command
2+
*/15 * * * * run-parts /etc/periodic/15min
3+
0 * * * * run-parts /etc/periodic/hourly
4+
0 2 * * * run-parts /etc/periodic/daily
5+
0 3 * * 6 run-parts /etc/periodic/weekly
6+
0 5 1 * * run-parts /etc/periodic/monthly
7+
28
#0 */4 * * * rsnapshot alpha
39
#50 23 * * * rsnapshot beta

0 commit comments

Comments
 (0)