Commit b23aad4d authored by Kevin Daudt's avatar Kevin Daudt 💻
Browse files

initial commit

parents
Pipeline #4359 passed with stages
in 9 minutes and 53 seconds
include:
- project: 'alpine/infra/gitlab-ci-templates'
ref: master
file: '/docker-image.yml'
ARG VERSION=edge
ARG ARCH=
FROM ${ARCH}alpine:$VERSION
ARG VERSION
COPY overlay/ /
RUN setup.sh $VERSION
USER buildozer
# Build base
This is a docker image that can be used to build Alpine Linux packages with
abuild. Currently, only an image based on `edge` is provided. To build packages
for another version, you could change the version in `/etc/apk/repositories` and
run `apk upgrade -U --available`.
## Preparation
Before you can build packages, you need to generate a signing key. This can be
done by running:
```sh
abuild-keygen -ai
```
Also make sure that the correct repositories are enabled in
`/etc/apk/repositories.`
## Images
* `alpinelinux/build-base:latest`
# buildozer abuild settings
PACKAGER="buildozer <alpine-infra@lists.alpinelinux.org>"
REPODEST="$HOME/packages"
USE_COLORS=force
[user]
email = alpine-infra@lists.alpinelinux.org
name = buildozer
%wheel ALL=(ALL) NOPASSWD: ALL
#!/bin/sh
set -eu
release=${1:-edge}
echo "http://dl-cdn.alpinelinux.org/alpine/$release/main" > /etc/apk/repositories
apk -U upgrade -a
apk add alpine-sdk lua-aports pigz
rm -rf /var/cache/apk/*
# use buildozer for building
adduser -D buildozer
adduser buildozer abuild
adduser buildozer wheel
# default distfiles location
install -d -g abuild -m 775 /var/cache/distfiles
# fix permissions due to umask 0000
chmod 750 /etc/sudoers.d
chmod 640 /etc/sudoers.d/*
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment