Initial implementation of etcd image
Change-Id: Ic9229c3ddd48e590b72abbe9cdab30e29a7aa94c
This commit is contained in:
parent
be954dccec
commit
c59dcefa57
|
@ -0,0 +1,70 @@
|
|||
*.py[cod]
|
||||
|
||||
# C extensions
|
||||
*.so
|
||||
|
||||
# Packages
|
||||
*.egg
|
||||
*.egg-info
|
||||
dist
|
||||
build
|
||||
.eggs
|
||||
eggs
|
||||
parts
|
||||
bin
|
||||
var
|
||||
sdist
|
||||
develop-eggs
|
||||
.installed.cfg
|
||||
lib
|
||||
lib64
|
||||
|
||||
# Installer logs
|
||||
pip-log.txt
|
||||
|
||||
# Unit test / coverage reports
|
||||
.coverage
|
||||
cover
|
||||
.tox
|
||||
nosetests.xml
|
||||
.testrepository
|
||||
.venv
|
||||
|
||||
# Translations
|
||||
*.mo
|
||||
|
||||
# Mr Developer
|
||||
.mr.developer.cfg
|
||||
.project
|
||||
.pydevproject
|
||||
|
||||
# Complexity
|
||||
output/*.html
|
||||
output/*/index.html
|
||||
|
||||
# Sphinx
|
||||
doc/build
|
||||
|
||||
# oslo-config-generator
|
||||
etc/*.sample
|
||||
|
||||
# pbr generates these
|
||||
AUTHORS
|
||||
ChangeLog
|
||||
|
||||
# Editors
|
||||
*~
|
||||
.*.swp
|
||||
.*sw?
|
||||
|
||||
# Vagrant
|
||||
.vagrant
|
||||
vagrant/Vagrantfile.custom
|
||||
vagrant/vagrantkey*
|
||||
|
||||
# generated openrc
|
||||
openrc
|
||||
|
||||
# tests
|
||||
tests/.cache/*
|
||||
|
|
@ -0,0 +1,9 @@
|
|||
FROM {{ namespace }}/base-tools:{{ tag }}
|
||||
MAINTAINER {{ maintainer }}
|
||||
|
||||
RUN curl -L -o etcd-{{ etcd_version }}-linux-amd64.tar.gz https://github.com/coreos/etcd/releases/download/{{ etcd_version }}/etcd-{{ etcd_version }}-linux-amd64.tar.gz \
|
||||
&& tar -zxvf etcd-{{ etcd_version }}-linux-amd64.tar.gz \
|
||||
&& mv etcd-{{ etcd_version }}-linux-amd64/etcd /usr/local/bin \
|
||||
&& mkdir -p /var/etcd/ \
|
||||
&& rm -r etcd-{{ etcd_version }}-linux-amd64 \
|
||||
&& rm etcd-{{ etcd_version }}-linux-amd64.tar.gz
|
|
@ -0,0 +1,14 @@
|
|||
service:
|
||||
name: etcd
|
||||
ports:
|
||||
- etcd_client_port
|
||||
- etcd_server_port
|
||||
containers:
|
||||
- name: etcd
|
||||
image: etcd
|
||||
probes:
|
||||
readiness: "true"
|
||||
liveness: "true"
|
||||
daemon:
|
||||
command: etcd --listen-client-urls http://0.0.0.0:{{ etcd_client_port }}
|
||||
--advertise-client-urls http://0.0.0.0:{{ etcd_server_port }}
|
|
@ -0,0 +1,6 @@
|
|||
configs:
|
||||
etcd_client_port: 2379
|
||||
etcd_server_port: 2380
|
||||
|
||||
versions:
|
||||
etcd_version: v3.0.1
|
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
### Temp yaml syntax checker script.
|
||||
set -e
|
||||
for file in $(find . -name '*.yaml'); do
|
||||
yamllint -d relaxed $file
|
||||
done
|
Loading…
Reference in New Issue