initial commit

This commit is contained in:
Sebastian Hugentobler 2025-03-06 13:11:50 +01:00
commit 873beda3e8
3 changed files with 40 additions and 0 deletions

3
.gitignore vendored Normal file
View File

@ -0,0 +1,3 @@
*~
.DS_Store
*.swp

26
Containerfile Normal file
View File

@ -0,0 +1,26 @@
FROM docker.io/alpine:3.21 AS builder
ENV VERSION=2.492.2
ENV SHA256_SUM=ae60fbd5f07ca4cd423a4737ed71f3b54ecf14666bb98a0cbff6a773540c2275
RUN wget -O jenkins.war https://get.jenkins.io/war-stable/$VERSION/jenkins.war
RUN echo "$SHA256_SUM jenkins.war" | sha256sum -c - || exit 1
FROM docker.io/alpine:3.21
RUN adduser -h /app -D -u 2222 jenkins
RUN apk --no-cache add \
openjdk21 \
fontconfig \
font-dejavu
COPY --from=builder /jenkins.war /app/jenkins.war
USER jenkins
RUN mkdir /app/config
ENV JENKINS_HOME=/app/config
ENTRYPOINT ["java", "-jar", "/app/jenkins.war", "--httpPort=8080"]
EXPOSE 8080
VOLUME ["/app/config"]

11
README.md Normal file
View File

@ -0,0 +1,11 @@
[Jenkins](https://www.jenkins.io/) controller.
After the first start, find the generated admin password in the log.
# Volumes
- `/app/config/`
# Ports
- 8080