mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
build-aci: Fix ACI image name
The appc discovery spec states that the architecture specifier in the ACI image file name will be an ACI architecture value. Our build scripts were using GOARCH in the image name, which is incorrect for arm64/aarch64. See: https://github.com/appc/spec/blob/master/spec/discovery.md Fixes errors like these on arm64 machines: $ rkt --debug --insecure-options=image fetch coreos.com/etcd:v3.2.0-rc.1 image: remote fetching from URL "https://github.com/coreos/etcd/releases/download/v3.2.0-rc.1/etcd-v3.2.0-rc.1-linux-aarch64.aci" fetch: bad HTTP status code: 404 Signed-off-by: Geoff Levand <geoff@infradead.org>
This commit is contained in:
parent
b547b982b9
commit
3e1992140a
@ -36,6 +36,7 @@ fi
|
||||
acbuild --debug begin
|
||||
|
||||
TMPHOSTS="$(mktemp)"
|
||||
ACI_ARCH="$(go2aci ${GOARCH})"
|
||||
|
||||
acbuildEnd() {
|
||||
rm "$TMPHOSTS"
|
||||
@ -71,7 +72,7 @@ acbuild --debug port add peer tcp 2380
|
||||
|
||||
acbuild --debug copy "$TMPHOSTS" /etc/hosts
|
||||
|
||||
acbuild --debug label add arch "$(go2aci ${GOARCH})"
|
||||
acbuild --debug label add arch "${ACI_ARCH}"
|
||||
|
||||
# mkdir default data-dir
|
||||
mkdir -p .acbuild/currentaci/rootfs/var/lib/etcd
|
||||
@ -80,4 +81,4 @@ mkdir -p .acbuild/currentaci/rootfs/var/lib/etcd
|
||||
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-${GOARCH}.aci
|
||||
acbuild --debug write --overwrite $BUILDDIR/etcd-${1}-linux-${ACI_ARCH}.aci
|
||||
|
Loading…
x
Reference in New Issue
Block a user