-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update golang version in CI/integration scripts
Add z version when retrieving golang binaries
- Loading branch information
Showing
4 changed files
with
9 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
#!/bin/env bash | ||
# CI script for UBI8 job | ||
# CI script for UBI9 job | ||
# purpose: spawn sg-core to process messages sent by rsyslog | ||
|
||
set -ex | ||
|
||
# enable required repo(s) | ||
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO | ||
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
|
||
dnf install -y git golang gcc make qpid-proton-c-devel | ||
|
||
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOBIN | ||
|
||
go install golang.org/dl/go1.22@latest | ||
go1.22 download | ||
go install golang.org/dl/go1.22.0@latest | ||
go1.22.0 download | ||
|
||
# install sg-core and start sg-core | ||
mkdir -p /usr/lib64/sg-core | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22 BUILD_ARGS=-buildvcs=false ./build.sh | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22.0 BUILD_ARGS=-buildvcs=false ./build.sh | ||
|
||
./sg-core -config ./ci/integration/metrics/ceilometer/tcp/sg_config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,22 @@ | ||
#!/bin/env bash | ||
# CI script for UBI8 job | ||
# CI script for UBI9 job | ||
# purpose: spawn sg-core to process messages sent by rsyslog | ||
|
||
set -ex | ||
|
||
# enable required repo(s) | ||
curl -o /etc/yum.repos.d/CentOS-OpsTools.repo $OPSTOOLS_REPO | ||
sed -i 's/gpgcheck=1/gpgcheck=0/g' /etc/yum.repos.d/CentOS-OpsTools.repo | ||
|
||
dnf install -y git golang gcc make qpid-proton-c-devel | ||
|
||
export GOBIN=$GOPATH/bin | ||
export PATH=$PATH:$GOBIN | ||
|
||
go install golang.org/dl/go1.22@latest | ||
go1.22 download | ||
go install golang.org/dl/go1.22.0@latest | ||
go1.22.0 download | ||
|
||
# install sg-core and start sg-core | ||
mkdir -p /usr/lib64/sg-core | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22 BUILD_ARGS=-buildvcs=false ./build.sh | ||
PLUGIN_DIR=/usr/lib64/sg-core/ GOCMD=go1.22.0 BUILD_ARGS=-buildvcs=false ./build.sh | ||
|
||
./sg-core -config ./ci/integration/metrics/collectd/sg_config.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters