tokusumi / markdown-embed-code

Action to synchronize "any" code in markdown with an external file. No more managing code as plain text.
MIT License
29 stars 14 forks source link

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

Open aclairefication opened 2 years ago

aclairefication commented 2 years ago

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

ofou commented 2 years ago

same issue here 😢

urmzd commented 2 years ago

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

DGrv commented 1 year ago

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 commented 1 year ago

@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 commented 1 year ago

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