Skip to content

Provide releases and deb/rpm packages via Bintray #31

Closed
@tboerger

Description

@tboerger

I would like to integrate a proper process to create real system packages and distribute them via Bintray, than users can just add a deb/rpm repository and got a clean upgrade path.

Beside that we can also publish our releases to a static page or also to Bintray for download.

Activity

added this to the 1.0.0 milestone on Nov 3, 2016
metalmatze

metalmatze commented on Nov 3, 2016

@metalmatze
Contributor

Do we really need deb/rpm? Aren't just docker images enough? Idk, prove me wrong! :)

metalmatze

metalmatze commented on Nov 3, 2016

@metalmatze
Contributor

drone only has docker images, right?

jhasse

jhasse commented on Nov 3, 2016

@jhasse

Gogs is using packager.io, why not reuse that?

tboerger

tboerger commented on Nov 3, 2016

@tboerger
MemberAuthor

Because not everybody is/will use docker.

Packager.io only supports lts versions, beside that the golang packaging can be done much easier than with the overhead of Packager.io.

jhasse

jhasse commented on Nov 3, 2016

@jhasse

Okay I don't know enough about Go. But having a solution for Ubuntu 16.04 would be great, as gogs/gogs#3617 didn't get merged :(

tboerger

tboerger commented on Nov 3, 2016

@tboerger
MemberAuthor

To provide packages for any ubuntu/debian/whatever version we can wrap the same binary into the package and just need to adjust the init (sysvinit, systemd) script.

jhasse

jhasse commented on Nov 3, 2016

@jhasse

Can we merge the 16.04 packager.io PR and enable gitea on it for the time being though?

lunny

lunny commented on Nov 3, 2016

@lunny
Member

Both binary and docker are needed.

tboerger

tboerger commented on Nov 3, 2016

@tboerger
MemberAuthor

Can we merge the 16.04 packager.io PR and enable gitea on it for the time being though?

We don't have enabled anything over there yet, but since this issue is estimated for 1.0.0 I would like to introduce it for our first release.

sbrl

sbrl commented on Nov 17, 2016

@sbrl

I also would like binary releases - I don't have a go development environment setup to compile things.

Also, will I be able to upgrade to gitea from gogs? I'd hate to loose my issues etc.

tboerger

tboerger commented on Nov 17, 2016

@tboerger
MemberAuthor

We will have binary releases and hopefully also packages for the major Linux distributions. You don't need to compile anything.

We will also have binaries for the latest master version.

You will be able to directly launch gitea with the Gogs database. If we got database changes they are getting automatically migrated.

sbrl

sbrl commented on Nov 17, 2016

@sbrl

Ooh sounds awesome! I'm looking forward to it then ☺

-- Starbeamrainbowlabs (keybase.io/sbrl)

114 remaining items

zeripath

zeripath commented on Jan 22, 2020

@zeripath
Contributor

@evitalis you don't need a script if you build it with the appropriate LDFLAGS.

ghost
sapk

sapk commented on Jan 23, 2020

@sapk
Member

Just thinking of it. FHS path should be default for v2 as it would be a needed breaking change.

zeripath

zeripath commented on Jan 23, 2020

@zeripath
Contributor

I think we need to break that down a bit. There are four kinds of build at present:

  • development builds - you download the source and you build with make
  • personal builds - you download the source and you build with make but want this a running server
  • release builds - we build with make release and stick on gitea.io and GH
  • docker builds

FHS by default makes sense for up to 2 of those: release and possibly personal - but at present you can't tell if a personal build is a development build or vice versa. Breaking the development builds would be a very very bad idea.

The Docker should also have its defaults embedded - it's nonsensical to have to require "-c" by default on a docker build we build ourselves.

There's a possibility of changing where we look by default depending on where the binary is placed - but I suspect that might be a bad idea. I guess I'd have to check again what is normal practice for this. (hierarchies of config lookups? - ugh complex)

When I first made the LDFLAGS option work I proposed:

  • Make a separate release with FHS paths embedded
  • Make the docker have the default paths for docker embedded - which solves a few other weird issues with running gitea on the docker command line.
  • Add/Expose a make endpoint for FHS builds that sets the flags properly <- Package builders should use this...

These are non-breaking changes that would not necessarily require waiting for 2.0 - we're just adding a new download option.

An alternative is to add a configure script and make install endpoints - as then it would look "normal" to people used to:

# get source by whatever means necessary
cd gitea
./configure
make
sudo make install
tboerger

tboerger commented on Jan 23, 2020

@tboerger
MemberAuthor

It's absolutely normal to search within predefined paths for configs if you do not provide a flag for a custom path. That's as an example already part of https://github.com/spf13/viper to define multiple standard paths. The current fuckedup behavior of Gitea is totally uncommon.

sbrl

sbrl commented on Jan 24, 2020

@sbrl

Perhaps it would be worth putting the release builds into the repos first would be a good 1st step?

azlux

azlux commented on Feb 7, 2020

@azlux

@sbrl already done on my repo , the build script is store here : https://github.com/azlux/dpkg-deb
As you said, It use directly the release build.

ghost
tboerger

tboerger commented on Dec 19, 2020

@tboerger
MemberAuthor

I'm not really involved into Gitea anymore, so I'm closing this issue. If there ist still interest please open a new issue and maybe link to this one for initial discussion. I want to get my issues cleaned up.

removed this from the 1.x.x milestone on Dec 19, 2020
fazlerabbi37

fazlerabbi37 commented on Dec 20, 2020

@fazlerabbi37

f there ist still interest please open a new issue
@tboerger rather than opening a new issue and starting over again maybe you can just unsubscribe from the issue, and it can be re-opened for people who are interested?

tboerger

tboerger commented on Dec 20, 2020

@tboerger
MemberAuthor

Just reference this issue on the new one to keep the context. Unsubscribe is not the same as having it in my open issues view on github. And as I can't transfer issues to somebody else it's closed. Beside that, nothing has changed for years...

locked as too heated and limited conversation to collaborators on Dec 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    issue/confirmedIssue has been reviewed and confirmed to be present or accepted to be implementedtopic/buildPR changes how Gitea is built, i.e. regarding Docker or the Makefiletopic/deployment

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mjturner@ptman@jhasse@lunny@tboerger

        Issue actions

          Provide releases and deb/rpm packages via Bintray · Issue #31 · go-gitea/gitea