thiagohdeplima
Self hosted hex repo
My team is building various micro-services using elixir.
Some of needs of systems is shared (for example: authentication).
To not duplicate code in each system, we create a some libraries implementing shared code between systems. This libraries contains business rules, therefore, not be open-sourced.
I would like create a private repository in our infrastructure, but, I dont find a documentation wich describe the process of it to me.
Analising the mix deps.get behavior, I see it gets packages from repo.hex.pm, which in turn is a S3 bucket, therefore, I conclude that it is not very hard.
Can someone help-me to found the documentation about it?
Most Liked
aseigo
There is good documentation at https://hex.pm itself. You can host your own internal installation of hexpm (it’s a Phoenix app, yay!
) and then you can use the :repo option in the relevant depencies in the mix.exs file as noted in the docs here.
zazaian
Apparently I’m still locked on this topic - @wojtekmach introduced MiniRepo roughly three months ago which looks like a good way to get a quick, private hex server up and running if cloning and deploying all of hex.pm proves to be overkill.
That said, I’ve found @ericmj and the hex.pm team to be extremely helpful and supportive. Seems like any of the above options will work well. Really just depends on personal preferences.
josevalim
Git works if you have one or two packages but at the moment you have multiple packages and they depend each other, Hex private is probably the best option since we can’t perform dependency resolution on top of Git.







