From 7dbc80345b59976156b38a85b049316971c1bccd Mon Sep 17 00:00:00 2001 From: DanyLE Date: Sun, 10 Mar 2024 16:59:28 +0100 Subject: [PATCH] fix(CI): add fuse to docker container for building appimage --- Jenkinsfile | 1 + docker/dev/Dockerfile | 10 +++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/Jenkinsfile b/Jenkinsfile index 0ce42ea..3bd3958 100644 --- a/Jenkinsfile +++ b/Jenkinsfile @@ -3,6 +3,7 @@ pipeline { docker { image 'xsangle/ci-tools:latest' reuseNode true + args ' --device /dev/fuse --privileged ' } } options { diff --git a/docker/dev/Dockerfile b/docker/dev/Dockerfile index 8289f49..d807a86 100644 --- a/docker/dev/Dockerfile +++ b/docker/dev/Dockerfile @@ -1,4 +1,7 @@ FROM debian:bookworm AS deploy-env +ARG UNAME=ci +ARG UID=1000 +ARG GID=1000 RUN apt-get update && apt-get --yes --no-install-recommends install \ build-essential \ @@ -34,4 +37,9 @@ RUN apt-get update && apt-get --yes --no-install-recommends install \ libsqlite3-0:arm64 zlib1g:arm64 libreadline8:arm64 libssl3:arm64 \ libffi-dev:arm64 libturbojpeg0:arm64 libvncclient1:arm64 \ libsqlite3-0:armhf zlib1g:armhf libreadline8:armhf libssl3:armhf \ - libffi-dev:armhf libturbojpeg0:armhf libvncclient1:armhf \ No newline at end of file + libffi-dev:armhf libturbojpeg0:armhf libvncclient1:armhf + +RUN groupadd -g 1000 -o ci +RUN useradd -m -u 1000 -g 1000 -o -s /bin/bash ci +USER ci +WORKDIR /home/ci \ No newline at end of file