From ac3d696f24061047c5262d2ea3507311088c8364 Mon Sep 17 00:00:00 2001 From: Christian Stewart Date: Thu, 13 Jun 2024 20:11:22 -0700 Subject: [PATCH] skiff-core-defconfig: check if pkgs are available and use cross-platform manifest Signed-off-by: Christian Stewart --- .../skiff-core-defconfig/coreenv/Dockerfile | 120 ++++++++++-------- 1 file changed, 65 insertions(+), 55 deletions(-) diff --git a/configs/skiff/core/buildroot_ext/package/skiff-core-defconfig/coreenv/Dockerfile b/configs/skiff/core/buildroot_ext/package/skiff-core-defconfig/coreenv/Dockerfile index db15c354..5349e592 100644 --- a/configs/skiff/core/buildroot_ext/package/skiff-core-defconfig/coreenv/Dockerfile +++ b/configs/skiff/core/buildroot_ext/package/skiff-core-defconfig/coreenv/Dockerfile @@ -1,5 +1,6 @@ +# syntax=docker/dockerfile:1.8-labs ARG DISTRO -FROM ${DISTRO:-debian:sid} as stage1 +FROM ${DISTRO:-debian:sid} AS stage1 # setup environment ENV LANG=C.UTF-8 \ @@ -11,56 +12,62 @@ ENV LANG=C.UTF-8 \ RUN rm -rf /var/lib/apt/lists/* && \ apt-get update -# Minimal desktop environment. -RUN \ +# Setup packages list to install +RUN cat > /etc/install-pkgs-list < /etc/lightdm/lightdm.conf.d/01-enable-users.conf && \ - printf \ - "# Ignore the GPU blocklist and use GPU rendering.\nexport CHROMIUM_FLAGS=\"\$CHROMIUM_FLAGS --ignore-gpu-blocklist\"\n" >\ - /etc/chromium.d/ignore-gpu-blocklist + if [ -d /etc/chromium.d ]; then \ + printf \ + "# Ignore the GPU blocklist and use GPU rendering.\nexport CHROMIUM_FLAGS=\"\$CHROMIUM_FLAGS --ignore-gpu-blocklist\"\n" >\ + /etc/chromium.d/ignore-gpu-blocklist; \ + fi # Create the user 'core' which will be the usual userspace account # Also allow core to run stuff as sudo without a password.