Compare commits

..

4 commits

Author SHA1 Message Date
Clement Verna
4853917726 Drop Release label in favor of OSBS release_bump plugin.
OSBS can automatically bump the release number, for that
we just need to drop the label from the Dockerfile

See https://pagure.io/ContainerSIG/container-sig/issue/1

Signed-off-by: Clement Verna <cverna@tutanota.com>
2018-08-20 17:58:48 +02:00
yuqi-zhang
13e76aa752 Update master branch to upstream
Signed-off-by: Yu Qi Zhang <jerzhang@redhat.com>
2017-09-06 15:08:03 -04:00
yuqi-zhang
ba508378f4 Fix BZComponent and Release labels 2017-02-23 15:33:34 -05:00
yuqi-zhang
311503c5b3 Change master branch to rawhide 2017-02-23 11:43:06 -05:00
4 changed files with 37 additions and 12 deletions

View file

@ -1,10 +1,9 @@
FROM registry.fedoraproject.org/fedora:25 FROM registry.fedoraproject.org/fedora:rawhide
ENV VERSION=0.1 RELEASE=19 ARCH=x86_64 ENV VERSION=0.1 ARCH=x86_64
LABEL com.redhat.component="etcd" \ LABEL com.redhat.component="etcd" \
name="$FGC/etcd" \ name="$FGC/etcd" \
version="$VERSION" \ version="$VERSION" \
release="$RELEASE.$DISTTAG" \
architecture="$ARCH" \ architecture="$ARCH" \
summary="A key-value store for shared configuration and service discovery." \ summary="A key-value store for shared configuration and service discovery." \
maintainer="Giuseppe Scrivano <gscrivan@redhat.com>" maintainer="Giuseppe Scrivano <gscrivan@redhat.com>"
@ -22,6 +21,10 @@ COPY uninstall.sh /usr/bin/uninstall.sh
COPY tmpfiles.template config.json.template service.template manifest.json /exports/ 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 EXPOSE 4001 7001 2379 2380
CMD ["/usr/bin/etcd-env.sh", "/usr/bin/etcd"] CMD ["/usr/bin/etcd-env.sh", "/usr/bin/etcd"]

View file

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

View file

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

View file

@ -1,7 +1,9 @@
{ {
"version": "1.0", "version": "1.0",
"defaultValues": { "defaultValues": {
"CONF_DIRECTORY" : "/etc",
"ETCD_NAME" : "", "ETCD_NAME" : "",
"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" : "",
@ -37,7 +39,12 @@
"ETCD_DEBUG" : "false", "ETCD_DEBUG" : "false",
"ETCD_LOG_PACKAGE_LEVELS" : "", "ETCD_LOG_PACKAGE_LEVELS" : "",
"ETCD_STRICT_RECONFIG_CHECK" : "false", "ETCD_STRICT_RECONFIG_CHECK" : "false",
"ETCD_ENABLE_PPROF" : "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"
} }
} }