Skip to content

Commit

Permalink
Merge pull request #127 from eyakubovich/master
Browse files Browse the repository at this point in the history
build/dist maintenance
  • Loading branch information
eyakubovich committed Feb 12, 2015
2 parents 8fe5bfa + 80d96d7 commit 95140bd
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1 +1 @@
FROM golang:onbuild
FROM golang:1.4.1-onbuild
10 changes: 9 additions & 1 deletion dist/build-docker → dist/build-docker.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/bash
set -e

if [ $# -ne 1 ]; then
echo "Usage: $0 tag" >/dev/stderr
Expand All @@ -9,6 +10,10 @@ tag=$1

tgt=$(mktemp -d)

# Build flannel inside
docker run -v `pwd`/../:/opt/flannel -i -t golang:1.4.1 /bin/bash -c "cd /opt/flannel && ./build"

# Generate Dockerfile into target tmp dir
cat <<DF >${tgt}/Dockerfile
FROM quay.io/coreos/flannelbox:1.0
MAINTAINER Eugene Yakubovich <[email protected]>
Expand All @@ -17,7 +22,10 @@ ADD ./mk-docker-opts.sh /opt/bin/
CMD /opt/bin/flanneld
DF

# Copy artifcats into target dir and build the image
cp ../bin/flanneld $tgt
cp ../dist/mk-docker-opts.sh $tgt
cp ./mk-docker-opts.sh $tgt
docker build -t quay.io/coreos/flannel:${tag} $tgt

# Cleanup
rm -rf $tgt
File renamed without changes.

0 comments on commit 95140bd

Please sign in to comment.