Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

acbuild: add symlinks to /usr/local/bin/etcd* #6653

Merged
merged 1 commit into from
Oct 21, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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