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

Dockerfile error? Docker build failed with exit code 1 #14

Open
aclairefication opened this issue Jun 25, 2022 · 5 comments
Open

Dockerfile error? Docker build failed with exit code 1 #14

aclairefication opened this issue Jun 25, 2022 · 5 comments

Comments

@aclairefication
Copy link

I'm using your Github Action via the Marketplace and have configured the options for the step.
Copied the step definition directly from Marketplace search result & modified. ✔️
Github's UI validated that the yml indentation was correct. ✔️
c.f. https://github.com/aclairefication/oss-storytelling/blob/main/.github/workflows/update_story_archetype.yml#L16

I created a pull request & merged it to main, which kicked off the workflow.
The first run was not successful, ending with Docker build failed
c.f. https://github.com/aclairefication/oss-storytelling/runs/7051828039?check_suite_focus=true#step:2:595
Relevant lines:
1st try:

  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    error: subprocess-exited-with-error
  
    × python setup.py bdist_wheel did not run successfully.
    │ exit code: 1
    ╰─> [48 lines of output]
        unable to execute 'gcc': No such file or directory
        unable to execute 'gcc': No such file or directory

    note: This error originates from a subprocess, and is likely not a problem with pip.
    ERROR: Failed building wheel for cffi

    Running setup.py install for cffi: finished with status 'error'
    error: subprocess-exited-with-error

    note: This error originates from a subprocess, and is likely not a problem with pip.
  error: legacy-install-failure
  
  × Encountered error while trying to install package.
  ╰─> cffi

  Warning: Docker build failed with exit code 1, back off 5.586 seconds before retry.

  Building wheels for collected packages: cffi
    Building wheel for cffi (setup.py): started
    Building wheel for cffi (setup.py): finished with status 'error'
    error: subprocess-exited-with-error

2nd try: same result and it gave up...

    Error: Docker build failed with exit code 1

Q: is there an issue in this repo's Dockerfile for v1.0.0 that builds the Gtihub-hosted runner?
Pinned this version, as suggested by the Marketplace step definition: https://github.com/tokusumi/markdown-embed-code/releases/tag/v1.0.0

aclairefication referenced this issue in aclairefication/oss-storytelling Jun 25, 2022
Trying out marketplace action tokusumi/[email protected]
@ofou
Copy link

ofou commented Jun 28, 2022

same issue here 😢

@urmzd
Copy link

urmzd commented Jul 6, 2022

Waiting for fix #13 to be merged in... Seems like the owner isn't maintaining this repository anymore :/

@DGrv
Copy link

DGrv commented Nov 25, 2022

Does someone succeed to fix it in a fork ?
I tried 2 others:

But could not make them work even if the second one passt the build section.
I forked it and modified few things like in the __main___.py I changed --local with --global.

Changed the yml a bit as well.

and got to here :
but I am playing around ...

Did someone is actually using such tool ?

Thanks

@urmzd
Copy link

urmzd commented Nov 25, 2022

@DGrv I'm using embedme at the moment.

Here's a working example from one of my projects:
https://github.com/urmzd/linear-gp/blob/main/.github/workflows/build.yml

@urmzd
Copy link

urmzd commented Dec 8, 2022

Ended up creating an action to mimic this behaviour: https://github.com/marketplace/actions/embed-md

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants