Last active
November 14, 2018 07:44
-
-
Save orimanabu/fcee24cf04f448f899016ba311c3a58a to your computer and use it in GitHub Desktop.
build etcdhelper from OpenShift
This file contains hidden or 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
#!/bin/bash | |
# 1. `rpm -i atomic-openshift-xxx.rpm` | |
# 2. `cd ~/rpmbuild/BUILD/atomic-openshift-xxx` | |
# 3. run this script | |
export OS_ONLY_BUILD_PLATFORMS="linux/amd64" | |
export OS_GOFLAGS=-v | |
# the line below is from: $(str='%global os_git_vars '; grep "^$str" SPECS/origin.spec | sed -e "s/^$str//") | |
# v3.6 | |
#export OS_GIT_MINOR=6+ OS_GIT_MAJOR=3 OS_GIT_VERSION=v3.6.173.0.21 OS_GIT_TREE_STATE=clean OS_BUILD_LDFLAGS_DEFAULT_IMAGE_STREAMS=rhel7 OS_IMAGE_PREFIX=registry.access.redhat.com/openshift3/ose OS_GIT_COMMIT=f95b0e7 | |
# v3.11 | |
export OS_GIT_MINOR=11+ OS_GIT_MAJOR=3 OS_GIT_VERSION=v3.11.16 OS_GIT_TREE_STATE=clean OS_BUILD_LDFLAGS_DEFAULT_IMAGE_STREAMS=rhel7 KUBE_GIT_VERSION=v1.11.0+d4cacc0 OS_GIT_PATCH=16 KUBE_GIT_COMMIT=d4cacc0 KUBE_GIT_MINOR=11+ OS_GIT_COMMIT=b48b8f8f12 KUBE_GIT_MAJOR=1 OS_IMAGE_PREFIX=registry.redhat.io/openshift3/ose ETCD_GIT_VERSION=v3.2.16-0-g121edf0 ETCD_GIT_COMMIT=121edf0 | |
./hack/build-go.sh ./tools/etcdhelper | |
# How to run etcdhelper: | |
# ./etcdhelper \ | |
# -cacert /etc/origin/master/ca-bundle.crt \ | |
# -cert /etc/origin/master/master.etcd-client.crt \ | |
# -key /etc/origin/master/master.etcd-client.key \ | |
# -endpoint https://<ENDPOINT>:4001 \ | |
# dump |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment