UnRAIDES / unRAID-NerdTools

Install extra packages for advanced users.
GNU General Public License v3.0
27 stars 18 forks source link

Request: Lazydocker #34

Open CryoRig opened 1 year ago

CryoRig commented 1 year ago

Name: Lazydocker Source: https://github.com/jesseduffield/lazydocker Current Version 0.20.0 Description: A simple terminal UI for both docker and docker-compose, written in Go

Could someone add this? I have never built a slack package before, if someone can direct me in the right direction i will try to do it myself and make a PR. Shouldn't be too hard as lazydocker is a single binary golang application...

Lanjelin commented 1 year ago

I've never built a package either, but as you said, it's a single package. Did some googling, and found a quick and dirty way. It's missing slack-desc, but it works without.

# Get the latest release
wget https://github.com/jesseduffield/lazydocker/releases/download/v0.20.0/lazydocker_0.20.0_Linux_x86_64.tar.gz
# Extract
tar -xvf lazydocker_0.20.0_Linux_x86_64.tar.gz
# Make the build folders and move the binary
mkdir -p package/usr/bin
mv lazydocker package/usr/bin
# Set owner and permissions
cd package && chown -R 0:0 . && chmod -R 755 .
# Build
makepkg -l y -c n ../lazydocker_0.20.0_Linux_x86_64.txz
# Install it
installpkg ../lazydocker_0.20.0_Linux_x86_64.txz

You should now be able to type lazydocker anywhere in your terminal to run it.
If so, do cp ../lazydocker_0.20.0_Linux_x86_64.txz /root/extra to make it install on boot.

If you want to add slack-desc, make a folder named install inside package, and place it there. The contents could be something like

# HOW TO EDIT THIS FILE:
# The "handy ruler" below makes it easier to edit a package description.
# Line up the first '|' above the ':' following the base package name, and
# the '|' on the right side marks the last column you can put a character in.
# You must make exactly 11 lines for the formatting to be correct. It's also
# customary to leave one space after the ':' except on otherwise blank lines.

          |-----handy-ruler------------------------------------------------------|
lazydocker: A simple terminal UI for both docker and docker-compose, 
lazydocker: written in Go with the gocui library.
lazydocker:
lazydocker: Memorising docker commands is hard. 
lazydocker: Memorising aliases is slightly less hard. 
lazydocker: Keeping track of your containers across multiple
lazydocker: terminal windows is near impossible.
lazydocker: What if you had all the information you needed in one terminal
lazydocker: window with every common command living one keypress away 
lazydocker: (and the ability to add custom commands as well).
lazydocker: Lazydocker's goal is to make that dream a reality.