• 0 Posts
  • 28 Comments
Joined 2 年前
cake
Cake day: 2024年3月27日

help-circle




  • Pretty sure you could run Pulp in pull-through mode and add your local Forgejo/whatever registry as a remote, which would at least give you a unified “pull” URL. Then just use Forgejo actions to handle the actual build/publish for your local images whenever you push to main (or tag a release, or whatever).

    Pulp might actually be able to handle both on its own, I haven’t ever tried though.










  • Oooh, ouch looks really neat! May actually cause me to retire my extract function. It suddenly feels a little incomplete by comparison, lol.

    # Extract any archive
    extract() {
            if [ -f "$1" ]; then
                    case $1 in
                    *.tar.bz2) tar xjf "$1" ;;
                    *.tar.gz) tar xzf "$1" ;;
                    *.bz2) bunzip2 "$1" ;;
                    *.rar) unrar x "$1" ;;
                    *.gz) gunzip "$1" ;;
                    *.tar) tar xf "$1" ;;
                    *.tbz2) tar xjf "$1" ;;
                    *.tgz) tar xzf "$1" ;;
                    *.zip) unzip "$1" ;;
                    *.Z) uncompress "$1" ;;
                    *.7z) 7z x "$1" ;;
                    *) echo "'$1' cannot be extracted via extract()" ;;
                    esac
            else
                    echo "'$1' is not a valid file"
            fi
    }
    






  • I agree. Years back, when I was getting my CDL in the construction industry, my trainer recommended I get some overalls for comfort. I was in fairly good shape at the time, but man - the relief I felt from not having a belt digging into my gut while behind the wheel made it a lot easier to hop out of the cab and throw chain at a good pace, and I never had to worry about anything coming untucked. Was certainly a game changer.