build-docker 287 B

12345678910111213
  1. #!/usr/bin/env bash
  2. BINARYDIR=${BINARYDIR:-.}
  3. BUILDDIR=${BUILDDIR:-.}
  4. IMAGEDIR=${BUILDDIR}/image-docker
  5. mkdir -p ${IMAGEDIR}
  6. cp ${BINARYDIR}/etcd ${BINARYDIR}/etcdctl ${IMAGEDIR}
  7. cat ./Dockerfile-release > ${IMAGEDIR}/Dockerfile
  8. docker build -t quay.io/coreos/etcd:${1} ${IMAGEDIR}