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

Failed to create docker image from attached dockerfile #110

Closed
igor-epam opened this issue Jan 4, 2022 · 14 comments
Closed

Failed to create docker image from attached dockerfile #110

igor-epam opened this issue Jan 4, 2022 · 14 comments
Assignees
Labels

Comments

@igor-epam
Copy link
Contributor

Reading state information...
E: Unable to locate package libdvdread4
The command '/bin/sh -c apt-get install -yq libdvdread4 libdvdnav4 libbluray2' returned a non-zero code: 100

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

Seems that the package has been renamed for Debian Bullseye, did not see that.
Try
apt-get install libdvdread8 libdvdnav4 libbluray2
by editing the appropriate RUN line in your Dockerfiile.

I*ll add an updated file. Thanks for the hint.

@igor-epam
Copy link
Contributor Author

Still doesn't work:
hecking for chardet >= 1.0.4... no
configure: error: Package requirements (chardet >= 1.0.4) were not met:

No package 'chardet' found

Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.

Alternatively, you may set the environment variables chardet_CFLAGS
and chardet_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
The command '/bin/sh -c ./configure' returned a non-zero code: 1

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

Seems that even more things have changed... Hold on, I'll figure that out.

@nschlia nschlia reopened this Jan 4, 2022
@nschlia nschlia self-assigned this Jan 4, 2022
@nschlia nschlia added the bug label Jan 4, 2022
@igor-epam
Copy link
Contributor Author

#111

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

@igor-epam: You've basically made the same changes as I :) To credit your work I*ll merge the pull request, thanks for your help!

The problem was that after adding new dependencies to libchardet, I forgot to update the Dockerfile appropriately. Thanks again for pointing this out.

@igor-epam
Copy link
Contributor Author

Thank you, cool.
Please enable actions, so next time someone breaks docker image creation PR fails.

@igor-epam
Copy link
Contributor Author

The fix is not full.
There is runtime error of container:
sudo docker logs ffmpegfs
/usr/local/bin/ffmpegfs: error while loading shared libraries: libchardet.so.1: cannot open shared object file: No such file or directory

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

error while loading shared libraries: libchardet.so.1: cannot open shared object file: No such file or directory

I think you specifically must add libchardet1, line 7 of Dockerfile should be:
RUN apt-get install -yq fuse libfuse2 libsqlite3-0 libavcodec58 libavformat58 libswresample3 libavutil56 libswscale5 libavfilter7 libcue2 libchardet1
I have successfully built the container and ran ffmpegfs in it. You can change your merge request accordingly.

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

Now its perfect, Ill merge the request.

Alas I get this error:
/dst/ : already mounted
I am afraid I had this before, see issue #79. Seems that ffmpegfs does not detect that it is running under Docker.

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

This one is fixed, the other problem see #79.

@nschlia nschlia closed this as completed Jan 4, 2022
@igor-epam
Copy link
Contributor Author

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

It looks like there is the reason of detection failure:
Exactly, thanks for pointing me at it.

@nschlia
Copy link
Owner

nschlia commented Jan 4, 2022

Thank you, cool. Please enable actions, so next time someone breaks docker image creation PR fails.

I'm not really a Docker crack, what would I have to do to "enable actions"?

nschlia added a commit that referenced this issue Jan 4, 2022
@igor-epam
Copy link
Contributor Author

Thank you, cool. Please enable actions, so next time someone breaks docker image creation PR fails.

I'm not really a Docker crack, what would I have to do to "enable actions"?

Everything works, docker build check is running. No action is needed.

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

No branches or pull requests

2 participants