Compare commits
6 commits
ae1dcd14e1
...
b0e961645b
Author | SHA1 | Date | |
---|---|---|---|
b0e961645b | |||
9dc8ee0a70 | |||
8e7c7d9d42 | |||
670583859a | |||
3b0292862d | |||
8db8053d23 |
4 changed files with 32 additions and 14 deletions
|
@ -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
|
||||||
|
|
5
Makefile
5
Makefile
|
@ -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))
|
|
|
@ -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
18
tasks.py
Executable 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")
|
Loading…
Reference in a new issue