Skip to content

Commit

Permalink
#2156: CI: fix syntax in docker-compose file for new version
Browse files Browse the repository at this point in the history
  • Loading branch information
lifflander committed Jun 6, 2023
1 parent a8b59f5 commit fa443d4
Showing 1 changed file with 11 additions and 21 deletions.
32 changes: 11 additions & 21 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@
#

# Need verision >= 3.5 for the features in use
version: '3.5'
version: '3.8'

# Named volumes must be predefined according the docker compose rules. Many
# combinations have already been added, but if a needed configuration is missing
Expand Down Expand Up @@ -167,8 +167,7 @@ services:
ulimits: &ulimits
core: ${ULIMIT_CORE}
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: &ubuntu-volumes
- .:/vt:delegated
- ${CACHE}${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-cache:/build:delegated
Expand All @@ -195,8 +194,7 @@ services:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: *ubuntu-volumes
command: &vt-build-test-clean-cpp-command >
/bin/bash -c "
Expand All @@ -222,8 +220,7 @@ services:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: *ubuntu-volumes
command: &vt-build-test-clean-noinstall-cpp-command >
/bin/bash -c "
Expand Down Expand Up @@ -252,8 +249,7 @@ services:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: *ubuntu-volumes

##############################################################################
Expand All @@ -274,8 +270,7 @@ services:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-openmpi-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
OMPI_MCA_btl: "^vader"
volumes: *ubuntu-volumes
command: *vt-build-test-clean-cpp-command
Expand All @@ -294,8 +289,7 @@ services:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-openmpi-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
OMPI_MCA_btl: "^vader"
volumes: *ubuntu-volumes

Expand All @@ -309,14 +303,12 @@ services:
target: build
dockerfile: ci/docker/ubuntu-${COMPILER_TYPE}-cpp.dockerfile
args:
<<: *default-args
<<: *vtopts
<<: [*default-args, *vtopts]
cache_from:
- ${REPO}:${ARCH}-ubuntu-${UBUNTU}-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: *ubuntu-volumes
command: &cpp-command >
/bin/bash -c "
Expand Down Expand Up @@ -405,8 +397,7 @@ services:
- ${REPO}:${ARCH}-alpine-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: &alpine-volumes
- .:/vt:delegated
- ${CACHE}${ARCH}-alpine-${HOST_COMPILER}-${COMPILER}-cache:/build:delegated
Expand All @@ -426,7 +417,6 @@ services:
- ${REPO}:${ARCH}-alpine-${HOST_COMPILER}-${COMPILER}-cpp
ulimits: *ulimits
environment:
<<: *ccache
<<: *vtopts
<<: [*ccache, *vtopts]
volumes: *alpine-volumes
command: *vt-build-test-clean-cpp-command

0 comments on commit fa443d4

Please sign in to comment.