etcd/scripts/build-aci
Alban Crequy 80c174255a build-aci: change 'val' abbreviation to 'value'
The spec changed, so etcd must be updated to follow the new spec:
12a9617c2f
2015-01-08 09:52:21 +01:00

34 lines
649 B
Bash
Executable File

#!/usr/bin/bash
if [ ! -d rootfs ]; then
mkdir -p rootfs
mv * rootfs
fi
cat <<DF > manifest
{
"acVersion": "0.1.1",
"acKind": "ImageManifest",
"name": "coreos.com/etcd",
"labels": [
{"name": "os", "value": "linux"},
{"name": "arch", "value": "amd64"},
{"name": "version", "value": "${1}"}
],
"app": {
"exec": [
"/etcd"
],
"user": "0",
"group": "0"
}
}
DF
mkdir -p rootfs/etc/
cat <<DF > rootfs/etc/hosts
127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4
DF
actool build -overwrite=true . ../etcd-${1}-linux-amd64.aci