Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions s/seaweedfs/build_info.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
{
"maintainer": "govindjadhav3",
"maintainer": "Prachi.Gaonkar@ibm.com",
"package_name": "seaweedfs",
"github_url": "https://github.com/seaweedfs/seaweedfs",
"version": "3.71",
"version": "4.08",
"default_branch": "master",
"build_script": "seaweedfs_ubi_9.3.sh",
"build_script": "seaweedfs_4.08_ubi_9.6.sh",
"package_dir": "s/seaweedfs",
"validate_build_script": true,
"use_non_root_user": false,
"docker_build": false,
"v1.*.*": {
"4.08": {
"build_script": "seaweedfs_4.08_ubi_9.6.sh"
},
"3.71": {
"build_script": "seaweedfs_ubi_9.3.sh"
},
"*.*": {
"build_script": "seaweedfs_4.08_ubi_9.6.sh"
}
}
60 changes: 60 additions & 0 deletions s/seaweedfs/seaweedfs_4.08_ubi_9.6.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#!/bin/bash -e
# -----------------------------------------------------------------------------
#
# Package : seaweedfs
# Version : 4.08
# Source repo : https://github.com/seaweedfs/seaweedfs.git
# Tested on : UBI 9.6
# Script License: Apache License, Version 2 or later
# Language : go
# Ci-Check : True
# Maintainer :Prachi Gaonkar <Prachi.Gaonkar@ibm.com>
#
# Disclaimer: This script has been tested in root mode on given
# ========== platform using the mentioned version of the package.
# It may not work as expected with newer versions of the
# package and/or distribution. In such case, please
# contact "Maintainer" of this script.
#
# ----------------------------------------------------------------------------

PACKAGE_NAME=seaweedfs
PACKAGE_VERSION=${1:-4.08}
PACKAGE_URL=https://github.com/seaweedfs/seaweedfs.git
BUILD_HOME=`pwd`
SCRIPT=$(readlink -f $0)
SCRIPT_PATH=$(dirname $SCRIPT)

yum install -y git gcc wget make java-21-openjdk java-21-openjdk-devel

export GO_VERSION="1.25.6"
wget https://golang.org/dl/go${GO_VERSION}.linux-ppc64le.tar.gz
tar -C /usr/local -xvzf go${GO_VERSION}.linux-ppc64le.tar.gz
rm -rf go${GO_VERSION}.linux-ppc64le.tar.gz
export GOROOT=${GOROOT:-"/usr/local/go"}
export GOPATH=${GOPATH:-$HOME/go}
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin:/usr/local/bin


git clone $PACKAGE_URL
cd $PACKAGE_NAME
git checkout $PACKAGE_VERSION

if ! make install ; then
echo "------------------$PACKAGE_NAME:Install_fails---------------------"
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail | Build_Fails"
exit 1
fi

if ! make test ; then
echo "------------------$PACKAGE_NAME::Install_and_Test_fails-------------------------"
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Fail| Install_and_Test_fails"
exit 2
else
echo "------------------$PACKAGE_NAME::Install_and_Test_success-------------------------"
echo "$PACKAGE_URL $PACKAGE_NAME"
echo "$PACKAGE_NAME | $PACKAGE_URL | $PACKAGE_VERSION | $OS_NAME | GitHub | Pass | Both_Install_and_Test_Success"
exit 0
fi