Skip to content

Commit fa88003

Browse files
committed
Rebase to 3.17, migrate to s6v3
1 parent 65f1717 commit fa88003

18 files changed

Lines changed: 46 additions & 32 deletions

File tree

.github/workflows/call-baseimage-update.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ jobs:
1212
repo_owner: ${{ github.repository_owner }}
1313
app_name: "monit"
1414
baseimage: "alpine"
15-
basebranch: "3.15"
15+
basebranch: "3.17"
1616
secrets:
1717
repo_release_token: ${{ secrets.repo_release_token }}

.github/workflows/call-build-image.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
repo_owner: ${{ github.repository_owner }}
1313
app_name: "monit"
1414
release_type: "alpine"
15-
release_url: "v3.15/main"
15+
release_url: "v3.17/main"
1616
release_name: "monit"
1717
target-arch: "all"
1818
secrets:

.github/workflows/call-check-and-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
repo_owner: ${{ github.repository_owner }}
1313
app_name: "monit"
1414
release_type: "alpine"
15-
release_url: "v3.15/main"
15+
release_url: "v3.17/main"
1616
release_name: "monit"
1717
secrets:
1818
repo_release_token: ${{ secrets.repo_release_token }}

Dockerfile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
1-
FROM ghcr.io/linuxserver/baseimage-alpine:3.15
1+
# syntax=docker/dockerfile:1
2+
3+
FROM ghcr.io/linuxserver/baseimage-alpine:3.17
24

35
# set version label
46
ARG BUILD_DATE
@@ -13,7 +15,6 @@ RUN \
1315
gcc \
1416
musl-dev \
1517
python3-dev \
16-
py3-wheel \
1718
libffi-dev \
1819
openssl-dev \
1920
cargo && \
@@ -24,13 +25,16 @@ RUN \
2425
py3-pip && \
2526
echo "**** install monit ****" && \
2627
if [ -z ${APP_VERSION+x} ]; then \
27-
APP_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.15/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
28+
APP_VERSION=$(curl -sL "http://dl-cdn.alpinelinux.org/alpine/v3.17/main/x86_64/APKINDEX.tar.gz" | tar -xz -C /tmp \
2829
&& awk '/^P:'"monit"'$/,/V:/' /tmp/APKINDEX | sed -n 2p | sed 's/^V://'); \
2930
fi && \
3031
apk add -U --upgrade --no-cache \
3132
monit==${APP_VERSION} && \
32-
python3 -m pip install --upgrade pip && \
33-
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine/ \
33+
python3 -m ensurepip && \
34+
pip3 install -U --no-cache-dir \
35+
pip \
36+
wheel && \
37+
pip3 install -U --no-cache-dir --find-links https://wheel-index.linuxserver.io/alpine-3.17/ \
3438
apprise && \
3539
apk del --purge \
3640
build-dependencies && \
@@ -43,4 +47,4 @@ COPY root/ /
4347

4448
EXPOSE 2812
4549

46-
VOLUME /config
50+
VOLUME /config

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -226,5 +226,6 @@ Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64
226226

227227
## Versions
228228

229+
* **12.01.23:** - Rebase to Alpine 3.17, migrate to s6v3.
229230
* **10.01.22:** - Rebase to Alpine 3.15.
230231
* **20.10.21:** - Initial release.

root/etc/cont-init.d/50-config

Lines changed: 0 additions & 20 deletions
This file was deleted.

root/etc/s6-overlay/s6-rc.d/init-config-end/dependencies.d/init-monit-config

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-monit-config/dependencies.d/init-config

Whitespace-only changes.
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
#!/usr/bin/with-contenv bash
2+
# shellcheck shell=bash
3+
4+
#Copy defaults
5+
if [[ ! -f "/config/monitrc" ]]; then
6+
cp -a /defaults/monitrc /config/monitrc
7+
fi
8+
9+
if [[ ! -f "/config/monit2apprise.sh" ]]; then
10+
cp -a /defaults/monit2apprise.sh /config/monit2apprise.sh
11+
fi
12+
13+
# set permissions
14+
chmod 700 \
15+
/config/monitrc
16+
17+
chmod +x \
18+
/config/monit2apprise.sh
19+
20+
lsiown -R abc:abc \
21+
/config
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
oneshot

0 commit comments

Comments
 (0)