Skip to content

Commit 155116c

Browse files
authored
Merge pull request #19 from linuxserver/master-bump-s6
Bump s6, Alpine build stage, tidy init, add SBOM/Provenance
2 parents 183f3ad + c467a50 commit 155116c

File tree

9 files changed

+14
-9
lines changed

9 files changed

+14
-9
lines changed

Dockerfile

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

3-
FROM alpine:3.18 as rootfs-stage
3+
FROM alpine:3 as rootfs-stage
44

55
# environment
66
ENV REL=bookworm
@@ -19,15 +19,15 @@ RUN \
1919
mkdir /root-out && \
2020
curl -o \
2121
/rootfs.tar.gz -L \
22-
https://github.com/debuerreotype/docker-debian-artifacts/raw/dist-${ARCH}/${REL}/slim/rootfs.tar.xz && \
22+
https://github.com/debuerreotype/docker-debian-artifacts/raw/refs/heads/dist-${ARCH}/${REL}/slim/oci/blobs/rootfs.tar.gz && \
2323
tar xf \
2424
/rootfs.tar.gz -C \
2525
/root-out && \
2626
rm -rf \
2727
/root-out/var/log/*
2828

2929
# set version for s6 overlay
30-
ARG S6_OVERLAY_VERSION="3.1.6.2"
30+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3131
ARG S6_OVERLAY_ARCH="x86_64"
3232

3333
# add s6 overlay
@@ -38,7 +38,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
3838

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

@@ -50,12 +50,14 @@ ARG VERSION
5050
ARG MODS_VERSION="v3"
5151
ARG PKG_INST_VERSION="v1"
5252
ARG LSIOWN_VERSION="v1"
53+
ARG WITHCONTENV_VERSION="v1"
5354
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5455
LABEL maintainer="TheLamer"
5556

5657
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
5758
ADD --chmod=744 "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"
5859
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
60+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
5961

6062
# set environment variables
6163
ARG DEBIAN_FRONTEND="noninteractive"

Dockerfile.aarch64

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

3-
FROM alpine:3.18 as rootfs-stage
3+
FROM alpine:3 as rootfs-stage
44

55
# environment
66
ENV REL=bookworm
@@ -19,15 +19,15 @@ RUN \
1919
mkdir /root-out && \
2020
curl -o \
2121
/rootfs.tar.gz -L \
22-
https://github.com/debuerreotype/docker-debian-artifacts/raw/dist-${ARCH}/${REL}/slim/rootfs.tar.xz && \
22+
https://github.com/debuerreotype/docker-debian-artifacts/raw/refs/heads/dist-${ARCH}/${REL}/slim/oci/blobs/rootfs.tar.gz && \
2323
tar xf \
2424
/rootfs.tar.gz -C \
2525
/root-out && \
2626
rm -rf \
2727
/root-out/var/log/*
2828

2929
# set version for s6 overlay
30-
ARG S6_OVERLAY_VERSION="3.1.6.2"
30+
ARG S6_OVERLAY_VERSION="3.2.0.2"
3131
ARG S6_OVERLAY_ARCH="aarch64"
3232

3333
# add s6 overlay
@@ -38,7 +38,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-${S6_OVERLAY_ARCH}.tar.xz
3838

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

@@ -50,12 +50,14 @@ ARG VERSION
5050
ARG MODS_VERSION="v3"
5151
ARG PKG_INST_VERSION="v1"
5252
ARG LSIOWN_VERSION="v1"
53+
ARG WITHCONTENV_VERSION="v1"
5354
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
5455
LABEL maintainer="TheLamer"
5556

5657
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
5758
ADD --chmod=744 "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"
5859
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/lsiown.${LSIOWN_VERSION}" "/usr/bin/lsiown"
60+
ADD --chmod=755 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/with-contenv.${WITHCONTENV_VERSION}" "/usr/bin/with-contenv"
5961

6062
# set environment variables
6163
ARG DEBIAN_FRONTEND="noninteractive"

jenkins-vars.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ external_type: os
66
release_type: stable
77
release_tag: bookworm
88
ls_branch: master
9-
build_armhf: false
9+
image_sbom: true
10+
image_provenance: true
1011
repo_vars:
1112
- BUILD_VERSION_ARG = 'OS'
1213
- LS_USER = 'linuxserver'
File renamed without changes.
File renamed without changes.

root/etc/s6-overlay/s6-rc.d/init-mods/dependencies.d/base

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-os-end/dependencies.d/base

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-os-end/dependencies.d/init-migrations

Whitespace-only changes.

root/etc/s6-overlay/s6-rc.d/init-services/dependencies.d/init-mods-end

Whitespace-only changes.

0 commit comments

Comments
 (0)