Skip to content
This repository was archived by the owner on Sep 30, 2020. It is now read-only.

Commit a346f9f

Browse files
authored
Merge pull request #47 from colhom/fixup-containerized-build-process
build: fix up containerized release build process
2 parents b02c31c + 8b684a1 commit a346f9f

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
.envrc
88
coverage.txt
99
profile.out
10+
/.glide

containerized-build-release-binaries

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,15 @@
22
set -euo pipefail
33

44
COREOS_KUBERNETES_ROOT=$(git rev-parse --show-toplevel)
5-
sudo rkt run \
6-
--volume bk,kind=host,source=${COREOS_KUBERNETES_ROOT} \
7-
--mount volume=bk,target=/go/src/github.com/coreos/kube-aws \
8-
--insecure-options=image docker://golang:1.6.3 --exec /bin/bash -- -c \
9-
"cd /go/src/github.com/coreos/kube-aws && ./build-release-binaries"
5+
KUBERNETES_MOUNT_DIR="/go/src/github.com/coreos/kube-aws"
106

7+
docker run --rm -i \
8+
-v "${COREOS_KUBERNETES_ROOT}:${KUBERNETES_MOUNT_DIR}:z" -w ${KUBERNETES_MOUNT_DIR} \
9+
--entrypoint /bin/bash golang:1.7.3 <<EOF
10+
#!/bin/bash
11+
set -euo pipefail
12+
wget -O /tmp/glide.tgz https://github.com/Masterminds/glide/releases/download/v0.12.3/glide-v0.12.3-linux-amd64.tar.gz
13+
tar -zxvf /tmp/glide.tgz -C /tmp
14+
mv /tmp/linux-amd64/glide /usr/local/bin
15+
./build-release-binaries
16+
EOF

0 commit comments

Comments
 (0)