markdown-embed-code icon indicating copy to clipboard operation
markdown-embed-code copied to clipboard

Dockerfile error? Docker build failed with exit code 1

Open aclairefication opened this issue 3 years ago • 5 comments

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 avatar Jun 25 '22 05:06 aclairefication

same issue here 😢

ofou avatar Jun 28 '22 20:06 ofou

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

urmzd avatar Jul 06 '22 18:07 urmzd

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

DGrv avatar Nov 25 '22 20:11 DGrv

@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 avatar Nov 25 '22 21:11 urmzd

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

urmzd avatar Dec 08 '22 21:12 urmzd