initial commit

This commit is contained in:
2026-09-23 11:57:22 +01:00
commit 2ef1648142
2 changed files with 44 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
FROM rockylinux:9
RUN dnf install -y git vim && dnf clean all
WORKDIR /opt/scripts
CMD ["bash"]
+38
View File
@@ -0,0 +1,38 @@
container := "scripts-shell"
image := "scripts-shell"
# Build the container image from Containerfile
build:
podman build -t {{image}} .
# Start existing container or create if it doesn't exist
up:
podman start {{container}} || just create
# Create a new detached container
create:
podman run -dit \
--name {{container}} \
-v $HOME/repos/shell:/opt/scripts:z \
{{image}}
# Open interactive shell in running container
shell:
@podman start {{container}} >/dev/null 2>&1 || true
podman exec -it {{container}} bash
# Stop container immediately (SIGKILL, no wait)
down:
podman stop -t 0 {{container}}
# Force-remove container from system
rm:
podman rm -f {{container}}
# Restart container
restart:
podman restart {{container}}
# Show container status (running or stopped)
status:
podman ps -a --filter name={{container}}