33 lines
725 B
YAML
33 lines
725 B
YAML
image: alpine/edge
|
|
|
|
secrets:
|
|
- c9f8b351-ad8d-49e2-a076-9f9e0cd2d285
|
|
|
|
sources:
|
|
- https://git.sr.ht/~jswank/alpine-cli
|
|
|
|
packages:
|
|
- podman
|
|
- just
|
|
- runit
|
|
|
|
tasks:
|
|
- prep: |
|
|
sudo rc-service cgroups start
|
|
# sudo modprobe tun
|
|
# echo tun >>/etc/modules
|
|
sudo sh -c 'echo build:100000:65536 >/etc/subuid'
|
|
sudo sh -c 'echo build:100000:65536 >/etc/subgid'
|
|
|
|
# build the image using the just recipe
|
|
- build: |
|
|
cd alpine-cli
|
|
just build
|
|
|
|
# set environment variables from the ~/.envdir directory
|
|
# see http://smarden.org/runit/chpst.8.html for details on chpst
|
|
# publish the image using the just recipe
|
|
- publish: |
|
|
cd alpine-cli
|
|
chpst -e ~/.envdir just publish
|