summaryrefslogtreecommitdiffstats
path: root/build-gluster-org/scripts
diff options
context:
space:
mode:
authorNigel Babu <nigelb@redhat.com>2018-09-18 17:56:25 +0530
committerNigel Babu <nigelb@redhat.com>2018-09-18 17:56:25 +0530
commit823ac97b89f3838aa8faa715cbe03120a6aeb39c (patch)
tree1437eb9fcd9054153f35d784aa358a1acd52c5ad /build-gluster-org/scripts
parent22f2c6653368214c514a81faf3fad9a62b24a27b (diff)
New job for gluster-csi-containers
Change-Id: I2aea2d741b14c321cb3664f80cb240b57ca4f534
Diffstat (limited to 'build-gluster-org/scripts')
-rw-r--r--build-gluster-org/scripts/gluster-csi-containers.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build-gluster-org/scripts/gluster-csi-containers.sh b/build-gluster-org/scripts/gluster-csi-containers.sh
new file mode 100644
index 0000000..4fe79a0
--- /dev/null
+++ b/build-gluster-org/scripts/gluster-csi-containers.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+IMG_NAME="gluster/glusterd2-nightly"
+IMG_VERSION=$(date +%Y%m%d)
+
+
+mkdir -p go/{pkg,src,bin}
+export GOPATH=$PWD/go
+export PATH=$PATH:$GOPATH/bin
+export PATH=/usr/sbin:$PATH
+
+export CSISRC=$GOPATH/src/github.com/gluster/gluster-csi-driver
+cd $CSISRC
+go get github.com/alecthomas/gometalinter
+go get -u github.com/golang/dep/cmd/dep
+make
+
+cp pkg/glusterfs/Dockerfile .
+buildah bud .
+#if [ "$PUSH_TO_HUB" = true ]; then
+ #buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:$IMG_VERSION"
+ #buildah push --authfile $AUTH_JSON "localhost/$IMG_NAME:$IMG_VERSION" "docker://docker.io/gluster/glusterd2-nightly:latest"
+#fi