Skip to content

Commit

Permalink
Merge pull request #6653 from gyuho/acbuild
Browse files Browse the repository at this point in the history
acbuild: add symlinks to /usr/local/bin/etcd*
  • Loading branch information
gyuho committed Oct 21, 2016
2 parents 60c0a55 + 522be31 commit 791aeb3
Showing 1 changed file with 17 additions and 9 deletions.
26 changes: 17 additions & 9 deletions scripts/build-aci
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,31 @@ DF

acbuild --debug set-name coreos.com/etcd

acbuild --debug copy --to-dir $BINARYDIR/etcd $BINARYDIR/etcdctl /
acbuild --debug copy README.md /README.md
acbuild --debug copy etcdctl/README.md /README-etcdctl.md
acbuild --debug copy etcdctl/READMEv2.md /READMEv2-etcdctl.md
acbuild --debug copy --to-dir Documentation /
acbuild --debug copy $BINARYDIR/etcd /usr/local/bin/etcd
acbuild --debug copy $BINARYDIR/etcdctl /usr/local/bin/etcdctl

acbuild --debug environment add ETCD_DATA_DIR /data-dir
acbuild --debug copy README.md README.md
acbuild --debug copy etcdctl/README.md README-etcdctl.md
acbuild --debug copy etcdctl/READMEv2.md READMEv2-etcdctl.md
acbuild --debug copy-to-dir Documentation .

acbuild --debug label add version "$VERSION"
acbuild --debug environment add ETCD_DATA_DIR /var/lib/etcd
acbuild --debug mount add data-dir /var/lib/etcd

acbuild --debug set-exec -- /etcd
acbuild --debug label add version "$VERSION"

acbuild --debug mount add data-dir /data-dir
acbuild --debug set-exec -- /usr/local/bin/etcd

acbuild --debug port add client tcp 2379
acbuild --debug port add peer tcp 2380

acbuild --debug copy "$TMPHOSTS" /etc/hosts

# mkdir default data-dir
mkdir -p .acbuild/currentaci/rootfs/var/lib/etcd

# symlinks for backward-compatibility
ln -s ./usr/local/bin/etcd .acbuild/currentaci/rootfs/etcd
ln -s ./usr/local/bin/etcdctl .acbuild/currentaci/rootfs/etcdctl

acbuild --debug write --overwrite $BUILDDIR/etcd-${1}-linux-amd64.aci

0 comments on commit 791aeb3

Please sign in to comment.