Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Krakatoa/build: Generate new RSA keys for every container build #18

Merged
merged 1 commit into from
May 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Containerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ RUN apk update
RUN apk add abuild atools

RUN echo "@local /home/build/aports/packages" >> /etc/apk/repositories
COPY home/build/abuild/build.rsa.pub /etc/apk/keys
RUN adduser build build -D -s /bin/sh -h "/home/build"
RUN addgroup build abuild

Expand All @@ -21,6 +20,10 @@ RUN chown build:build -R /home/build
USER build
WORKDIR /home/build

# Generate an rsa keypair for local repository
# See https://wiki.alpinelinux.org/wiki/Include:Abuild-keygen
RUN echo /home/build/abuild/build.rsa | abuild-keygen -ai

ENV PACKAGE_DIR=/home/build/packages

RUN APKBUILD="$PACKAGE_DIR/jemalloc/APKBUILD" abuild -r
Expand Down
1 change: 1 addition & 0 deletions home/build/abuild/abuild.conf
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
PACKAGER="wtfbbqhax/Krakatoa"
PACKAGER_PRIVKEY="/home/build/abuild/build.rsa"
REPODEST="/home/build/aports"

Expand Down
27 changes: 0 additions & 27 deletions home/build/abuild/build.rsa

This file was deleted.

9 changes: 0 additions & 9 deletions home/build/abuild/build.rsa.pub

This file was deleted.

Loading