Skip to content

Commit

Permalink
feat: add buildx command to build dev docker image\nLet's see if this…
Browse files Browse the repository at this point in the history
… just works. Otherwise, I'm going to have to figure out arm64 or Drivah
  • Loading branch information
favilo committed Sep 13, 2024
1 parent 0206547 commit f0152b5
Show file tree
Hide file tree
Showing 7 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .buildkite/dev-docker/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ steps:
default: "master"
hint: "The branch to build from e.g. 'master'."
- wait
- label: "Release Docker Artifacts for Rally"
- label: "Build Docker Artifacts for Rally"
command: bash .buildkite/docker-dev/run.sh
# Run on GCP to use `docker`
agents:
Expand Down
2 changes: 1 addition & 1 deletion .buildkite/dev-docker/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ git --no-pager show
set -x
export TERM=dumb
export LC_ALL=en_US.UTF-8
./release-docker.sh "$BUILD_FROM_BRANCH"
./build-dev-docker.sh "$BUILD_FROM_BRANCH"

popd
popd
Expand Down
2 changes: 1 addition & 1 deletion build-dev-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ echo "========================================================"
echo "Building Docker image for Rally $RALLY_VERSION "
echo "========================================================"

docker build -t elastic/rally:${RALLY_VERSION} --build-arg RALLY_VERSION --build-arg RALLY_LICENSE -f docker/Dockerfiles/Dockerfile-dev $PWD
docker buildx build -t elastic/rally:${RALLY_VERSION} --build-arg RALLY_VERSION --build-arg RALLY_LICENSE --platform=linux/amd64,linux/arm64 -f docker/Dockerfiles/dev/Dockerfile $PWD

echo "======================================================="
echo "Testing Docker image for Rally release $RALLY_VERSION "
Expand Down
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion it/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ def build_docker_image():

command = (
f"docker build -t elastic/rally:{rally_version} --build-arg RALLY_VERSION --build-arg RALLY_LICENSE "
f"-f {ROOT_DIR}/docker/Dockerfiles/Dockerfile-dev {ROOT_DIR}"
f"-f {ROOT_DIR}/docker/Dockerfiles/dev/Dockerfile {ROOT_DIR}"
)

if process.run_subprocess_with_logging(command, env=env_variables) != 0:
Expand Down
2 changes: 1 addition & 1 deletion release-docker.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ echo "========================================================"
echo "Building Docker image for Rally release $RALLY_VERSION "
echo "========================================================"

docker build -t elastic/rally:${RALLY_VERSION} --build-arg RALLY_VERSION --build-arg RALLY_LICENSE -f docker/Dockerfiles/Dockerfile-release $PWD
docker build -t elastic/rally:${RALLY_VERSION} --build-arg RALLY_VERSION --build-arg RALLY_LICENSE -f docker/Dockerfiles/release/Dockerfile $PWD

echo "======================================================="
echo "Testing Docker image for Rally release $RALLY_VERSION "
Expand Down

0 comments on commit f0152b5

Please sign in to comment.