Skip to content

Commit

Permalink
Fix permissions of etcd binaries (#47)
Browse files Browse the repository at this point in the history
and make it possible to specify ScalyrRegion and ScalyrAccountKey
  • Loading branch information
CyberDem0n authored Dec 19, 2017
1 parent d1e7fe8 commit 02964e8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,17 @@ RUN export DEBIAN_FRONTEND=noninteractive \
## Install etcd

ARG ETCDVERSION_PREV=3.0.17
RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION_PREV}/etcd-v${ETCDVERSION_PREV}-linux-amd64.tar.gz | tar xz -C /bin --xform='s/$/.old/x' --strip=1 --wildcards --no-anchored etcd
RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION_PREV}/etcd-v${ETCDVERSION_PREV}-linux-amd64.tar.gz \
| tar xz -C /bin --xform='s/$/.old/x' --strip=1 --wildcards --no-anchored etcd \
&& chown root:root /bin/etcd.old \
&& chmod +x /bin/etcd.old

ARG ETCDVERSION=3.1.10
ENV ETCDVERSION=$ETCDVERSION
RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz | tar xz -C /bin --strip=1 --wildcards --no-anchored etcd etcdctl
RUN curl -L https://github.com/coreos/etcd/releases/download/v${ETCDVERSION}/etcd-v${ETCDVERSION}-linux-amd64.tar.gz \
| tar xz -C /bin --strip=1 --wildcards --no-anchored etcd etcdctl \
&& chown root:root /bin/etcd /bin/etcdctl \
&& chmod +x /bin/etcd /bin/etcdctl

COPY etcd.py /bin/etcd.py
COPY scm-source.json /scm-source.json
Expand Down
9 changes: 8 additions & 1 deletion etcd-cluster.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ SenzaComponents:
filesystem: tmpfs
erase_on_boot: false
options: size=1024m
appdynamics_application: 'etcd-cluster-{{Arguments.version}}'
scalyr_region: '{{Arguments.ScalyrRegion}}'
scalyr_account_key: '{{Arguments.ScalyrAccountKey}}'
Type: Senza::TaupageAutoScalingGroup
AutoScaling:
Minimum: 5
Expand All @@ -35,6 +36,12 @@ SenzaInfo:
Description: AWS Hosted Zone to work with
- DockerImage:
Description: Docker image of etcd-cluster.
- ScalyrAccountKey:
Description: Key for writing logs to scalyr
Default: ''
- ScalyrRegion:
Description: Scalyr region
Default: 'eu'
StackName: etcd-cluster
Resources:
EtcdSecurityGroup:
Expand Down

0 comments on commit 02964e8

Please sign in to comment.