Baseline Container.

This commit is contained in:
Pat Garrity 2024-03-16 21:36:48 -05:00
parent a0def97fe9
commit 5de71ace42
Signed by: pfm
GPG key ID: 5CA5D21BAB7F3A76
2 changed files with 9 additions and 1 deletions

View file

@ -1,6 +1,9 @@
FROM docker.io/library/eclipse-temurin:21-jdk-alpine
RUN apk add curl bash git docker python3 py3-pip
# git is required for checkout
# python3 is required for pre-commit
# node is required for Forgejo checkout
RUN apk add curl bash git docker python3 py3-pip nodejs npm
RUN pip3 install pre-commit --break-system-packages
# Create the user - builds do not run as root.
@ -18,3 +21,4 @@ RUN rm ./coursier
RUN mkdir -p /home/builder/.local/bin
ENV PATH="${PATH}:/home/builder/.local/share/coursier/bin"
ENV PATH="${PATH}:/home/builder/.local/bin"
RUN git config --global init.defaultBranch main

4
build-and-push Executable file
View file

@ -0,0 +1,4 @@
#!/bin/sh
podman build --tag registry.garrity.co:8443/gs/ci-scala:latest .
podman push registry.garrity.co:8443/gs/ci-scala:latest