Skip to content

Commit

Permalink
ARROW-8316: [CI] Set docker-compose to use docker-cli instead of dock…
Browse files Browse the repository at this point in the history
…er-py for building images

The build cache sometimes works sometimes doesn't.

The images pushed from the master branch were sometimes producing reusable layers, sometimes not. So the caching was working non-deterministically.

The underlying issue is docker/compose#883

Closes #6802 from kszucs/docker-compose-cli

Authored-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
Signed-off-by: Krisztián Szűcs <szucs.krisztian@gmail.com>
  • Loading branch information
kszucs committed Apr 8, 2020
1 parent 2fc20fe commit 58e7231
Show file tree
Hide file tree
Showing 13 changed files with 48 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/cpp.yml
Expand Up @@ -32,6 +32,8 @@ on:
- 'format/Flight.proto'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1
ARROW_ENABLE_TIMING_TESTS: OFF

jobs:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/cpp_cron.yml
Expand Up @@ -30,6 +30,8 @@ on:
0 */12 * * *
env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1
ARROW_ENABLE_TIMING_TESTS: OFF

jobs:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/dev.yml
Expand Up @@ -22,6 +22,10 @@ on:
push:
pull_request:

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

lint:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/go.yml
Expand Up @@ -29,6 +29,10 @@ on:
- 'ci/**'
- 'go/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/integration.yml
Expand Up @@ -41,6 +41,10 @@ on:
- 'java/**'
- 'format/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

conda-integration:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/java.yml
Expand Up @@ -35,6 +35,10 @@ on:
- 'format/Flight.proto'
- 'java/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/java_jni.yml
Expand Up @@ -31,6 +31,10 @@ on:
- 'cpp/**'
- 'java/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/js.yml
Expand Up @@ -29,6 +29,10 @@ on:
- 'ci/**'
- 'js/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python.yml
Expand Up @@ -31,6 +31,10 @@ on:
- 'cpp/**'
- 'python/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

ubuntu:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/python_cron.yml
Expand Up @@ -28,6 +28,10 @@ on:
- cron: |
0 */12 * * *
env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/r.yml
Expand Up @@ -39,6 +39,10 @@ on:
- 'cpp/**'
- 'r/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:
ubuntu:
name: AMD64 Ubuntu ${{ matrix.ubuntu }} R ${{ matrix.r }}
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/ruby.yml
Expand Up @@ -33,6 +33,10 @@ on:
- 'c_glib/**'
- 'ruby/**'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

ubuntu:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/rust.yml
Expand Up @@ -35,6 +35,10 @@ on:
- 'rust/**'
- 'format/Flight.proto'

env:
DOCKER_BUILDKIT: 0
COMPOSE_DOCKER_CLI_BUILD: 1

jobs:

debian:
Expand Down

0 comments on commit 58e7231

Please sign in to comment.