Skip to content

Commit

Permalink
DRAFT: [CI] Use docker compose instead of docker-compose
Browse files Browse the repository at this point in the history
  • Loading branch information
pitrou committed Aug 6, 2024
1 parent 51d50d7 commit 53ced2e
Show file tree
Hide file tree
Showing 20 changed files with 3 additions and 30 deletions.
1 change: 0 additions & 1 deletion .github/workflows/archery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ on:
env:
ARCHERY_DEBUG: 1
ARCHERY_DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
ARCHERY_USE_DOCKER_CLI: 1

concurrency:
group: ${{ github.repository }}-${{ github.head_ref || github.sha }}-${{ github.workflow }}
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
ARROW_ENABLE_TIMING_TESTS: OFF
DOCKER_VOLUME_PREFIX: ".docker/"

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/docs_light.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
ARROW_ENABLE_TIMING_TESTS: OFF
DOCKER_VOLUME_PREFIX: ".docker/"

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1

jobs:

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/java_jni.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1

jobs:

Expand Down
1 change: 0 additions & 1 deletion .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/r.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/swift.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ permissions:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
DOCKER_VOLUME_PREFIX: ".docker/"

jobs:
Expand Down
5 changes: 2 additions & 3 deletions dev/archery/archery/docker/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def _execute(self, *args, **kwargs):
@click.option('--using-docker-buildx', default=False, is_flag=True,
envvar='ARCHERY_USE_DOCKER_BUILDX',
help="Use buildx with docker CLI directly for building instead "
"of calling docker-compose or the plain docker build "
"of calling `docker compose` or the plain docker build "
"command. This option makes the build cache reusable "
"across hosts.")
@click.pass_context
Expand All @@ -78,8 +78,7 @@ def docker(ctx, src, dry_run, using_docker_cli, using_docker_buildx):
using_docker=using_docker_cli,
using_buildx=using_docker_buildx,
debug=ctx.obj.get('debug', False),
compose_bin=("docker compose" if using_docker_cli
else "docker-compose"))
compose_bin="docker compose")
if dry_run:
_mock_compose_calls(compose)
ctx.obj['compose'] = compose
Expand Down
2 changes: 1 addition & 1 deletion dev/archery/archery/docker/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def _read_config(self, config_path, compose_bin):
compose = Docker()
args = ['compose']
else:
compose = Command('docker-compose')
compose = Command(compose_bin)
args = []
args += ['--file', str(config_path), 'config']
result = compose.run(*args, env=self.env, check=False,
Expand Down
2 changes: 0 additions & 2 deletions dev/tasks/java-jars/github.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
ARCH: {{ '${{ matrix.platform.archery_arch }}' }}
ARCH_ALIAS: {{ '${{ matrix.platform.archery_arch_alias }}' }}
ARCH_SHORT: {{ '${{ matrix.platform.archery_arch_short }}' }}
ARCHERY_USE_DOCKER_CLI: {{ "${{matrix.platform.archery_use_docker_cli || '1'}}" }}
strategy:
fail-fast: false
matrix:
Expand All @@ -45,7 +44,6 @@ jobs:
archery_arch: "arm64v8"
archery_arch_alias: "aarch64"
archery_arch_short: "arm64"
archery_use_docker_cli: "0"
steps:
{{ macros.github_checkout_arrow()|indent }}
{{ macros.github_free_space()|indent }}
Expand Down
1 change: 0 additions & 1 deletion dev/tasks/linux-packages/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ jobs:
{% endif %}
env:
ARCHITECTURE: {{ architecture }}
ARCHERY_USE_DOCKER_CLI: {{ '0' if architecture == 'arm64' else '1' }}
steps:
{{ macros.github_checkout_arrow()|indent }}
{{ macros.github_login_dockerhub()|indent }}
Expand Down
1 change: 0 additions & 1 deletion dev/tasks/macros.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ on:

env:
ARCHERY_DEBUG: 1
ARCHERY_USE_DOCKER_CLI: 1
{% endmacro %}

{%- macro github_checkout_arrow(fetch_depth=1, submodules="recursive", action_v="4") -%}
Expand Down
2 changes: 0 additions & 2 deletions dev/tasks/python-wheels/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,8 @@ jobs:
# archery uses these environment variables
{% if arch == "amd64" %}
ARCH: amd64
ARCHERY_USE_DOCKER_CLI: 1
{% else %}
ARCH: arm64v8
ARCHERY_USE_DOCKER_CLI: 0
{% endif %}
PYTHON: "{{ python_version }}"

Expand Down
2 changes: 0 additions & 2 deletions dev/tasks/python-wheels/github.windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ jobs:
# note that we don't run docker build since there wouldn't be a cache hit
# and rebuilding the dependencies takes a fair amount of time
REPO: ghcr.io/ursacomputing/arrow
# prefer the docker cli over docker-compose
ARCHERY_USE_DOCKER_CLI: 1

steps:
{{ macros.github_checkout_arrow()|indent }}
Expand Down
6 changes: 0 additions & 6 deletions dev/tasks/tasks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1110,7 +1110,6 @@ tasks:
template: docker-tests/github.linux.yml
params:
env:
ARCHERY_USE_DOCKER_CLI: 0
UBUNTU: 20.04
flags: -e ARROW_SKYHOOK=ON
image: ubuntu-cpp
Expand Down Expand Up @@ -1494,16 +1493,12 @@ tasks:
ci: github
template: docker-tests/github.cuda.yml
params:
env:
ARCHERY_USE_DOCKER_CLI: 0
image: ubuntu-cuda-cpp

test-cuda-python:
ci: github
template: docker-tests/github.cuda.yml
params:
env:
ARCHERY_USE_DOCKER_CLI: 0
image: ubuntu-cuda-python

############################## Fuzz tests #################################
Expand Down Expand Up @@ -1565,7 +1560,6 @@ tasks:
template: docker-tests/github.linux.yml
params:
env:
ARCHERY_USE_DOCKER_CLI: 0
HDFS: "{{ hdfs_version }}"
PYTHON: "3.10"
image: conda-python-hdfs
Expand Down

0 comments on commit 53ced2e

Please sign in to comment.