Sign inSign up

pcmagas/alpinebuild

By pcmagas

Updated about 1 year ago

Image using for generating apk images.

Image
Developer tools
0

1.1K

pcmagas/alpinebuild repository overview

Alpine Apk package generating docker image

Basic Usage

Step 1: Create a directory where source code and APKBUILD file is located upon

mkdir ./source_folder
# Create APKBUILD
touch ./source_folder/APKBUILD

Then optionally, if building from local source code, create a tarball containing the source code. The generated tarball should be in ./source_folder as well.

Step 2: Create a release folder where built apks located upon

mkdir ./release

Step 3: Create a volue where keys and abuild confiuf is located upon

mkdit ./volume_dir

Step 4: Run the container

docker run \
    -v source_folder:/usr/src/apkbuild  \
    -v ./volume_dir/.abuild:/home/packager/.abuild \
    -v ./volume_dir/keys:/etc/apk/keys \
    -v ./release:/home/packager/release \
    pcmagas/alpinebuild

Manual building:

bash .github/build_docker.sh

Volumes and its usage

DirectoryReason
/home/packager/.abuildAbuild config anf private signing key storage
/etc/apk/keys/Signing Public key storage
/usr/src/apkbuildLocation where source code .tar.gz file and APKBUILD files are located
/home/packager/releaseThe location where built apk files are placed upon

Key Generation

By default pcmagas/alpinebuild generates its own keys used for signing the built apk. The public singing key is stored upon /etc/apk/keys/ whneread the private key is stored upon /home/packager/.abuild.

Tag summary

Content type

Image

Digest

sha256:1625a1a25

Size

167.3 MB

Last updated

about 1 year ago

docker pull pcmagas/alpinebuild