Compare commits

..

6 commits

Author SHA1 Message Date
b0e961645b
add key init 2024-11-25 16:59:51 -06:00
9dc8ee0a70
add back summary 2024-11-25 16:57:08 -06:00
8e7c7d9d42
alphabetize 2024-11-25 16:56:55 -06:00
670583859a
add default task 2024-10-22 13:25:53 -05:00
3b0292862d
add more extra packages 2024-10-22 12:32:47 -05:00
8db8053d23
make -> swydd 2024-10-22 12:30:44 -05:00
4 changed files with 32 additions and 14 deletions

View file

@ -4,8 +4,12 @@ LABEL com.github.containers.toolbox="true" \
name="daylinbox" \ name="daylinbox" \
version="base-devel" \ version="base-devel" \
usage="This image is meant to be used by daylin" \ usage="This image is meant to be used by daylin" \
maintainer="Daylin Morgan <me@dayl.in>" maintainer="Daylin Morgan <me@dayl.in>" \
# summary="Base image for creating Arch Linux Toolbx containers" \ summary="Daylin's distrobox Conatiner"
# unclear if this is needed
RUN pacman-key --init
# Install extra packages # Install extra packages
COPY extra-packages my-extra-packages / COPY extra-packages my-extra-packages /
RUN pacman -Syu --needed --noconfirm - < extra-packages RUN pacman -Syu --needed --noconfirm - < extra-packages
@ -30,6 +34,5 @@ RUN wget -qcO /usr/bin/pixi \
# Clean up cache # Clean up cache
RUN yes | pacman -Scc RUN yes | pacman -Scc
# Enable sudo permission for wheel users # Enable sudo permission for wheel users
RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/toolbox RUN echo "%wheel ALL=(ALL) NOPASSWD: ALL" > /etc/sudoers.d/toolbox

View file

@ -1,5 +0,0 @@
build: ## build the image!
podman build . -t daylinbox
-include .task.mk
$(if $(filter help,$(MAKECMDGOALS)),$(if $(wildcard .task.mk),,.task.mk: ; curl -fsSL https://raw.githubusercontent.com/daylinmorgan/task.mk/v2024.1001/task.mk -o .task.mk))

View file

@ -1,9 +1,11 @@
python bat
neovim cmake
eza
fd fd
fzf
git-delta
lazygit
neovim
python
ripgrep ripgrep
zoxide zoxide
fzf
eza
lazygit
git-delta

18
tasks.py Executable file
View file

@ -0,0 +1,18 @@
#!/usr/bin/env python3
if not (
(_i := __import__)("importlib.util").util.find_spec("swydd")
or (_src := _i("pathlib").Path(__file__).parent / "swydd/__init__.py").is_file()
): # noqa | https://github.com/daylinmorgan/swydd?tab=readme-ov-file#automagic-snippet
_r = _i("urllib.request").request.urlopen("https://swydd.dayl.in/swydd.py")
_src.parent.mkdir(exist_ok=True)
_src.write_text(_r.read().decode())
from swydd import task, sub, cli, ctx
@task
def build():
"""build the image (forwards positioanl args)"""
sub("podman build . -t daylinbox " + " ".join(ctx.rest))
cli("build")