Skip to content

Commit

Permalink
Add s390x to edgeNodeFiles
Browse files Browse the repository at this point in the history
Signed-off-by: Doug Larson <larsond@us.ibm.com>
  • Loading branch information
dlarson04 committed Jul 10, 2023
1 parent 5e67244 commit c00496f
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions agent-install/edgeNodeFiles.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
function getHznVersion() { local hzn_version=$(hzn version | grep "^Horizon CLI"); echo ${hzn_version##* }; }

# Global constants
SUPPORTED_NODE_TYPES='ARM32-Deb ARM64-Deb AMD64-Deb x86_64-RPM arm64-macOS x86_64-macOS x86_64-Cluster ppc64le-RPM ppc64le-Cluster ALL'
SUPPORTED_NODE_TYPES='ARM32-Deb ARM64-Deb AMD64-Deb x86_64-RPM arm64-macOS x86_64-macOS x86_64-Cluster ppc64le-RPM ppc64le-Cluster s390x-RPM s390x-DEB ALL'
EDGE_CLUSTER_TAR_FILE_NAME='horizon-agent-edge-cluster-files.tar.gz'

# Note: arch must prepend the following 2 variables when used - currently only amd64 and arm64 are built and pushed
# Note: arch must prepend the following 2 variables when used - currently only amd64, arm64, s390x are built and pushed
AGENT_IMAGE_TAR_FILE='_anax.tar.gz'
AGENT_IMAGE='_anax'

Expand Down Expand Up @@ -720,7 +720,7 @@ function getHorizonPackageFiles() {
putHorizonPkgsInCss $softwareFiles $opsys $pkgtype $arch
fi

if [[ $opsys == 'macos' ]]; then #future: do this for all amd64/x86_64
if [[ $opsys == 'macos' ]] || [[ $arch == 's390x' ]]; then #future: do this for all amd64/x86_64

# Set architectures to match what agent will use
if [[ $arch == "x86_64" ]]; then
Expand Down Expand Up @@ -790,6 +790,12 @@ function gatherHorizonPackageFiles() {
if [[ $EDGE_NODE_TYPE == 'ppc64le-RPM' || $EDGE_NODE_TYPE == 'ALL' ]]; then
getHorizonPackageFiles $agentSoftwareFiles 'linux' 'rpm' 'ppc64le'
fi
if [[ $EDGE_NODE_TYPE == 's390x-RPM' || $EDGE_NODE_TYPE == 'ALL' ]]; then
getHorizonPackageFiles $agentSoftwareFiles 'linux' 'rpm' 's390x'
fi
if [[ $EDGE_NODE_TYPE == 's390x-Deb' || $EDGE_NODE_TYPE == 'ALL' ]]; then
getHorizonPackageFiles $agentSoftwareFiles 'linux' 'deb' 's390x'
fi
# there are no packages to extract for edge-cluster, because that uses the agent docker image

echo ""
Expand Down

0 comments on commit c00496f

Please sign in to comment.