Skip to content

Unable to run the action inside docker #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
sergepetrenko opened this issue Feb 21, 2024 · 0 comments · Fixed by #45
Closed

Unable to run the action inside docker #44

sergepetrenko opened this issue Feb 21, 2024 · 0 comments · Fixed by #45
Labels
feature A new functionality

Comments

@sergepetrenko
Copy link

sergepetrenko commented Feb 21, 2024

I have a job set up as follows (github public runner):

    runs-on: ubuntu-20.04

And then a step (you may take a look at the workflow file here ):

      - name: Install tarantool ${{ matrix.tarantool }}
        if: startsWith(matrix.tarantool, 'release') != true
        uses: tarantool/setup-tarantool@v2
        with:
          tarantool-version: ${{ matrix.tarantool }}

The workflow passes fine, but if I change runs-on to:

    runs-on: ubuntu-20.04-self-hosted                                            
    container:                                                                   
      image: docker.io/tarantool/testing:ubuntu-focal

or

    runs-on: ubuntu-20.04-self-hosted                                            
    container:                                                                   
      image: ubuntu:20.04

The job starts failing like this:

Caching APT packages: build-essential, cmake, cmake-data, dpkg-dev, fakeroot, g++, g++-9, libalgorithm-diff-perl, libalgorithm-diff-xs-perl, libalgorithm-merge-perl, libarchive13:amd64, libcurl4:amd64, libdpkg-perl, libfakeroot:amd64, libfile-fcntllock-perl, libicu66:amd64, libjsoncpp1:amd64, liblocale-gettext-perl, librhash0:amd64, libstdc++-9-dev:amd64, libunwind8:amd64, libuv1:amd64, libxml2:amd64, make, tarantool, tarantool-common, tarantool-dev
Error: ENOENT: no such file or directory, stat '/usr/share/doc/build-essential/AUTHORS'

The problem is described in #41 (comment) and should be fixed by #41

@Totktonada Totktonada added the feature A new functionality label Feb 24, 2024
grafin added a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
grafin added a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
grafin added a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
grafin added a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
grafin added a commit to grafin/setup-tarantool that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes tarantool#44
grafin added a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
Totktonada pushed a commit that referenced this issue Feb 25, 2024
In ubuntu:22.04 docker man dpkg contains following:
"-L|--listfiles <package>...      List files 'owned' by package(s)."

`dpkg -L cmake` mentions file /usr/share/doc/cmake/NEWS.Debian.gz, which
is not present in the system after successful `apt-get -y install cmake`.
This file is not installed because it matches exclude-path in dpkg config,
and `apt-get install` respects this config option, while `dpkg -L`
doesn't. This leads to setup-tarantool failing during packaging cache.

This patch filters `dpkg -L` output according to dpkg configs.

Closes #44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new functionality
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants