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

[Discussion] Gnupg to docker image to allow blocking unsigned commits on pre-receive-hook #4344

Closed
sphrak opened this issue Jun 30, 2018 · 4 comments

Comments

@sphrak
Copy link
Contributor

sphrak commented Jun 30, 2018

Hello everyone,
Was about to add this pre-receive hook to my repository in gitea in order to block non-signed commits. However it failed and I found out the gnupg package wasnt included in the docker build.

Now this does not come without a cost of course to install the gnupg package costs us 54MB which is quite a lot considering the whole gitea image weighs in at just shy of ~75MB.

So I mainly started this issue to discuss if it would be:

  • Possible to have gnupg package added to Dockerfile?
  • If not are there other creative solutions/alternative libraries to circumvent this "limitation"?

.. Or should I simply just manually install it and call it a day?

Kindly,
sphrak

@lafriks
Copy link
Member

lafriks commented Jun 30, 2018

You can just create new dockerfile based in gitea and just add gnupg package

@sphrak
Copy link
Contributor Author

sphrak commented Jun 30, 2018

Yes thats one option.

@jonasfranz
Copy link
Member

FROM gitea/gitea:1.4
RUN apk --no-cache add gnupg

@techknowlogick
Copy link
Member

Closing this as hopefully we will have this feature baked into Gitea. See #4249 As a workaround @JonasFranzDEV option will likely work for you.

@go-gitea go-gitea locked and limited conversation to collaborators Nov 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants