diff --git a/Dockerfile b/Dockerfile index 81b280d..a3112a7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,8 +1,4 @@ -#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 +FROM gentoo/stage3:i686-openrc as tmp 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 && \ @@ -14,5 +10,21 @@ RUN emaint sync -r gentoo >/dev/null && \ rm -r /var/db/repos/gentoo/* /var/db/repos/salfter/* && \ useradd -mc "Scott Alfter" scott && \ ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime + +#FROM gentoo/stage3:i686-openrc AS tmp +#RUN emaint sync -r gentoo >/dev/null && \ +# FEATURES="parallel-fetch" EMERGE_DEFAULT_OPTS="--autounmask-write --quiet-build=y" emerge eselect-repository dev-vcs/git && \ +# eselect repository enable salfter && \ +# emaint sync -r salfter && \ +# emerge trn + +#FROM i386/alpine +#COPY --from=tmp /usr/bin/*rn /usr/bin/ +#COPY --from=tmp /usr/lib/trn /usr/lib/ +#RUN adduser -Dg "Scott Alfter" scott && \ +# ln -sf /usr/share/zoneinfo/US/Pacific /etc/localtime && \ +# apk add --no-cache joe + WORKDIR /home/scott ENTRYPOINT ["/usr/bin/trn"] + diff --git a/build.sh b/build.sh new file mode 100755 index 0000000..a5ef480 --- /dev/null +++ b/build.sh @@ -0,0 +1,4 @@ +#!/usr/bin/env bash +TAG=cr.gitlab.alfter.us:443/salfter/docker-trn:latest +docker build -t $TAG . +docker push $TAG diff --git a/start.sh b/start.sh index a4d5d38..afbb707 100755 --- a/start.sh +++ b/start.sh @@ -3,4 +3,4 @@ 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 $* + cr.gitlab.alfter.us:443/salfter/docker-trn $*