https://github.com/dnephin/docker-apk-build
An alpine linux environment for building apk packages using docker
https://github.com/dnephin/docker-apk-build
Last synced: about 2 months ago
JSON representation
An alpine linux environment for building apk packages using docker
- Host: GitHub
- URL: https://github.com/dnephin/docker-apk-build
- Owner: dnephin
- Created: 2015-08-03T19:12:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2022-02-15T17:25:13.000Z (about 3 years ago)
- Last Synced: 2025-01-26T00:14:40.337Z (3 months ago)
- Language: Makefile
- Homepage:
- Size: 4.88 KB
- Stars: 64
- Watchers: 3
- Forks: 29
- Open Issues: 1
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
Docker APK Build Environment
============================An alpine linux environment for building apk packages using docker.
See http://wiki.alpinelinux.org/wiki/Creating_an_Alpine_package for additional
documentation and
https://engineering.fundingcircle.com/blog/2015/04/28/create-alpine-linux-repository/
for some background about testing and signing packages... contents::
:backlinks: noneSetup
-----To sign packages you'll need a key pair. To generate a pair of keys for this
purpose run:.. code:: sh
# builds an image and starts a container
make build
# generate keys
~/bin/setup.shBuilding a Package
------------------Run ``make build`` to start the docker environment. In the build environment
cd to the package directory which contains an ``APKBUILD`` file and run
the build... code:: sh
cd /work//
# Condtionally rebuild checksums if files has changed
abuild checksum
# Run the build
abuild -c -r -P /targetThe built packages will be in ``./target`` on the host.
Indexing and Signing
--------------------.. code:: sh
cd /target///
apk index -o APKINDEX.tar.gz *.apk
abuild-sign APKINDEX.tar.gzTesting the Package
-------------------.. code:: sh
make test
apk add @custom