blob: de5b355e08dd91eeb0292a571fca9035b86c6c07 [file] [log] [blame]
version: '2.4'
volumes:
android-debug-keystore:
container-ccache:
container-starboard-toolchains:
x-common-definitions: &common-definitions
stdin_open: true
tty: true
x-build-volumes: &build-volumes
volumes:
- ${COBALT_SRC:-.}:/code/
- android-debug-keystore:/root/.android/
- ${CCACHE_DIR:-container-ccache}:/root/ccache
- ${STARBOARD_TOOLCHAINS_DIR:-container-starboard-toolchains}:/root/starboard-toolchains
x-build-common-definitions: &build-common-definitions
<<: *common-definitions
<<: *build-volumes
depends_on:
- build-base
services:
base:
build:
args:
- BASE_OS
context: ./docker/linux
dockerfile: base/Dockerfile
image: cobalt-base
# Define common build container for Linux
build-base:
build:
context: ./docker/linux
dockerfile: base/build/Dockerfile
image: cobalt-build-base
depends_on:
- base
stub:
<<: *build-common-definitions
build:
context: ./docker/linux
dockerfile: stub/Dockerfile
image: cobalt-build-linux-stub
environment:
- PLATFORM=stub
- CONFIG=${CONFIG:-debug}
linux-x64x11:
<<: *build-common-definitions
build:
context: ./docker/linux
dockerfile: linux-x64x11/Dockerfile
image: cobalt-build-linux
environment:
- PLATFORM=linux-x64x11
- CONFIG=${CONFIG:-debug}
android:
<<: *build-common-definitions
build:
context: ./docker/linux/android
dockerfile: ./Dockerfile
image: cobalt-build-android
environment:
- PLATFORM
- CONFIG=${CONFIG:-debug}
raspi:
<<: *build-common-definitions
build:
context: ./docker/linux/raspi
dockerfile: ./Dockerfile
image: cobalt-build-raspi
environment:
- PLATFORM
- CONFIG=${CONFIG:-debug}
# Define common build container for Evergreen
build-evergreen:
<<: *build-common-definitions
build:
context: ./docker/linux
dockerfile: evergreen/Dockerfile
image: cobalt-build-evergreen
environment:
- PLATFORM
- CONFIG
evergreen-x64-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
- PLATFORM=evergreen-x64-sbversion-12
evergreen-x86-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
- PLATFORM=evergreen-x86-sbversion-12
evergreen-arm64-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
- PLATFORM=evergreen-arm64-sbversion-12
evergreen-arm-hardfp-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
- PLATFORM=evergreen-arm-hardfp-sbversion-12
evergreen-arm-softfp-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
- PLATFORM=evergreen-arm-softfp-sbversion-12
unittest:
<<: *common-definitions
build:
context: ./docker/linux
dockerfile: unittest/Dockerfile
image: cobalt-unittest
environment:
- TEST_TARGET=${TEST_TARGET:-eztime_test}
volumes:
- ${COBALT_SRC:-.}/out/${PLATFORM:-linux-x64x11}_${CONFIG:-debug}:/out