Skip to content

Commit

Permalink
Fix permissions of etcd home directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Kukushkin committed May 18, 2015
1 parent 05d0a7b commit 615dd06
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions etcd-cluster-appliance/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
FROM zalando/ubuntu:14.04.1-1

ENV USER etcd
ENV HOME /home/${USER}
ENV ETCDVERSION 2.0.11

## Install python
RUN apt-get update && apt-get -y install python python-boto

## Install etcd
RUN useradd -d /home/etcd -k /etc/skel -s /bin/bash -m etcd
ENV ETCDVERSION 2.0.11
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
EXPOSE 2379 2380

ADD etcd.py /bin/etcd.py

USER etcd
RUN useradd -d ${HOME} -k /etc/skel -s /bin/bash -m ${USER} && chmod 777 ${HOME}
WORKDIR $HOME
USER ${USER}
CMD ["/bin/etcd.py"]

0 comments on commit 615dd06

Please sign in to comment.