-
Notifications
You must be signed in to change notification settings - Fork 13
/
docker-compose.build.yml
52 lines (49 loc) · 1.95 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
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} || true"
build:
image: untangleinc/ngfw:${REPOSITORY:-bullseye}-build-multiarch
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:
SSH_AUTH_SOCK: /ssh-agent
extra_hosts:
# use package-server's public EIP by default
- "package-server:${PACKAGE_SERVER_IP:-52.2.228.218}"
volumes:
- .:/opt/untangle/build
- 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
- ${SSH_AUTH_SOCK}:/ssh-agent
volumes:
pkgtools: