Drop armhf support to match upstream

This commit is contained in:
TheSpad 2022-12-10 18:00:52 +00:00
parent f227a3d2ad
commit e0a63a8ff2
No known key found for this signature in database
GPG Key ID: 08F06191F4587860
6 changed files with 18 additions and 65 deletions

View File

@ -2,29 +2,12 @@
FROM alpine:3.16 as rootfs-stage
# environment
ENV ARCH=armhfp
ARG FEDORA_VERSION
# install packages
RUN \
apk add --no-cache \
bash \
curl \
git \
jq \
tar \
tzdata \
xz
# grab tarball root
RUN \
mkdir /root-out && \
git clone --depth 1 -b ${FEDORA_VERSION} https://github.com/fedora-cloud/docker-brew-fedora.git && \
tar xf \
docker-brew-fedora/${ARCH}/fedora-${FEDORA_VERSION}*.tar.xz -C \
/root-out && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
tzdata
# set version for s6 overlay
ARG S6_OVERLAY_VERSION="3.1.2.1"
@ -42,53 +25,7 @@ RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-noarch.tar.xz
ADD https://github.com/just-containers/s6-overlay/releases/download/v${S6_OVERLAY_VERSION}/s6-overlay-symlinks-arch.tar.xz /tmp
RUN tar -C /root-out -Jxpf /tmp/s6-overlay-symlinks-arch.tar.xz
# Runtime stage
FROM scratch
COPY --from=rootfs-stage /root-out/ /
ARG BUILD_DATE
ARG VERSION
ARG MODS_VERSION="v3"
LABEL build_version="Linuxserver.io version:- ${VERSION} Build-date:- ${BUILD_DATE}"
LABEL maintainer="TheLamer"
ADD --chmod=744 "https://raw.githubusercontent.com/linuxserver/docker-mods/mod-scripts/docker-mods.${MODS_VERSION}" "/docker-mods"
# environment variables
ENV PS1="$(whoami)@$(hostname):$(pwd)\\$ " \
HOME="/root" \
TERM="xterm" \
S6_CMD_WAIT_FOR_SERVICES_MAXTIME="0" \
S6_VERBOSITY=1 \
S6_STAGE2_HOOK=/docker-mods
RUN \
echo "**** install base packages ****" && \
dnf -y --forcearch armv7hl --setopt=install_weak_deps=False --best install \
ca-certificates \
coreutils \
curl \
findutils \
hostname \
jq \
netcat \
procps \
shadow \
tzdata \
which && \
echo "**** create abc user and make our folders ****" && \
useradd -u 911 -U -d /config -s /bin/false abc && \
usermod -G users abc && \
mkdir -p \
/app \
/config \
/defaults && \
echo "**** cleanup ****" && \
dnf autoremove -y && \
dnf clean all && \
rm -rf \
/tmp/*
# add local files
COPY root/ /
COPY root-armhf/ /
ENTRYPOINT ["/init"]

View File

@ -0,0 +1,14 @@
#!/usr/bin/with-contenv bash
cat <<-EOF
********************************************************
********************************************************
* *
* !!!! *
* This Fedora baseimage does not support *
* 32 bit ARM due to lack of available OS packages *
* *
* *
********************************************************
********************************************************
EOF

View File

@ -0,0 +1 @@
oneshot

View File

@ -0,0 +1 @@
/etc/s6-overlay/s6-rc.d/init-os/run