Skip to content
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

install feature common-utils failed on centOS7 #643

Closed
t2wei opened this issue Aug 8, 2023 · 3 comments · Fixed by #644
Closed

install feature common-utils failed on centOS7 #643

t2wei opened this issue Aug 8, 2023 · 3 comments · Fixed by #644
Assignees
Labels
bug Something isn't working

Comments

@t2wei
Copy link

t2wei commented Aug 8, 2023

Docker file:

ARG platform=aarch64
FROM quay.io/pypa/manylinux2014_${platform}:latest AS data-service
RUN yum install libffi-devel -y \
    && /usr/local/bin/python3.7 -m pip install --upgrade pip \
    && echo "y" | rm /usr/bin/python \
    && ln -s /usr/local/bin/python3.7 /usr/bin/python \
    && ln -s /opt/python/cp37-cp37m/bin/pip /usr/bin/pip 

devcontainer.json:

{
  "name": "data-service-dev-vscode",
  "build": {
    "dockerfile": "Dockerfile"
   }
  "customizations": {
    "vscode": {
      "extensions": [
        "ms-python.python",
        "ms-python.vscode-pylance"
      ]
    }
  },
  "features": {
    "ghcr.io/devcontainers/features/common-utils:2": {
      "configureZshAsDefaultShell": true
    }
  }
}

Error: No package jq available. Error: Not tolerating missing names on install, stopping.
Please see https://www.cyberithub.com/how-to-install-jq-json-processor-on-rhel-centos-7-8/

@samruddhikhandale
Copy link
Member

samruddhikhandale commented Aug 8, 2023

Hi 👋

Thanks for reporting the issue, I am able to reproduce as well. The common-utils Feature was working well with centos OS 7 (like 19 hours ago, see here). We have this scenario which validates it.

However, looks like something changed (in the upstream) which is now making the jq installation fail without the EPEL Repository.

Meanwhile the common-utils Feature is fixed, @t2wei can you add the following statement 👇 to your Dockerfile? It should help you get unblocked. Thanks!

RUN yum install epel-release -y

@samruddhikhandale samruddhikhandale self-assigned this Aug 8, 2023
@samruddhikhandale samruddhikhandale added the bug Something isn't working label Aug 8, 2023
@samruddhikhandale
Copy link
Member

The common-utils Feature was working well with centos OS 7 (like 19 hours ago, see here)

Mmm, never mind I still see 👇 https://github.com/devcontainers/features/actions/runs/5790698488/job/15694249322#step:4:5786. However, it's strange to see the Feature proceeding even with that error in the action run. Looking 👀

[2023-08-07T23:06:24.139Z] #15 11.88 No package jq available.

@samruddhikhandale
Copy link
Member

Opened #644 with the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants