• Salamander@mander.xyz
    link
    fedilink
    arrow-up
    5
    ·
    edit-2
    1 year ago

    Ha, that’s awesome indeed!

    (EDIT: Please don’t read this without reading the reply, as there is an important correction. I am not 100% sure that the docker container pulled through ghcr.io is guaranteed to be built from the source code that is publicly available)

    Since the github page doesn’t explain how the installation works for those who aren’t familiar with docker, I can add a quick explanation:

    If you are using Linux and you have already installed docker, all you need to do is to run the following command in the terminal (replacing lemmydomain.com with the instance you use):

    docker run -it -e LEMMY_DOMAIN='lemmydomain.com' -p "8080:8080" ghcr.io/rystaf/mlmym:latest

    This command will create the docker container directly by pulling the code from github, and it will host the application on your computer, accessible at port 8080. So, you would then open your browser and type “localhost:8080”, and it this will take you to your instance but with an interface that looks like the old reddit.

    • Masterofballs@exploding-heads.comOP
      link
      fedilink
      arrow-up
      3
      ·
      edit-2
      1 year ago

      Small correction. You aren’t actually running the latest from github. You are running the latest from his docker hub. What ever the latest image he built and uploaded to ghcr.io/rystaf/mlmym

      If you want to run this locally without docker you can do it by installing git and golang.

      git clone https://github.com/rystaf/mlmym.git;
      cd mlmym;
      go build;
      LEMMY_DOMAIN='lemmydomain.com' ./mlmym --addr  "0.0.0.0:8080"
      

      You should be able to build it with docker too if you didn’t want to install a go compiler.

      git clone https://github.com/rystaf/mlmym.git;
      cd mlmym;
      docker build -t mlmym . ;
      docker run -it -e LEMMY_DOMAIN='lemmydomain.com' -p "8080:8080" mlmym;
      
      

      You never really know what is running on someone’s docker repository to be honest. They could have compiled in a crypto miner into the executable for all we know. Even though they most likely did not.

      • Salamander@mander.xyz
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Ah, thank you! I’ve edited my comment to make sure that if someone else reads what I wrote, they see your reply too.

        I was trying to help others, but now I’m the confused one that needs help.

        I was looking at the site ghcr.io, and my impression is that this site is similar to dockerhub but run by github, and I (perhaps wrongly) assumed that it guarantees that the container is built from the source that is accessible through the github repository.

        This puts me in the uncomfortable situation that my comment could misguide someone when my intention is to help, but I hope that with the help of your comment and the edit it is enough to avoid that.

        • Masterofballs@exploding-heads.comOP
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          I was looking at the site ghcr.io, and my impression is that this site is similar to dockerhub but run by github, and I (perhaps wrongly) assumed that it guarantees that the container is built from the source that is accessible through the github repository.

          I’m actually not sure if github has a auto build system. It might somewhere. But he should be able to override it with a

          docker push ghcr.io/OWNER/IMAGE_NAME:VERSION
          

          Maybe there are some safeguards in github somewhere I don’t know about.

          • Salamander@mander.xyz
            link
            fedilink
            arrow-up
            2
            ·
            1 year ago

            Maybe there are some safeguards in github somewhere I don’t know about.

            I don’t know either, as I haven’t published my own docker containers via dockerhub nor this github site. So I’ve edited my comment even more to warn people of this potential risk. Thank you!

      • Salamander@mander.xyz
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 year ago

        Yeah, it is suckless dwm!

        I set it up maybe 2 or 3 years ago. Around that time I spent about a week playing with the configuration and applying patches, but today I don’t remember which patches I used, and I don’t know of an easy way to check. It is pretty minimal though - I think I have some patch to scroll through the terminal, something related to navigating through the windows, and other simple functional additions. Nothing fancy.

        • Owner_of_donky@donky.social
          link
          fedilink
          arrow-up
          1
          ·
          1 year ago

          I was trying to set it up few weeks ago. With my 0 coding experience it wasn’t an easy task. And a lot of the patches aren’t made for the latest version.