Skip to content

Commit

Permalink
Add container build option
Browse files Browse the repository at this point in the history
  • Loading branch information
lhh committed Jan 25, 2024
1 parent 9860322 commit 1eb37b3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions Containerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
FROM fedora:latest

COPY . jirate
RUN cd jirate && dnf -y install python3-pip nano && pip install --user -r requirements.txt .

# TODO: Switch to venv

ENTRYPOINT ["/root/.local/bin/jirate"]
8 changes: 8 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
all: container-build jirate-c

container-build:
podman build . -t jirate

jirate-c: jirate-c.in
cat $^ > $@
chmod +x $@
3 changes: 3 additions & 0 deletions jirate-c.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash
podman images | grep -q '^localhost/jirate' || exit 1
podman run -it --rm --mount type=bind,src=$HOME/.jirate.json,dst=/root/.jirate.json,ro,relabel=shared jirate $*

0 comments on commit 1eb37b3

Please sign in to comment.