File tree Expand file tree Collapse file tree 9 files changed +18
-15
lines changed
Expand file tree Collapse file tree 9 files changed +18
-15
lines changed Original file line number Diff line number Diff line change @@ -84,7 +84,7 @@ function precheck() {
8484 ok=1
8585 fi
8686
87- if ! go version | egrep -q ' go(1\.1[6789])' ; then
87+ if ! go version | egrep -q ' go(1\.1[6789])|go(1\.2[0]) ' ; then
8888 echo " go version must be 1.16 or above"
8989 ok=1
9090 fi
@@ -115,7 +115,7 @@ build_binary() {
115115 debug " Building via $( go version) "
116116 mkdir -p " $binary_build_path /bin"
117117 rm -f $binary_artifact
118- gobuild=" go build -i ${opt_race} -ldflags \" $ldflags \" -o $binary_artifact go/cmd/orchestrator/main.go"
118+ gobuild=" go build ${opt_race} -ldflags \" $ldflags \" -o $binary_artifact go/cmd/orchestrator/main.go"
119119
120120 case $os in
121121 ' linux' )
Original file line number Diff line number Diff line change 1414# ORC_USER (default: orc_server_user): username used to login to orchestrator backend MySQL server
1515# ORC_PASSWORD (default: orc_server_password): password used to login to orchestrator backend MySQL server
1616
17- FROM golang:1.16.6 -alpine3.14 as build
17+ FROM golang:1.20.3 -alpine3.17 as build
1818
1919ENV GOPATH=/tmp/go
2020
@@ -28,7 +28,7 @@ RUN rsync -av $(find /tmp/orchestrator-release -type d -name orchestrator -maxde
2828RUN rsync -av $(find /tmp/orchestrator-release -type d -name orchestrator-client -maxdepth 2)/ /
2929RUN cp conf/orchestrator-sample-sqlite.conf.json /etc/orchestrator.conf.json
3030
31- FROM alpine:3.14
31+ FROM alpine:3.17
3232
3333RUN apk --no-cache add bash curl jq
3434
Original file line number Diff line number Diff line change 1414# ORC_USER (default: orc_server_user): username used to login to orchestrator backend MySQL server
1515# ORC_PASSWORD (default: orc_server_password): password used to login to orchestrator backend MySQL server
1616
17- FROM golang:1.16.6-stretch
17+ FROM golang:1.20.3-bullseye
1818
1919RUN apt-get update
2020RUN apt-get install -y ruby ruby-dev rubygems build-essential
21- RUN gem install --no-ri --no-rdoc fpm
21+ RUN gem install --no-document fpm
2222ENV GOPATH=/tmp/go
2323
2424RUN apt-get install -y curl rsync gcc g++ bash git tar rpm
Original file line number Diff line number Diff line change 1- FROM golang:1.16.6-stretch
1+ FROM golang:1.20.3-bullseye
22LABEL maintainer="
[email protected] "
33
44RUN apt-get update -q -y
Original file line number Diff line number Diff line change 1- FROM golang:1.16.6-stretch
1+ FROM golang:1.20.3-bullseye
22LABEL maintainer="
[email protected] "
33
44ARG ci_env_repo="https://github.com/percona/orchestrator-ci-env.git"
@@ -8,7 +8,7 @@ RUN echo "ci_env_repo: $ci_env_repo"
88RUN echo "ci_env_branch: $ci_env_branch"
99
1010RUN apt-get update -q -y
11- RUN apt-get install -y sudo haproxy python git jq rsync libaio1 libnuma1 mysql-client bsdmainutils less vim
11+ RUN apt-get install -y sudo haproxy python git jq rsync libaio1 libnuma1 default- mysql-client bsdmainutils less vim
1212
1313RUN mkdir /orchestrator
1414WORKDIR /orchestrator
Original file line number Diff line number Diff line change 1- FROM golang:1.16.6-stretch
1+ FROM golang:1.20.3-bullseye
22LABEL maintainer="
[email protected] "
33
44RUN apt-get update
Original file line number Diff line number Diff line change 3434echo " export PS1=\"\\ [\\ e[0;33m\\ ]\\ h \\ [\\ e[0;97m\\ ]\\ w\\ [\\ e[0;37m\\ ]\\\$ \" " >> /etc/bash.bashrc
3535echo ' export ORCHESTRATOR_API="http://127.0.0.1:3007/api http://127.0.0.1:3008/api http://127.0.0.1:3009/api"' | sudo tee /etc/profile.d/orchestrator-client.sh
3636
37+ # wait for registration and election
38+ sleep 10
39+
3740echo " "
3841echo " Here's how to invoke orchestrator-client:"
3942echo " ---"
Original file line number Diff line number Diff line change @@ -27,6 +27,6 @@ export GOPATH="$PWD/.gopath"
2727cd .gopath/src/github.com/openark/orchestrator
2828
2929# We put the binaries directly into the bindir, because we have no need for shim wrappers
30- go build -i - o " $bindir /orchestrator" -ldflags " -X main.AppVersion=${version} -X main.BuildDescribe=${describe} " ./go/cmd/orchestrator/main.go
30+ go build -o " $bindir /orchestrator" -ldflags " -X main.AppVersion=${version} -X main.BuildDescribe=${describe} " ./go/cmd/orchestrator/main.go
3131
3232rsync -qa ./resources $bindir /
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3- PREFERRED_GO_VERSION=go1.16.6
4- SUPPORTED_GO_VERSIONS=' go1.1[6789]'
3+ PREFERRED_GO_VERSION=go1.20.3
4+ SUPPORTED_GO_VERSIONS=' go1.1[6789]|go1.2[0] '
55
66export ROOTDIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) /.." && pwd ) "
77cd $ROOTDIR
88
99# If Go isn't installed globally, setup environment variables for local install.
10- if [ -z " $( which go) " ] || [ -z " $( go version | grep " $SUPPORTED_GO_VERSIONS " ) " ]; then
10+ if [ -z " $( which go) " ] || [ -z " $( go version | egrep " $SUPPORTED_GO_VERSIONS " ) " ]; then
1111 GODIR=" $ROOTDIR /.vendor/golocal"
1212
1313 if [ $( uname -s) = " Darwin" ]; then
@@ -20,7 +20,7 @@ if [ -z "$(which go)" ] || [ -z "$(go version | grep "$SUPPORTED_GO_VERSIONS")"
2020fi
2121
2222# Fail if correct go version still unfound
23- if [ -z " $( which go) " ] || [ -z " $( go version | grep " $SUPPORTED_GO_VERSIONS " ) " ]; then
23+ if [ -z " $( which go) " ] || [ -z " $( go version | egrep " $SUPPORTED_GO_VERSIONS " ) " ]; then
2424 exit 1
2525fi
2626
You can’t perform that action at this time.
0 commit comments