cosmos / gaia

Cosmos Hub
https://hub.cosmos.network
Apache License 2.0
465 stars 679 forks source link

Composable and reuseable Docker images #1619

Closed Anmol1696 closed 1 year ago

Anmol1696 commented 2 years ago

Summary

There are no docker image for gaia on docker hub. Based on different use cases that can be needed, I think we should be maintaining the docker image on cosmos taged with version as well various distros for various use cases.

Problem Definition

Currently the single Dockerfile in root directory is also built on no distro, which is fine if we are running gaia directly. Also there is no maintaines or persense of cosmos repo in Dockerhub, which should also be changed. Example:

Proposal

More often than not, sepecially for IBC, people create there own copies of docker images, with slight changes. It would be benificial to provide a couple of options for docker images to the users something like.

docker/
  Dockerfile.alpine     # various alpine images
  Dockerfile.golang    # various golang images with gaiad complied, for further development
  Dockerfile.nodistro  # used mostly for quickly running the gaiad
  Dockerfile.buster     # various buster images, used for building ontop, used as build image for other apps if needed
.github/workflows/
  docker.yaml             # builds and pushes dockerfiles to dockerhub

Since Gaia repo is looked upon by various other chains for building the apps, this kind of multiple docker images will give applications to choose from, also unifying the development environment, if we can use docker itself for development and more testing.

When trying to configure or use IBC, then most applications would not need to build there own docker images, can use the onces above, maintained from this repo.


For Admin Use

mmulji-ic commented 2 years ago

@Anmol1696 is this something that you can take over?

Anmol1696 commented 2 years ago

For sure, i intended to. I wanted to know if there are other opinions people have as well on this, and comeup with the best approach forward. Then I can take this up.

mmulji-ic commented 2 years ago

Hi @odeke-em do you input for the proposal above?

mpoke commented 1 year ago

@mmulji-ic Is there any update on this issue?

mpoke commented 1 year ago

Closing as a stale issue