Merge pull request #169 from linuxserver/edge-rootfs-poc

This commit is contained in:
Adam 2023-02-16 15:32:33 +00:00 committed by GitHub
commit a6eb9330ac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 33 additions and 54 deletions

0
.github/workflows/call_invalid_helper.yml vendored Executable file → Normal file
View file

View file

@ -1,8 +1,9 @@
# syntax=docker/dockerfile:1
FROM alpine:3.17 as rootfs-stage
FROM alpine:3 as rootfs-stage
# environment
ENV ROOTFS=/root-out
ENV REL=edge
ENV ARCH=x86_64
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
@ -10,29 +11,22 @@ ENV PACKAGES=alpine-baselayout,\
alpine-keys,\
apk-tools,\
busybox,\
libc-utils,\
xz
libc-utils
# install packages
RUN \
apk add --no-cache \
bash \
curl \
tzdata \
xz
# fetch builder script from gliderlabs
# build rootfs
RUN \
curl -o \
/mkimage-alpine.bash -L \
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
chmod +x \
/mkimage-alpine.bash && \
./mkimage-alpine.bash && \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out && \
mkdir -p "$ROOTFS/etc/apk" && \
{ \
echo "$MIRROR/$REL/main"; \
echo "$MIRROR/$REL/community"; \
} > "$ROOTFS/etc/apk/repositories" && \
apk --root "$ROOTFS" --no-cache --keys-dir /etc/apk/keys add --arch $ARCH --initdb ${PACKAGES//,/ } && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# set version for s6 overlay
@ -78,7 +72,6 @@ RUN \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
echo "**** create abc user and make our folders ****" && \

View file

@ -1,8 +1,9 @@
# syntax=docker/dockerfile:1
FROM alpine:3.17 as rootfs-stage
FROM alpine:3 as rootfs-stage
# environment
ENV ROOTFS=/root-out
ENV REL=edge
ENV ARCH=aarch64
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
@ -10,29 +11,22 @@ ENV PACKAGES=alpine-baselayout,\
alpine-keys,\
apk-tools,\
busybox,\
libc-utils,\
xz
libc-utils
# install packages
RUN \
apk add --no-cache \
bash \
curl \
tzdata \
xz
# fetch builder script from gliderlabs
# build rootfs
RUN \
curl -o \
/mkimage-alpine.bash -L \
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
chmod +x \
/mkimage-alpine.bash && \
./mkimage-alpine.bash && \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out && \
mkdir -p "$ROOTFS/etc/apk" && \
{ \
echo "$MIRROR/$REL/main"; \
echo "$MIRROR/$REL/community"; \
} > "$ROOTFS/etc/apk/repositories" && \
apk --root "$ROOTFS" --no-cache --keys-dir /etc/apk/keys add --arch $ARCH --initdb ${PACKAGES//,/ } && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# set version for s6 overlay
@ -78,7 +72,6 @@ RUN \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
echo "**** create abc user and make our folders ****" && \

View file

@ -1,8 +1,9 @@
# syntax=docker/dockerfile:1
FROM alpine:3.17 as rootfs-stage
FROM alpine:3 as rootfs-stage
# environment
ENV ROOTFS=/root-out
ENV REL=edge
ENV ARCH=armv7
ENV MIRROR=http://dl-cdn.alpinelinux.org/alpine
@ -10,29 +11,22 @@ ENV PACKAGES=alpine-baselayout,\
alpine-keys,\
apk-tools,\
busybox,\
libc-utils,\
xz
libc-utils
# install packages
RUN \
apk add --no-cache \
bash \
curl \
tzdata \
xz
# fetch builder script from gliderlabs
# build rootfs
RUN \
curl -o \
/mkimage-alpine.bash -L \
https://raw.githubusercontent.com/gliderlabs/docker-alpine/master/builder/scripts/mkimage-alpine.bash && \
chmod +x \
/mkimage-alpine.bash && \
./mkimage-alpine.bash && \
mkdir /root-out && \
tar xf \
/rootfs.tar.xz -C \
/root-out && \
mkdir -p "$ROOTFS/etc/apk" && \
{ \
echo "$MIRROR/$REL/main"; \
echo "$MIRROR/$REL/community"; \
} > "$ROOTFS/etc/apk/repositories" && \
apk --root "$ROOTFS" --no-cache --keys-dir /etc/apk/keys add --arch $ARCH --initdb ${PACKAGES//,/ } && \
sed -i -e 's/^root::/root:!:/' /root-out/etc/shadow
# set version for s6 overlay
@ -78,7 +72,6 @@ RUN \
coreutils \
curl \
jq \
procps \
shadow \
tzdata && \
echo "**** create abc user and make our folders ****" && \

View file

@ -52,6 +52,6 @@ Apps will not behave correctly without this
sleep infinity
fi
chown abc:abc /app
chown abc:abc /config
chown abc:abc /defaults
lsiown abc:abc /app
lsiown abc:abc /config
lsiown abc:abc /defaults