forked from sdelafond/debian-cloud-images
-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.build.yml
58 lines (55 loc) · 2.15 KB
/
docker-compose.build.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
version: '3'
services:
pkgtools:
image: untangleinc/pkgtools
environment:
PKGTOOLS_URL: ${PKGTOOLS_URL:-https://github.com/untangle/ngfw_pkgtools}
PKGTOOLS_COMMIT: ${PKGTOOLS_COMMIT:-origin/master}
volumes:
- pkgtools:/opt/untangle/ngfw_pkgtools
entrypoint: >
bash -c "
git remote set-url origin $${PKGTOOLS_URL} &&
git fetch -a &&
git clean -f -d &&
git reset --hard &&
git checkout $${PKGTOOLS_COMMIT}"
build:
image: untangleinc/ngfw:${REPOSITORY:-bullseye}-cloud
environment:
REPOSITORY: ${REPOSITORY:-bullseye}
DISTRIBUTION: ${DISTRIBUTION} # # defaults to empty: let pkgtools do the right thing
ARCHITECTURE: ${ARCHITECTURE} # defaults to empty: build.sh will use host arch
VERBOSE: ${VERBOSE} # defaults to empty: "not verbose"
PACKAGE: ${PACKAGE} # defaults to empty: "all packages"
DEBUG: ${DEBUG} # defaults to empty: "no debugging"
SSH_KEY: ${SSH_KEY} # defaults to empty: "no key"
NO_CLEAN: ${NO_CLEAN} # defaults to empty: "do clean"
# empty: "no upload" (default)
# scp: use scp method for dput
# ftp: use ftp method for dput
UPLOAD: ${UPLOAD}
# empty: "do not force the build when that version is already
# present on the target mirror (default)"
FORCE: ${FORCE}
TRAVIS_BRANCH: ${TRAVIS_BRANCH:-master}
TRAVIS_PULL_REQUEST_BRANCH:
TRAVIS_REPO_SLUG:
PACKAGE_SERVER_IP: ${PACKAGE_SERVER_IP:-52.2.228.218}
AWS_ACCESS_KEY_ID:
AWS_SECRET_ACCESS_KEY:
AZURE_AUTH_SECRET:
AZURE_IMAGE_SUBSCRIPTION_ID:
AZURE_STORAGE_SUBSCRIPTION_ID:
privileged: ${PRIVILEGED:-true}
extra_hosts:
# from the outside, pass package-server's outside IP instead
- "package-server:${PACKAGE_SERVER_IP:-52.2.228.218}"
volumes:
- .:/opt/untangle/build
- /dev:/dev
- pkgtools:/opt/untangle/ngfw_pkgtools:ro
- /tmp/travis-buildbot.rsa:/tmp/travis-buildbot.rsa
- /etc/apt/apt.conf.d/01proxy:/etc/apt/apt.conf.d/01proxy
volumes:
pkgtools: