Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Cobalt 24 LTS docker-compose.yml with changes from Main branch #3990

Merged
merged 1 commit into from
Aug 15, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 58 additions & 105 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,9 @@ x-build-volumes: &build-volumes
- ${CCACHE_DIR:-container-ccache}:/root/ccache

x-build-common-definitions: &build-common-definitions
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
depends_on:
- build-base

Expand All @@ -39,18 +40,7 @@ x-shared-build-env: &shared-build-env
IS_CI: ${IS_CI:-0}
IS_DOCKER: 1
PYTHONPATH: /code

x-shared-docsite-definitions: &shared-docsite-definitions
<<: *build-common-definitions
build:
context: ./docker/docsite
dockerfile: Dockerfile
args:
- USER=root
- UID=2000
- GID=2000
environment:
<<: *shared-build-env
TERM: xterm

x-shared-unittest-definitions: &shared-unittest-definitions
stdin_open: true
Expand Down Expand Up @@ -137,18 +127,6 @@ services:
- base-bionic
scale: 0

docsite:
<<: *shared-docsite-definitions
image: cobalt-build-docsite
ports:
# The docsite webapp runs on port 4000.
- "4000:4000"

docsite-deploy:
<<: *shared-docsite-definitions
image: cobalt-build-docsite-deploy
entrypoint: ["/code/third_party/internal/repo-publishing-toolkit-local/preview-site.sh", "deploy"]

build-linux-stub:
<<: *build-common-definitions
build:
Expand All @@ -170,6 +148,7 @@ services:
<<: *shared-build-env
PLATFORM: stub
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: ${SB_API_VERSION}

build-linux:
<<: *build-common-definitions
Expand All @@ -190,13 +169,15 @@ services:
depends_on: [ build-base ]
environment:
<<: *shared-build-env
PLATFORM: linux-x64x11
PLATFORM: ${PLATFORM:-linux-x64x11}
CONFIG: ${CONFIG:-debug}
TARGET: ${TARGET:-cobalt_install}
SB_API_VERSION: ${SB_API_VERSION}

linux-x64x11-bionic:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux
dockerfile: linux-x64x11/Dockerfile
Expand All @@ -208,8 +189,9 @@ services:
scale: 0

linux-x64x11-gcc:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux
dockerfile: gcc-6-3/Dockerfile
Expand All @@ -218,12 +200,14 @@ services:
<<: *shared-build-env
PLATFORM: linux-x64x11-gcc-6-3
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: ${SB_API_VERSION}
depends_on:
- linux-x64x11-bionic

build-linux-gcc:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux
dockerfile: gcc-6-3/Dockerfile
Expand All @@ -232,8 +216,9 @@ services:
- linux-x64x11-bionic

linux-x64x11-clang-3-9:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux/
dockerfile: clang-3-9/Dockerfile
Expand All @@ -242,12 +227,14 @@ services:
<<: *shared-build-env
PLATFORM: linux-x64x11-clang-3-9
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: ${SB_API_VERSION}
depends_on:
- linux-x64x11-bionic

build-linux-clang-3-9:
<<: *common-definitions
<<: *build-volumes
<<:
- *common-definitions
- *build-volumes
build:
context: ./docker/linux/
dockerfile: clang-3-9/Dockerfile
Expand All @@ -273,6 +260,7 @@ services:
PLATFORM: android-x86
CONFIG: ${CONFIG:-debug}
TARGET_CPU: ${TARGET_CPU:-x86}
SB_API_VERSION: ${SB_API_VERSION}

android-arm:
<<: *build-common-definitions
Expand All @@ -283,6 +271,7 @@ services:
PLATFORM: android-arm
CONFIG: ${CONFIG:-debug}
TARGET_CPU: ${TARGET_CPU:-arm}
SB_API_VERSION: ${SB_API_VERSION}

android-arm64:
<<: *build-common-definitions
Expand All @@ -293,6 +282,7 @@ services:
PLATFORM: android-arm64
CONFIG: ${CONFIG:-debug}
TARGET_CPU: ${TARGET_CPU:-arm64}
SB_API_VERSION: ${SB_API_VERSION}

build-raspi:
<<: *build-common-definitions
Expand All @@ -313,6 +303,7 @@ services:
<<: *shared-build-env
PLATFORM: ${PLATFORM:-raspi-2}
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: ${SB_API_VERSION}

# Define common build container for Evergreen
build-evergreen:
Expand All @@ -333,35 +324,7 @@ services:
<<: *shared-build-env
PLATFORM: evergreen-x64
TARGET_CPU: ${TARGET_CPU:-x64}

evergreen-x64-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-x64-sbversion-12
TARGET_CPU: ${TARGET_CPU:-x64}
SB_API_VERSION: 12

evergreen-x86:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-x86
TARGET_CPU: ${TARGET_CPU:-x86}

evergreen-x86-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-x86-sbversion-12
TARGET_CPU: ${TARGET_CPU:-x86}
SB_API_VERSION: 12
SB_API_VERSION: ${SB_API_VERSION}

evergreen-arm64:
<<: *build-common-definitions
Expand All @@ -371,16 +334,7 @@ services:
<<: *shared-build-env
PLATFORM: evergreen-arm64
TARGET_CPU: ${TARGET_CPU:-arm64}

evergreen-arm64-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-arm64-sbversion-12
TARGET_CPU: ${TARGET_CPU:-arm64}
SB_API_VERSION: 12
SB_API_VERSION: ${SB_API_VERSION}

evergreen-arm-hardfp:
<<: *build-common-definitions
Expand All @@ -390,16 +344,7 @@ services:
<<: *shared-build-env
PLATFORM: evergreen-arm-hardfp
TARGET_CPU: ${TARGET_CPU:-arm}

evergreen-arm-hardfp-sbversion-12:
<<: *build-common-definitions
image: cobalt-build-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-arm-hardfp-sbversion-12
TARGET_CPU: ${TARGET_CPU:-arm}
SB_API_VERSION: 12
SB_API_VERSION: ${SB_API_VERSION}

evergreen-arm-softfp:
<<: *build-common-definitions
Expand All @@ -409,47 +354,56 @@ services:
<<: *shared-build-env
PLATFORM: evergreen-arm-softfp
TARGET_CPU: ${TARGET_CPU:-arm}
SB_API_VERSION: ${SB_API_VERSION}

evergreen-arm-softfp-sbversion-12:
# Defined common build image for linux-evergreen
build-linux-evergreen:
<<: *build-common-definitions
image: cobalt-build-evergreen
build:
context: ./docker/linux
dockerfile: linux-x64x11/Dockerfile
args:
- FROM_IMAGE=cobalt-build-evergreen
image: cobalt-build-linux-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: evergreen-arm-softfp-sbversion-12
TARGET_CPU: ${TARGET_CPU:-arm}
SB_API_VERSION: 12

# Defined common build image for linux-evergreen
build-linux-evergreen:
linux-x64x11-evergreen:
<<: *build-common-definitions
build:
context: ./docker/linux
dockerfile: linux-x64x11/Dockerfile
args:
- FROM_IMAGE=cobalt-build-evergreen
image: cobalt-build-linux-evergreen
image: cobalt-build-linux-x64x11-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: linux-x64x11
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: ${SB_API_VERSION}

linux-x64x11-sbversion12-evergreen:
# Defined common build image for android-evergreen
build-android-evergreen:
<<: *build-common-definitions
image: cobalt-build-linux-evergreen
depends_on: [ build-linux-evergreen ]
build:
context: ./docker/linux
dockerfile: android/Dockerfile
args:
- FROM_IMAGE=cobalt-build-evergreen
image: cobalt-build-android-evergreen
depends_on: [ build-evergreen ]
environment:
<<: *shared-build-env
PLATFORM: linux-x64x11-sbversion-12
CONFIG: ${CONFIG:-debug}
SB_API_VERSION: 12

# Example usage of unittest:
# 1. Build the containers for which you want to unittest
# docker-compose up --build --no-start linux-x64x11 unittest
# docker compose up --build --no-start linux-x64x11-unittest
# 2. Build the 'all' target for the platform you want to test
# PLATFORM=linux-x64x11 CONFIG=devel TARGET=all docker-compose run linux-x64x11
# PLATFORM=linux-x64x11 CONFIG=devel TARGET=all docker compose run linux-x64x11
# 3. Run the unittests for that target.
# PLATFORM=linux-x64x11 CONFIG=devel TARGET=all docker-compose run unittest
# PLATFORM=linux-x64x11 CONFIG=devel docker compose run linux-x64x11-unittest
linux-x64x11-unittest:
<<: *shared-unittest-definitions

Expand Down Expand Up @@ -480,10 +434,9 @@ services:
entrypoint: ["python3", "/unittest_docker_launcher.py", "3"]

xvfb:
image: xvfb
image: cobalt-xvfb
ports:
- "99:99"
image: cobalt-xvfb
build:
context: ./docker/linux/
dockerfile: xvfb/Dockerfile
Expand Down
Loading