initial commit

This commit is contained in:
2024-01-31 10:18:32 -08:00
commit 0d8370dde4
4 changed files with 34 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
~*

18
Dockerfile Normal file
View File

@@ -0,0 +1,18 @@
#FROM debian:bookworm-slim
#RUN echo "deb http://http.us.debian.org/debian bookworm main contrib non-free" >/etc/apt/sources.list && apt update && apt -y dist-upgrade && apt -y install joe trn && apt clean && useradd -mc "Scott Alfter" scott && ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
#ENTRYPOINT /usr/bin/trn
FROM gentoo/stage3:i686-openrc
RUN emaint sync -r gentoo >/dev/null && \
FEATURES="parallel-fetch" EMERGE_DEFAULT_OPTS="--autounmask-write --quiet-build=y" emerge eselect-repository dev-vcs/git joe && \
eselect repository enable salfter && \
emaint sync -r salfter && \
emerge trn && \
emerge -C git && \
emerge --depclean && \
eselect repository disable salfter && \
rm -r /var/db/repos/gentoo/* /var/db/repos/salfter/* && \
useradd -mc "Scott Alfter" scott && \
ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime
WORKDIR /home/scott
ENTRYPOINT ["/usr/bin/trn"]

9
README.md Normal file
View File

@@ -0,0 +1,9 @@
containerized trn
=================
This builds trn (from https://github.com/arnoldrobbins/trn) under 32-bit
Gentoo Linux in a container. Build it:
```docker build -t salfter/trn .```
start.sh is a convenience script that can be copied to /usr/local/bin/trn.

6
start.sh Executable file
View File

@@ -0,0 +1,6 @@
#!/usr/bin/env bash
docker run -it --rm --name trn -u 1000 -v ~:/home/salfter \
-e EDITOR="/usr/bin/joe" \
-e ORGANIZATION="USS Voyager NCC-74656, Delta Quadrant" \
-v ~:/home/scott \
salfter/trn $*