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

Building with submodule #6663

Open
thmo opened this issue Sep 14, 2024 · 4 comments
Open

Building with submodule #6663

thmo opened this issue Sep 14, 2024 · 4 comments

Comments

@thmo
Copy link

thmo commented Sep 14, 2024

etherpad-lite/Dockerfile

Lines 116 to 117 in 08f1991

COPY --chown=etherpad:etherpad ./.git/HEA[D] ./.git/HEAD
COPY --chown=etherpad:etherpad ./.git/ref[s] ./.git/refs

We are using etherpad-lite as a submodule, to build it in our CI with a given list of plugins.
Being checked out as a submodule, there is no .git directory in the etherpad-lite directory, so these two lines will fail.

IIUC, this is used to allow running git inside the image to find out the version of etherpad - would it be possible to pass to skip this and e.g., set the version statically?

@thmo
Copy link
Author

thmo commented Sep 14, 2024

Hm, #6495 should have fixed this, but it doesn't seem to work for buildah build-using-dockerfile. Any idea?

@SamTV12345
Copy link
Member

Sorry no idea. I don't use buildah just docker itself.

@thmo
Copy link
Author

thmo commented Sep 19, 2024

See containers/buildah#5742.

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

3 participants
@thmo @SamTV12345 and others