Giter Club home page Giter Club logo

Comments (13)

jesseduffield avatar jesseduffield commented on April 28, 2024 1

@qdm12 not sure if you saw my comment in your PR but we can use the dockerhub username of 'lazyteam' and the repo of 'lazydocker'.

What are your thoughts on us using goreleaser to handle building and pushing the image? We currently use it for building the binaries, homebrew, and snapcraft. And it has support for docker as well: https://goreleaser.com/docker/

from lazydocker.

glvr182 avatar glvr182 commented on April 28, 2024

You can setup Autobuild on dockerhub aswell. See this

from lazydocker.

dawidd6 avatar dawidd6 commented on April 28, 2024

Yes, can confirm that @glvr182 . It's really straightforward. Just Github login is required.
https://hub.docker.com

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024

Hey @jesseduffield what's your Docker Hub username? For readme badges purposes

You can setup autobuilds here and then you can get a webhook link for nice badges of the Docker image size and version at https://microbadger.com/images/jesseduffield/lazydocker

I already added a build hook for Docker Hub's automated build as well as a few Docker Hub markdown badges on the reworking-dockerfile branch.

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024

You may want to use Circle CI to build the Docker image and push it to Docker Hub as well. This is great as everything takes place in the same place and it will fail if there is an integration bug.

However, I think that an automated build with Docker Hub is more trustworthy as it's hard for the user to find the origin of the Docker push (which should be Circle CI) to Docker Hub (a.k.a. malicious Docker images not corresponding to Github's repository source code)

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024

As you wish, the only thing is that any other party than Docker Hub would have to docker push from outside so it's not great security wise for careful users (although probably not many!).

For example, Linuxserver push all their images from their CI but I'm not sure the user can actually verify this. So it could be a malicious/corrupted image they pushed manually from their desktop for example.

On my side, I always have automated Docker Hub builds linked to Github for x86_64. I however push ARM images from an ARM device I have as there is no CI/Docker Hub solution to build efficiently for ARM devices...

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

from your experience is it simple enough to hook everything up with the docker hub approach @qdm12 ?

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024

Yes, it's 15 key strokes and 5 mouse clicks, here 😸
Plus you can add a bit of CI-like features to the Docker Hub build using files in the hooks directory if you want to.

But you should have both a CI and Docker Hub, which builds all Docker images only.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

How does this look to you?
image
Also I'm guessing we wouldn't want to actually set this up until your PR is merged, correct?

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024
  • You could add a latest docker tag build from the master branch of the latest Github tag. By default Docker will pull the latest tag if not tag is specified, i.e. docker run -it lazyteam/lazydocker so it's a good idea to have a latest tag 👍
  • I was not aware of that new AUTOTEST feature that could be of interest!

You can set this up now by just clicking Save and it will get triggered on the next push or maybe next tag creation.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

done :)
image

from lazydocker.

qdm12 avatar qdm12 commented on April 28, 2024

Cool! It will pickup the new Dockerfile and build hooks when we merge the docker PR.

I guess we can close the issue now.

from lazydocker.

jesseduffield avatar jesseduffield commented on April 28, 2024

sounds good

from lazydocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.