add deployment script
This commit is contained in:
		
							
								
								
									
										22
									
								
								Dockerfile
									
									
									
									
									
								
							
							
						
						
									
										22
									
								
								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"] | ||||
|  | ||||
|   | ||||
							
								
								
									
										4
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										4
									
								
								build.sh
									
									
									
									
									
										Executable file
									
								
							| @@ -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 | ||||
		Reference in New Issue
	
	Block a user