/
docker-compose.yml
60 lines (58 loc) · 2.59 KB
/
docker-compose.yml
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
# Ma_Sys.ma CI 2.0.0, Copyright (c) 2019, 2020, 2022, 2023 Ma_Sys.ma.
# For further info send an e-mail to Ma_Sys.ma@web.de.
#
# This file defines a suggested set of containers to use for building packages
# for multiple CPU architectures in addition to running a "main" CI instance.
# To upgrade (adjust mirror accordingly):
#>docker-compose down
#>docker-compose build --build-arg MA_DEBIAN_MIRROR=http://192.168.1.16/debian
#>docker-compose up -d
version: "2.2"
services:
amd64:
restart: unless-stopped
image: masysmaci:v2
build:
context: .
dockerfile: Dockerfile
args:
- MA_DEBIAN_MIRROR=${MA_DEBIAN_MIRROR:-http://ftp.de.debian.org/debian}
volumes:
- ../:/home/masysmaci/root
- ${MA_PUBKEY:-./dot_gnupg_sample/pubkey}:/etc/apt/trusted.gpg.d/masysmacirepopubkey.asc:ro
# As of now, it seems one cannot use :ro here, because gpg needs
# write access for signing (WTF), see also:
# http://gnupg.10057.n7.nabble.com/gnupg-on-read-only-filesystem-td53632.html
- ${MA_GNUPG_ROOT:-./dot_gnupg_sample/}:/home/masysmaci/.gnupg
- ${MA_REPOSITORY_ROOT:-/var/tmp/masysmacirepo}:/data/programs/repo:Z
command:
- /home/masysmaci/root/co-ci/cimain.sh
i386:
restart: unless-stopped
image: i386/masysmaci:v2
build:
context: .
args:
- MDVL_CI_ARCH_PREFIX=i386/
- MA_DEBIAN_MIRROR=${MA_DEBIAN_MIRROR:-http://ftp.de.debian.org/debian}
# TODO z ITS BAD THAT WE CANNOT MAKE REPO READONLY BUT CURRENTLY IT IS NOT POSSIBLE TO QUERY VERSION OF PACKAGE IN REPO WHILE THE REPO IS LOCKED...
volumes:
- ../:/home/masysmaci/root
- ${MA_PUBKEY:-./dot_gnupg_sample/pubkey}:/etc/apt/trusted.gpg.d/masysmacirepopubkey.asc:ro
- ${MA_REPOSITORY_ROOT:-/var/tmp/masysmacirepo}:/data/programs/repo
command:
- /home/masysmaci/root/co-ci/cimain.sh
#armhf:
# restart: unless-stopped
# image: arm32v7/masysmaci:v2
# build:
# context: .
# args:
# - MDVL_CI_ARCH_PREFIX=arm32v7/
# - MA_DEBIAN_MIRROR=${MA_DEBIAN_MIRROR:-http://ftp.de.debian.org/debian}
# volumes:
# - ../:/home/masysmaci/root
# - ${MA_PUBKEY:-./dot_gnupg_sample/pubkey}:/etc/apt/trusted.gpg.d/masysmacirepopubkey.asc:ro
# - ${MA_REPOSITORY_ROOT:-/var/tmp/masysmacirepo}:/data/programs/repo
# command:
# - /home/masysmaci/root/co-ci/cimain.sh