Added support for building snapshot, release, and documentation packages via docker compose

This commit is contained in:
Alvin Moore 2018-11-01 14:29:01 -07:00
parent ecace6f7d2
commit 30d6f80aeb
1 changed files with 43 additions and 0 deletions

43
build/docker-compose.yaml Normal file
View File

@ -0,0 +1,43 @@
version: "3"
services:
common: &common
image: foundationdb-build:0.0.6
build:
context: .
dockerfile: Dockerfile
build-setup: &build-setup
<<: *common
depends_on: [common]
volumes:
- ..:/foundationdb
working_dir: /foundationdb
build-docs:
<<: *build-setup
environment:
- RELEASE=false
command: /bin/bash -cl 'make clean && make docpackage'
build-release: &build-release
<<: *build-setup
environment:
- RELEASE=true
command: /bin/bash -cl 'make && make packages'
build-snapshot: &build-snapshot
<<: *build-setup
environment:
- RELEASE=false
command: /bin/bash -cl 'make && make packages'
build-prb:
<<: *build-snapshot
shell:
<<: *build-setup
volumes:
- ..:/foundationdb
- ~/.m2:/root/.m2
entrypoint: /bin/bash