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

Issue with the containers when trying to build Linaro/ecosystemlandscape project #102

Open
laggarcia opened this issue Jun 20, 2024 · 0 comments

Comments

@laggarcia
Copy link

Following the instructions on the Linaro/ecosystemlandscape project, I run the build-site.sh script to build the static site. I get the following error.

laggarcia@fedora:~/src/git/ecosystemlandscape$ ./build-site.sh 
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Container built by GitHub. Build reference: db922be
Single-repo site - proceeding with normal processing.
Cannot find Gemfile in source directory

Looking at the command line that started the container inside the build-site.sh script, we have something like this:

laggarcia@fedora:~/src/git/ecosystemlandscape$ JEKYLL_ENV="production" docker run --cap-drop ALL --rm -t -i -e JEKYLL_ENV -v /etc/passwd:/etc/passwd:ro -v /etc/group:/etc/group:ro -u "1000":"1000" -v "/home/laggarcia/src/git/ecosystemlandscape":/srv/source linaroits/jekyllsitebuild:"latest" build-site.sh ""
Emulate Docker CLI using podman. Create /etc/containers/nodocker to quiet msg.
Container built by GitHub. Build reference: db922be
Single-repo site - proceeding with normal processing.
Cannot find Gemfile in source directory

The error message is complaining that it could not find the Gemfile in source directory. However, the volume mapping in the command line ("/home/laggarcia/src/git/ecosystemlandscape":/srv/source) is correct, at least from the point of view of the host environment, as /home/laggarcia/src/git/ecosystemlandscape is the source directory where the GemFile is present. I have very little experience with containers, so I wasn't able to verify the contents of the container image (even if I try to start the container with a /bin/bash process I get the same error, probably because some container initialization script is trying to read the Gemfile before the process from the command line is called inside the container).

Reading the documentation, I see that this project has been tested on many distros, but not Fedora. And Fedora is the distro I am using. Hence, I thought this would be selinux blocking the access to the Gemfile. I looked at the journal and the selinux log, but there are no error messages there when I start the container.

Any help on debugging this issue would be appreciated.

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

1 participant