Skip to content

Commit

Permalink
e2e container image added parameter to set target arch
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianriobo authored and praveenkumar committed Sep 19, 2022
1 parent c9989e8 commit 3711fd1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions images/build-e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ The container connects through ssh to the target host and copy the right binary
## Envs

**PLATFORM**:*define target platform (windows, macos, linux).*
**ARCH**:*define target arch (amd64, arm64). Default amd64
**TARGET_HOST**:*dns or ip for the target host.*
**TARGET_HOST_USERNAME**:*username for target host.*
**TARGET_HOST_KEY_PATH**:*private key for user. (Mandatory if not TARGET_HOST_PASSWORD).*
Expand Down
3 changes: 2 additions & 1 deletion images/build-e2e/entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
#!/bin/sh

ARCH="${ARCH:-"amd64"}"
# Vars
BINARY=e2e.test
if [[ ${PLATFORM} == 'windows' ]]; then
BINARY=e2e.test.exe
fi
BINARY_PATH="/opt/crc/bin/${PLATFORM}-amd64/${BINARY}"
BINARY_PATH="/opt/crc/bin/${PLATFORM}-${ARCH}/${BINARY}"

# Running options
CLEANUP_HOME="${CLEANUP_HOME:-"true"}"
Expand Down

0 comments on commit 3711fd1

Please sign in to comment.