Skip to content

Commit 5dfe7d1

Browse files
authored
Merge pull request #251 from linuxserver/3.21-initial
2 parents 481825d + ff812c0 commit 5dfe7d1

File tree

13 files changed

+184
-123
lines changed

13 files changed

+184
-123
lines changed

.github/CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,10 +105,10 @@ docker build \
105105
-t linuxserver/baseimage-alpine:latest .
106106
```
107107

108-
The ARM variants can be built on x86_64 hardware using `multiarch/qemu-user-static`
108+
The ARM variants can be built on x86_64 hardware and vice versa using `lscr.io/linuxserver/qemu-static`
109109

110110
```bash
111-
docker run --rm --privileged multiarch/qemu-user-static:register --reset
111+
docker run --rm --privileged lscr.io/linuxserver/qemu-static --reset
112112
```
113113

114114
Once registered you can define the dockerfile to use with `-f Dockerfile.aarch64`.

.github/workflows/package_trigger_scheduler.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3434
echo "> Skipping branch ${br} due to \`skip_package_check\` being set in \`jenkins-vars.yml\`." >> $GITHUB_STEP_SUMMARY
3535
skipped_branches="${skipped_branches}${br} "
36-
elif grep -wq "^baseimage-alpine_${br}$" <<< "${SKIP_PACKAGE_TRIGGER}"; then
36+
elif grep -q "^baseimage-alpine_${br}" <<< "${SKIP_PACKAGE_TRIGGER}"; then
3737
echo "> [!WARNING]" >> $GITHUB_STEP_SUMMARY
3838
echo "> Github organizational variable \`SKIP_PACKAGE_TRIGGER\` contains \`baseimage-alpine_${br}\`; skipping trigger." >> $GITHUB_STEP_SUMMARY
3939
skipped_branches="${skipped_branches}${br} "
@@ -70,13 +70,14 @@ jobs:
7070
if [[ -n "${triggered_branches}" ]] || [[ -n "${skipped_branches}" ]]; then
7171
if [[ -n "${triggered_branches}" ]]; then
7272
NOTIFY_BRANCHES="**Triggered:** ${triggered_branches} \n"
73+
NOTIFY_BUILD_URL="**Build URL:** https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-baseimage-alpine/activity/ \n"
74+
echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****"
7375
fi
7476
if [[ -n "${skipped_branches}" ]]; then
7577
NOTIFY_BRANCHES="${NOTIFY_BRANCHES}**Skipped:** ${skipped_branches} \n"
7678
fi
77-
echo "**** Package check build(s) triggered for branch(es): ${triggered_branches} ****"
7879
echo "**** Notifying Discord ****"
7980
curl -X POST -H "Content-Type: application/json" --data '{"avatar_url": "https://cdn.discordapp.com/avatars/354986384542662657/df91181b3f1cf0ef1592fbe18e0962d7.png","embeds": [{"color": 9802903,
80-
"description": "**Package Check Build(s) Triggered for baseimage-alpine** \n'"${NOTIFY_BRANCHES}"'**Build URL:** '"https://ci.linuxserver.io/blue/organizations/jenkins/Docker-Pipeline-Builders%2Fdocker-baseimage-alpine/activity/"' \n"}],
81+
"description": "**Package Check Build(s) for baseimage-alpine** \n'"${NOTIFY_BRANCHES}"''"${NOTIFY_BUILD_URL}"'"}],
8182
"username": "Github Actions"}' ${{ secrets.DISCORD_WEBHOOK }}
8283
fi

Dockerfile

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

3-
FROM alpine:3.19 AS rootfs-stage
3+
FROM alpine:3.20 AS rootfs-stage
44

55
# environment
66
ENV ROOTFS=/root-out
7-
ENV REL=v3.20
7+
ENV REL=v3.21
88
ENV ARCH=x86_64
99
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
1010
ENV PACKAGES=alpine-baselayout,\
@@ -30,7 +30,7 @@ RUN \
3030
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
3131

3232
# set version for s6 overlay
33-
ARG S6_OVERLAY_VERSION="3.1.6.2"
33+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3434
ARG S6_OVERLAY_ARCH="x86_64"
3535

3636
# add s6 overlay
@@ -41,7 +41,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
4141

4242
# add s6 optional symlinks
4343
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
44-
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
44+
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
4545
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
4646
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
4747

@@ -53,12 +53,14 @@ ARG VERSION
5353
ARG MODS_VERSION="v3"
5454
ARG PKG_INST_VERSION="v1"
5555
ARG LSIOWN_VERSION="v1"
56+
ARG WITHCONTENV_VERSION="v1"
5657
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5758
LABEL maintainer="TheLamer"
5859

5960
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
6061
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
6162
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
63+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
6264

6365
# environment variables
6466
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \

Dockerfile.aarch64

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

3-
FROM alpine:3.19 AS rootfs-stage
3+
FROM alpine:3.20 AS rootfs-stage
44

55
# environment
66
ENV ROOTFS=/root-out
7-
ENV REL=v3.20
7+
ENV REL=v3.21
88
ENV ARCH=aarch64
99
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
1010
ENV PACKAGES=alpine-baselayout,\
@@ -30,7 +30,7 @@ RUN \
3030
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
3131

3232
# set version for s6 overlay
33-
ARG S6_OVERLAY_VERSION="3.1.6.2"
33+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3434
ARG S6_OVERLAY_ARCH="aarch64"
3535

3636
# add s6 overlay
@@ -41,7 +41,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
4141

4242
# add s6 optional symlinks
4343
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-noarch.tar.xz /tmp
44-
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
44+
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz && unlink /root-out/usr/bin/with-contenv
4545
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
4646
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
4747

@@ -53,12 +53,14 @@ ARG VERSION
5353
ARG MODS_VERSION="v3"
5454
ARG PKG_INST_VERSION="v1"
5555
ARG LSIOWN_VERSION="v1"
56+
ARG WITHCONTENV_VERSION="v1"
5657
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5758
LABEL maintainer="TheLamer"
5859

5960
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
6061
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/package-install.${PKG_INST_VERSION}" "/etc/s6-overlay/s6-rc.d/init-mods-package-install/run"
6162
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
63+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
6264

6365
# environment variables
6466
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \

0 commit comments

Comments
 (0)