-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (30 loc) · 1021 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
#
## Build the baseimage that is used to build the packages
baseimage:
docker build --pull --tag ghcr.io/atlascloud/aports-builder:edge .
docker push ghcr.io/atlascloud/aports-builder:edge
## Build the actual packages
build:
# docker pull atlascloud/ceph-builder
docker run --rm \
--privileged \
-e PACKAGER -e PACKAGER_PRIVKEY -e SIGNING_KEY \
-e JOBS=5 -e RELEASE -e APORTS_DIR -e REPODEST \
-v $(PWD):/home/build \
-v $(PWD)/apkcache:/etc/apk/cache \
-v $(PWD)/distfiles:/var/cache/distfiles \
--name ceph-builder \
ghcr.io/atlascloud/aports-builder:edge
# /bin/sh -c "pwd ; sudo chown -R build:build /var/cache/distfiles /home/build/.ccache ; echo abuild -r ; sh"
## this is for local dev
build_shell:
chown -R 1000:1000 distfiles
docker run -it --rm \
--privileged \
-v $(PWD):/home/build \
-v $(PWD)/apkcache:/etc/apk/cache \
-v $(PWD)/distfiles:/var/cache/distfiles \
--name ceph-builder \
--entrypoint /bin/sh \
--env-file .env \
ghcr.io/atlascloud/aports-builder:edge