From 7f961ab823d829e1972026d53018fc55a06c896c Mon Sep 17 00:00:00 2001 From: Konrad Date: Thu, 12 Sep 2024 17:08:35 +0200 Subject: [PATCH] fix: install libgirepository1.0-dev to make gobject-introspection:4.2.2 gem install It's a dependency of cairo, and it fails to install the package by itself during bundle install. It seems that it clashes with some other gem during parallel installation. The alternative and probably less fragile solution would be to set number of bundler jobs to 1, but I figured that it's not worth compromising performance when such a simple workaround exists Exact error: "apt-get install -V -y libgirepository1.0-dev" E: Could not get lock /var/lib/dpkg/lock-frontend. It is held by process 823 (apt-get) E: Unable to acquire the dpkg frontend lock (/var/lib/dpkg/lock-frontend), is another process using it? installing 'libgirepository1.0-dev' native package... failed Failed to run 'apt-get install -V -y libgirepository1.0-dev' --- Dockerfile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile b/Dockerfile index f34b6db..f360d1e 100644 --- a/Dockerfile +++ b/Dockerfile @@ -9,6 +9,8 @@ RUN apt-get update && apt-get install -yyq --no-install-recommends \ libgdk-pixbuf2.0-dev \ imagemagick \ liblcms2-utils \ + # When girepository tries to install implicitly, there's an error due to apt being locked; details in commit message + libgirepository1.0-dev \ && apt-get clean \ && rm -rf /va/lib/apt/lists/*