Skip to content

Commit

Permalink
[tests] set platform on docker build (#7603)
Browse files Browse the repository at this point in the history
M1 support for tests that use this script 

## Test Plan
after ensuring image is removed:
`pytest python_modules/libraries/dagster-docker/dagster_docker_tests/test_docker_executor.py::test_docker_executor`
  • Loading branch information
alangenfeld committed Apr 27, 2022
1 parent d0d4d5d commit 0620355
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,9 @@ echo -e "--- \033[32m:docker: Building Docker image\033[0m"
PYTHON_SLIM_IMAGE="python:${PYTHON_VERSION}-slim"
BASE_IMAGE=${BASE_IMAGE:=$PYTHON_SLIM_IMAGE}

# set platform explicitly since at this time some dagster deps dont work in arm (M1 macbook)
docker build . \
--build-arg PYTHON_VERSION="${PYTHON_VERSION}" \
--build-arg BASE_IMAGE="${BASE_IMAGE}" \
--platform linux/amd64 \
-t "${IMAGE_TAG}"

0 comments on commit 0620355

Please sign in to comment.