GithubHelp home page GithubHelp logo

Module build failed about aws-ecr-action HOT 13 CLOSED

kciter avatar kciter commented on August 17, 2024 3
Module build failed

from aws-ecr-action.

Comments (13)

kciter avatar kciter commented on August 17, 2024 10

Update Dockerfile 7ea3f73

from aws-ecr-action.

shuynh avatar shuynh commented on August 17, 2024 6

the latest version of the aws-cli introduced some new dependencies (like gcc) that this Dockerfile doesn't install.
we got around this by pinning the aws-cli install to the last working version -- pip install awscli==1.18.95

from aws-ecr-action.

geoffsoftledger avatar geoffsoftledger commented on August 17, 2024 1

Also seeing this same issue today

from aws-ecr-action.

trombini77 avatar trombini77 commented on August 17, 2024 1

Will this revision have a new release version?

from aws-ecr-action.

jairoFernandez avatar jairoFernandez commented on August 17, 2024 1

Update Dockerfile 7ea3f73

Thank you @kciter

from aws-ecr-action.

trombini77 avatar trombini77 commented on August 17, 2024

I´m facing the same issue here.

  building 'Cython.Plex.Scanners' extension
    creating build/temp.linux-x86_64-2.7
    creating build/temp.linux-x86_64-2.7/tmp
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython
    creating build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython/Plex
    gcc -fno-strict-aliasing -Os -fomit-frame-pointer -g -DNDEBUG -Os -fomit-frame-pointer -g -DTHREAD_STACK_SIZE=0x100000 -fPIC -I/usr/include/python2.7 -c /tmp/pip-install-yLt36n/Cython/Cython/Plex/Scanners.c -o build/temp.linux-x86_64-2.7/tmp/pip-install-yLt36n/Cython/Cython/Plex/Scanners.o
    unable to execute 'gcc': No such file or directory
    error: command 'gcc' failed with exit status 1

    ----------------------------------------
Command "/usr/bin/python2 -u -c "import setuptools, tokenize;__file__='/tmp/pip-install-yLt36n/Cython/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-record-ui1Oyn/install-record.txt --single-version-externally-managed --prefix /tmp/pip-build-env-JyJ8i9 --compile" failed with error code 1 in /tmp/pip-install-yLt36n/Cython/

----------------------------------------

Command "/usr/bin/python2 -m pip install --ignore-installed --no-user --prefix /tmp/pip-build-env-JyJ8i9 --no-warn-script-location --no-binary :none: --only-binary :none: -i https://pypi.org/simple -- setuptools wheel Cython" failed with error code 1 in None
The command '/bin/sh -c apk update && apk upgrade && apk add --no-cache --update python py-pip coreutils bash && rm -rf /var/cache/apk/* && pip install awscli && apk --purge -v del py-pip' returned a non-zero code: 1

Error: Docker build failed with exit code 1


What I see here that the base image doesn´t have gcc compiler installed and the script need it.. so crashed.
I saw in code that the base image is https://hub.docker.com/_/docker?tab=tags&page=1&ordering=last_updated&name=19.03.4
Step 1/5 : FROM docker:19.03.4
and have more than one year this image so probably some step after before enable the right execution and not because some modification in the base image.

from aws-ecr-action.

geoffsoftledger avatar geoffsoftledger commented on August 17, 2024

Possibly related?: https://github.blog/changelog/2020-02-27-github-actions-breaking-change-python-2-being-removed-from-all-virtual-environments/
gh actions removing support for python2.7

from aws-ecr-action.

trombini77 avatar trombini77 commented on August 17, 2024

awscli==1.18.95

I tried do build image locally with the change in Dockerfile from pip install awscli to pip install awscli==1.18.95 and it worked fine.

Now is only missing the repository owner fix it :)

from aws-ecr-action.

alarinel avatar alarinel commented on August 17, 2024

Same here

from aws-ecr-action.

rryke avatar rryke commented on August 17, 2024

+1

from aws-ecr-action.

CWSites avatar CWSites commented on August 17, 2024

Updating to kciter/aws-ecr-action@master resolved the problem for me. If possible to trigger a new version that would be much appreciated :)

from aws-ecr-action.

koslib avatar koslib commented on August 17, 2024

@kciter As the awscli brings in more functionality and security updates from version to version, I think it's wise to pin to a specific pyyaml version rather than awscli's. I've sent a PR about this too in case you agree with me #21.

from aws-ecr-action.

kciter avatar kciter commented on August 17, 2024

Here, new release https://github.com/kciter/aws-ecr-action/releases/tag/v3 😄

from aws-ecr-action.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.