boreshkinai / delta-interpolator

Apache License 2.0
75 stars 11 forks source link

Cannot build Docker image : unable to install tini #9

Closed Toctave closed 1 year ago

Toctave commented 1 year ago

Hi! When trying to build the docker image on a Ubuntu 22.04 machine, I get the following logs :

Step 10/19 : RUN apt-get install -y curl grep sed dpkg &&     TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` &&     curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb &&     dpkg -i tini.deb &&     rm tini.deb &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*
 ---> Running in eac8c955105f
Reading package lists...
Building dependency tree...
Reading state information...
sed is already the newest version (4.4-2).
grep is already the newest version (3.1-2build1).
The following additional packages will be installed:
  libcurl4
Suggested packages:
  debsig-verify
The following NEW packages will be installed:
  curl libcurl4
The following packages will be upgraded:
  dpkg
1 upgraded, 2 newly installed, 0 to remove and 56 not upgraded.
Need to get 1,516 kB of archives.
After this operation, 1,053 kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 dpkg amd64 1.19.0.5ubuntu2.4 [1,137 kB]
Get:2 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 libcurl4 amd64 7.58.0-2ubuntu3.21 [220 kB]
Get:3 http://archive.ubuntu.com/ubuntu bionic-updates/main amd64 curl amd64 7.58.0-2ubuntu3.21 [159 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1,516 kB in 1s (1,032 kB/s)
(Reading database ... 11409 files and directories currently installed.)
Preparing to unpack .../dpkg_1.19.0.5ubuntu2.4_amd64.deb ...
Unpacking dpkg (1.19.0.5ubuntu2.4) over (1.19.0.5ubuntu2.3) ...
Setting up dpkg (1.19.0.5ubuntu2.4) ...
Selecting previously unselected package libcurl4:amd64.
(Reading database ... 11409 files and directories currently installed.)
Preparing to unpack .../libcurl4_7.58.0-2ubuntu3.21_amd64.deb ...
Unpacking libcurl4:amd64 (7.58.0-2ubuntu3.21) ...
Selecting previously unselected package curl.
Preparing to unpack .../curl_7.58.0-2ubuntu3.21_amd64.deb ...
Unpacking curl (7.58.0-2ubuntu3.21) ...
Setting up libcurl4:amd64 (7.58.0-2ubuntu3.21) ...
Setting up curl (7.58.0-2ubuntu3.21) ...
Processing triggers for libc-bin (2.27-3ubuntu1) ...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100     9  100     9    0     0     30      0 --:--:-- --:--:-- --:--:--    30
dpkg-deb: error: 'tini.deb' is not a Debian format archive
dpkg: error processing archive tini.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 tini.deb
The command '/bin/sh -c apt-get install -y curl grep sed dpkg &&     TINI_VERSION=`curl https://github.com/krallin/tini/releases/latest | grep -o "/v.*\"" | sed 's:^..\(.*\).$:\1:'` &&     curl -L "https://github.com/krallin/tini/releases/download/v${TINI_VERSION}/tini_${TINI_VERSION}.deb" > tini.deb &&     dpkg -i tini.deb &&     rm tini.deb &&     apt-get clean &&     rm -rf /var/lib/apt/lists/*' returned a non-zero code: 1

The issue seems to be that the curl command that sets TINI_VERSION doesn't work. At least on my machine, running curl https://github.com/krallin/tini/releases/latest does not return anything.

boreshkinai commented 1 year ago

I pushed the fix, please give it a try

Toctave commented 1 year ago

That worked, thanks. However there was another issue when trying to run the container, I'll open a new thread.