Compare commits

..

18 commits

Author SHA1 Message Date
Adam Miller
57c61deb5e Bump RELEASE for automatic rebuild 2017-09-21 10:24:03 -05:00
Adam Miller
84420deea6 Bump RELEASE for automatic rebuild 2017-08-24 15:38:15 -05:00
Adam Miller
490759033a Bump RELEASE for automatic rebuild 2017-07-25 12:53:16 -05:00
Adam Miller
eaa1594894 Bump RELEASE for automatic rebuild 2017-07-06 14:04:23 -05:00
Adam Miller
f06469b008 Bump RELEASE for automatic rebuild 2017-06-27 10:45:09 -05:00
Adam Miller
9aa8cdb3ad Bump RELEASE for automatic rebuild 2017-06-14 16:25:05 -05:00
Adam Miller
0773fcf8a6 Bump RELEASE for automatic rebuild 2017-06-08 22:18:36 -05:00
yuqi-zhang
96877a0e6e Update Dockerfile and Config
Update Dockerfile to correspond to new requirements. Update runc
config.json for new version of runc, and bind /etc/resolv.conf
2017-06-06 15:54:58 -04:00
Adam Miller
d4336d049f Bump RELEASE for automatic rebuild 2017-05-23 15:31:42 -05:00
Adam Miller
fd480ea91b Bump RELEASE for automatic rebuild 2017-04-20 21:34:40 -05:00
Adam Miller
42c55bad62 Bump RELEASE for automatic rebuild 2017-03-29 22:39:49 -05:00
Adam Miller
fbde328c00 Bump RELEASE for automatic rebuild 2017-03-29 15:18:28 -05:00
Adam Miller
8f169dd99e Bump RELEASE for automatic rebuild 2017-03-15 17:25:37 -05:00
Adam Miller
246a46a395 Bump RELEASE for automatic rebuild 2017-03-15 16:50:54 -05:00
Adam Miller
28a6d721f8 Bump RELEASE for automatic rebuild 2017-03-02 20:22:19 -06:00
yuqi-zhang
c8b9e32c7d Fix BZComponent and Release labels 2017-02-23 14:15:12 -05:00
yuqi-zhang
fc15d8f472 Bump version 2017-02-23 12:06:57 -05:00
yuqi-zhang
48acbf06da Bump version 2017-02-23 12:02:48 -05:00
4 changed files with 12 additions and 37 deletions

View file

@ -1,9 +1,10 @@
FROM registry.fedoraproject.org/fedora:rawhide
FROM registry.fedoraproject.org/fedora:25
ENV VERSION=0.1 ARCH=x86_64
ENV VERSION=0.1 RELEASE=19 ARCH=x86_64
LABEL com.redhat.component="etcd" \
name="$FGC/etcd" \
version="$VERSION" \
release="$RELEASE.$DISTTAG" \
architecture="$ARCH" \
summary="A key-value store for shared configuration and service discovery." \
maintainer="Giuseppe Scrivano <gscrivan@redhat.com>"
@ -21,10 +22,6 @@ COPY uninstall.sh /usr/bin/uninstall.sh
COPY tmpfiles.template config.json.template service.template manifest.json /exports/
RUN mkdir -p /exports/hostfs/usr/local/bin/ && cp /usr/bin/etcdctl /exports/hostfs/usr/local/bin/etcdctl
RUN mkdir -p /exports/hostfs/etc/etcd && sed -e "/^ETCD_DATA_DIR/d" -e s"|^ETCD_NAME=|#ETCD_NAME=|" < /etc/etcd/etcd.conf > /exports/hostfs/etc/etcd/etcd.conf
EXPOSE 4001 7001 2379 2380
CMD ["/usr/bin/etcd-env.sh", "/usr/bin/etcd"]

View file

@ -17,7 +17,6 @@
"env": [
"NAME=$NAME",
"ETCD_NAME=$ETCD_NAME",
"ETCD_DATA_DIR=$ETCD_DATA_DIR",
"ETCD_ADVERTISE_CLIENT_URLS=$ETCD_ADVERTISE_CLIENT_URLS",
"ETCD_LISTEN_CLIENT_URLS=$ETCD_LISTEN_CLIENT_URLS",
"ETCD_INITIAL_ADVERTISE_PEER_URLS=$ETCD_INITIAL_ADVERTISE_PEER_URLS",
@ -60,31 +59,26 @@
"cwd": "/",
"capabilities": {
"bounding": [
"CAP_DAC_READ_SEARCH",
"CAP_AUDIT_WRITE",
"CAP_KILL",
"CAP_NET_BIND_SERVICE"
],
"permitted": [
"CAP_DAC_READ_SEARCH",
"CAP_AUDIT_WRITE",
"CAP_KILL",
"CAP_NET_BIND_SERVICE"
],
"inheritable": [
"CAP_DAC_READ_SEARCH",
"CAP_AUDIT_WRITE",
"CAP_KILL",
"CAP_NET_BIND_SERVICE"
],
"effective": [
"CAP_DAC_READ_SEARCH",
"CAP_AUDIT_WRITE",
"CAP_KILL",
"CAP_NET_BIND_SERVICE"
],
"ambient": [
"CAP_DAC_READ_SEARCH",
"CAP_AUDIT_WRITE",
"CAP_KILL",
"CAP_NET_BIND_SERVICE"
@ -205,18 +199,7 @@
"rbind",
"rprivate"
]
},
{
"type": "bind",
"source": "$CONF_DIRECTORY/$NAME",
"destination": "/etc/etcd/",
"options": [
"rbind",
"ro",
"rprivate"
]
}
$ADDTL_MOUNTS
}
],
"linux": {
"resources": {
@ -239,6 +222,7 @@
}
],
"devices": null,
"apparmorProfile": ""
"apparmorProfile": "",
"selinuxProcessLabel": ""
}
}

View file

@ -6,10 +6,11 @@ if test x$NAME == x; then
fi
export ETCD_NAME=${ETCD_NAME:-$HOSTNAME}
export ETCD_DATA_DIR=/var/lib/etcd/${NAME}.etcd
if test -e /etc/etcd/etcd.conf; then
source /etc/etcd/etcd.conf
fi
export ETCD_ADVERTISE_CLIENT_URLS=${ETCD_ADVERTISE_CLIENT_URLS:-http://${ipaddress}:2379,http://${ipaddress}:4001}
export ETCD_LISTEN_CLIENT_URLS=${ETCD_LISTEN_CLIENT_URLS:-http://0.0.0.0:2379,http://0.0.0.0:4001}
export ETCD_INITIAL_ADVERTISE_PEER_URLS=${ETCD_INITIAL_ADVERTISE_PEER_URLS:-http://${ipaddress}:2380,http://${ipaddress}:7001}
export ETCD_LISTEN_PEER_URLS=${ETCD_LISTEN_PEER_URLS:-http://0.0.0.0:2380,http://0.0.0.0:7001}
export ETCD_INITIAL_CLUSTER=${ETCD_INITIAL_CLUSTER:-$HOSTNAME=http://${ipaddress}:2380,$HOSTNAME=http://${ipaddress}:7001}
# Execute the commands passed to this script
exec "$@"

View file

@ -1,9 +1,7 @@
{
"version": "1.0",
"defaultValues": {
"CONF_DIRECTORY" : "/etc",
"ETCD_NAME" : "",
"ETCD_DATA_DIR" : "",
"ETCD_ADVERTISE_CLIENT_URLS" : "",
"ETCD_LISTEN_CLIENT_URLS" : "",
"ETCD_INITIAL_ADVERTISE_PEER_URLS" : "",
@ -39,12 +37,7 @@
"ETCD_DEBUG" : "false",
"ETCD_LOG_PACKAGE_LEVELS" : "",
"ETCD_STRICT_RECONFIG_CHECK" : "false",
"ETCD_ENABLE_PPROF" : "false",
"ADDTL_MOUNTS": ""
},
"renameFiles" : {
"/etc/etcd/etcd.conf" : "$CONF_DIRECTORY/$NAME/etcd.conf",
"/usr/local/bin/etcdctl" : "/usr/local/bin/${NAME}ctl"
"ETCD_ENABLE_PPROF" : "false"
}
}